吉光研途前端代码仓库
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.

55 lines
1.0 KiB

  1. <template>
  2. <view class="page__view">
  3. <!-- 导航栏 -->
  4. <navbar :title="details.paramDesc" leftClick @leftClick="$utils.navigateBack" bgColor="#4883F9" color="#FFFFFF" />
  5. <view class="main">
  6. <view class="title">{{ details.title }}</view>
  7. <uv-parse :content="details.details"></uv-parse>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. details: {},
  16. }
  17. },
  18. onLoad({ paramCode }) {
  19. this.getData(paramCode)
  20. },
  21. methods: {
  22. async getData(paramCode) {
  23. try {
  24. this.details = await this.$fetch('querySummaryByParamCode', { paramCode })
  25. console.log('details', this.details)
  26. } catch (err) {
  27. console.log('err', err)
  28. }
  29. },
  30. },
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .page__view {
  35. background: #FFFFFF;
  36. }
  37. .main {
  38. padding: 44rpx 40rpx;
  39. font-size: 30rpx;
  40. color: #000000;
  41. .title {
  42. margin-bottom: 50rpx;
  43. font-size: 36rpx;
  44. font-weight: 700;
  45. }
  46. }
  47. </style>