home.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/home'">帮助中心首页</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, helpHeader } from '~components/help'
  35. export default {
  36. name: 'help',
  37. components: {
  38. left,
  39. helpHeader
  40. },
  41. fetch ({ store }) {
  42. return Promise.all([
  43. store.dispatch('loadHelpSnapsho', { parentId: 0 })
  44. ])
  45. },
  46. computed: {
  47. helpNav () {
  48. return this.$store.state.help.snapsho.data
  49. }
  50. }
  51. }
  52. </script>
  53. <style>
  54. @import '~assets/scss/help.css';
  55. </style>