风险测评小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
922 B

  1. <template>
  2. <view class="page__view">
  3. <navbar title="常见问题" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="main">
  5. <view class="title">{{ commonQuestion.question }}</view>
  6. <view class="content">
  7. <uv-parse :content="commonQuestion.answer"></uv-parse>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import { mapState } from 'vuex'
  14. export default {
  15. data() {
  16. return {
  17. detail: {},
  18. }
  19. },
  20. computed: {
  21. ...mapState(['commonQuestion']),
  22. },
  23. onLoad(arg) {
  24. const { id } = arg
  25. this.getData(id)
  26. },
  27. methods: {
  28. async getData(id) {
  29. // todo: fetch by id
  30. },
  31. },
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .main {
  36. padding: 39rpx 30rpx;
  37. }
  38. .title {
  39. text-align: center;
  40. font-size: 30rpx;
  41. font-weight: 600;
  42. color: #000000;
  43. }
  44. .content {
  45. margin-top: 50rpx;
  46. }
  47. </style>