help.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div>
  3. <help-header></help-header>
  4. <div id="main">
  5. <div class="container" style="padding: 0; width: 1190px;">
  6. <div style="display: inline-block; width: 100%; margin: 0 auto">
  7. <div class="left">
  8. <left></left>
  9. </div>
  10. <div class="right">
  11. <div class="help-center">
  12. <div class="help-head"><img src="/images/help/help-title.png"></div>
  13. <div class="help-center-title">
  14. <a style="font-size: 14px" v-bind:href="'/help/help'">帮助中心首页</a>
  15. </div>
  16. <div class="help-center-home">
  17. <div v-for="nav01 in helpNav">
  18. <h4 v-text="nav01.item"></h4>
  19. <div class="row">
  20. <div v-for="nav02 in nav01.children">
  21. <em></em><nuxt-link :to="`/help/helpList/${nav02.id}`" v-text="nav02.item"></nuxt-link>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import left from '~components/help/left'
  35. import helpHeader from '~components/help/helpHeader'
  36. export default {
  37. name: 'help',
  38. components: {
  39. left,
  40. helpHeader
  41. },
  42. fetch ({ store }) {
  43. return Promise.all([
  44. store.dispatch('loadHelpSnapsho', { parentId: 0 })
  45. ])
  46. },
  47. computed: {
  48. helpNav () {
  49. return this.$store.state.help.snapsho.data
  50. }
  51. }
  52. }
  53. </script>
  54. <style>
  55. @import '~assets/scss/help.css';
  56. </style>