planDetail.vue 599 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="detail">
  3. <view class="box">
  4. <uv-parse :content="info.content"></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. onLoad((options) => {
  14. if (options.info) {
  15. info.value = JSON.parse(decodeURIComponent(options.info))
  16. // console.log(info.value)
  17. }
  18. })
  19. </script>
  20. <style lang="scss" scoped>
  21. .detail {
  22. padding: 20rpx;
  23. min-height: 100vh;
  24. background-color: #d7d6dc;
  25. .box {
  26. padding: 20rpx;
  27. border-radius: 20rpx;
  28. background-color: #fff;
  29. }
  30. }
  31. </style>