home.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. data () {
  38. return {
  39. helpNav: {},
  40. getFlag: false
  41. }
  42. },
  43. components: {
  44. left,
  45. helpHeader
  46. },
  47. mounted () {
  48. this.$http.get('/api/help-service/helps', {params: { parentId: 0 }})
  49. .then(response => {
  50. this.helpNav = response.data
  51. })
  52. },
  53. fetch ({ store }) {
  54. return Promise.all([
  55. // store.dispatch('loadHelpSnapsho', { parentId: 0 })
  56. ])
  57. },
  58. computed: {
  59. // helpNav () {
  60. // return this.$store.state.help.snapsho.data.sort(compare('detno'))
  61. // }
  62. }
  63. }
  64. </script>
  65. <style>
  66. @import '~assets/scss/help.css';
  67. </style>