_id.vue 2.4 KB

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