_id.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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">
  17. <span>{{helpTitle.item}}</span><i class="fa fa-close"></i></nuxt-link>
  18. <i class="dot fa fa-angle-right"></i>
  19. </span>
  20. <nuxt-link :to="`/help/helpList/{$helpDetail.navId}`" class="box" style="font-size: 14px"><span v-text="helpDetail.title"></span><i class="fa fa-close"></i></nuxt-link>
  21. </div>
  22. <!--文章详情-->
  23. <div class="help-center-details" style="color: #000">
  24. <div class="ql-container ql-snow" v-html="helpDetail.article"></div>
  25. <div v-if="helpDetail.length == 0" style="color: #999;">暂无数据!</div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import { left, helpHeader } from '~components/help'
  36. export default {
  37. name: 'help',
  38. components: {
  39. left,
  40. helpHeader
  41. },
  42. fetch ({ store, route }) {
  43. return Promise.all([
  44. store.dispatch('loadHelpSnapsho', { parentId: 0 }),
  45. store.dispatch('loadHelpDetail', route.params)
  46. // store.dispatch('loadHelpTitle', route)
  47. ])
  48. },
  49. computed: {
  50. helpTitle () {
  51. return this.$store.state.help.title.data
  52. },
  53. helpDetail () {
  54. return this.$store.state.help.detail.data
  55. }
  56. }
  57. }
  58. </script>
  59. <style scoped>
  60. @import '~assets/scss/help.css';
  61. .help-center-details .ql-container img {
  62. max-width: 840px;
  63. }
  64. .ql-container.ql-snow{
  65. border: none;
  66. }
  67. .ql-container.ql-snow p{
  68. font-size: 16px;
  69. }
  70. .ql-container.ql-snow .ql-editor{
  71. padding: 0;
  72. }
  73. .ql-tooltip{
  74. display: none;
  75. }
  76. </style>