_id.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <!--文章详情-->
  3. <div class="helper-center-details" style="color: #000">
  4. <div class="ql-container ql-snow" v-html="helpDetail.article"></div>
  5. <div v-if="helpDetail.length == 0" style="color: #999;">暂无数据!</div>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. layout: 'help',
  11. fetch ({ store, route }) {
  12. return Promise.all([
  13. store.dispatch('loadHelpDetail', route.params)
  14. ])
  15. },
  16. computed: {
  17. helpDetail () {
  18. return this.$store.state.help.detail.data
  19. }
  20. }
  21. }
  22. </script>
  23. <style>
  24. .helper-center-details{
  25. width: 100%;
  26. margin-bottom: 50px;
  27. }
  28. .helper-center-details .ql-container{
  29. margin: 0 auto;
  30. width: 95%;
  31. }
  32. .helper-center-details .ql-container .ql-size-20{
  33. display: block;
  34. margin-top: 15px;
  35. font-weight: bold;
  36. }
  37. .helper-center-details .ql-container strong{
  38. display: block;
  39. margin-top: 15px;
  40. font-size: 16px;
  41. }
  42. .helper-center-details p, .helper-center-details h3{
  43. margin: 0 auto;
  44. width: 100%;
  45. }
  46. .helper-center-details span{
  47. font-size: 16px;
  48. }
  49. .helper-center-details span.ql-size-16 img{
  50. width: 5%;
  51. }
  52. .helper-center-details img{
  53. margin: 0 auto;
  54. width: 100%;
  55. text-align: center;
  56. }
  57. </style>