_id.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 v-bind:href="'/help/home'" style="font-size: 14px">帮助中心首页<i class="fa fa-angle-right"></i></a>
  15. <span>
  16. <nuxt-link :to="`/help/home`" class="box" style="font-size: 16px"><span>{{helpTitle.item}}</span><i class="fa fa-close"></i></nuxt-link>
  17. </span>
  18. </div>
  19. <!-- 文章列表-->
  20. <div class="help-center-list">
  21. <h4>问题知识列表</h4>
  22. <ul>
  23. <li v-for="list in helpList">
  24. <em></em>
  25. <nuxt-link :to="`/help/helpDetail/${list.num}`" v-text="list.title" :title="list.title"></nuxt-link>
  26. </li>
  27. <li v-if="helpList.length == 0" style="color: #999;">暂无数据!</li>
  28. </ul>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import { left, helpHeader } from '~components/help'
  39. export default {
  40. name: 'help',
  41. components: {
  42. left,
  43. helpHeader
  44. },
  45. fetch ({ store, route }) {
  46. return Promise.all([
  47. store.dispatch('loadHelpSnapsho', { parentId: 0 }),
  48. store.dispatch('loadHelpList', { navId: route.params.id }),
  49. store.dispatch('loadHelpTitle', route.params)
  50. ])
  51. },
  52. computed: {
  53. helpTitle () {
  54. return this.$store.state.help.title.data
  55. },
  56. helpList () {
  57. return this.$store.state.help.helplist.data
  58. }
  59. }
  60. }
  61. </script>
  62. <style>
  63. @import '~assets/scss/help.css';
  64. </style>