| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view class="detail">
- <view class="box">
- <uv-parse :content="info.content" :tagStyle="tagStyle"></uv-parse>
- </view>
- </view>
- </template>
- <script setup>
- import { onLoad } from '@dcloudio/uni-app'
- import { ref } from 'vue'
- // 详细信息
- const info = ref()
- const tagStyle = ref({
- img: 'width: 100%;height:auto',
- image: 'width: 100%;height:auto'
- })
- onLoad((options) => {
- if (options.info) {
- info.value = JSON.parse(decodeURIComponent(options.info))
- // console.log(info.value)
- }
- })
- </script>
- <style lang="scss" scoped>
- .detail {
- padding: 20rpx;
- min-height: 100vh;
- background-color: #d7d6dc;
- .box {
- padding: 20rpx;
- border-radius: 20rpx;
- background-color: #fff;
- }
- }
- </style>
|