planDetail.vue 714 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="detail">
  3. <view class="box">
  4. <uv-parse :content="info.content" :tagStyle="tagStyle"></uv-parse>
  5. </view>
  6. </view>
  7. </template>
  8. <script setup>
  9. import { onLoad } from '@dcloudio/uni-app'
  10. import { ref } from 'vue'
  11. // 详细信息
  12. const info = ref()
  13. const tagStyle = ref({
  14. img: 'width: 100%;height:auto',
  15. image: 'width: 100%;height:auto'
  16. })
  17. onLoad((options) => {
  18. if (options.info) {
  19. info.value = JSON.parse(decodeURIComponent(options.info))
  20. // console.log(info.value)
  21. }
  22. })
  23. </script>
  24. <style lang="scss" scoped>
  25. .detail {
  26. padding: 20rpx;
  27. min-height: 100vh;
  28. background-color: #d7d6dc;
  29. .box {
  30. padding: 20rpx;
  31. border-radius: 20rpx;
  32. background-color: #fff;
  33. }
  34. }
  35. </style>