From d470e67ac1997882502b75cbfdaf359626cfaaa8 Mon Sep 17 00:00:00 2001 From: Liuyi <candymxq888@outlook.com> Date: 星期五, 20 十二月 2024 17:27:07 +0800 Subject: [PATCH] 测试修复小程序问题,添加水控机设备 --- pagesPoints/pointsMall/pointsGoodsDetail/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pagesPoints/pointsMall/pointsGoodsDetail/index.vue b/pagesPoints/pointsMall/pointsGoodsDetail/index.vue index e2c7fe7..81772c9 100644 --- a/pagesPoints/pointsMall/pointsGoodsDetail/index.vue +++ b/pagesPoints/pointsMall/pointsGoodsDetail/index.vue @@ -1,7 +1,7 @@ <script setup> import {ref,onMounted} from 'vue' import { goodsGetByIdApi,integralConvertApi } from '../../../api/index.js' - import { onLoad } from '@dcloudio/uni-app' + import { onLoad,onShow } from '@dcloudio/uni-app' import { BASE_URL } from '../../../config/baseUrl.js'; const userInfo = ref(JSON.parse(uni.getStorageSync('userInfo'))) @@ -24,7 +24,7 @@ }) setTimeout(() =>{ uni.navigateTo({ - url:'/pages/pointsMall/pointsExchangeRecord/index' + url:'/pagesPoints/pointsMall/pointsExchangeRecord/index' }) },1000) await getGoodsDetail(goodsId) @@ -54,7 +54,7 @@ <point-navbar title='商品详情'></point-navbar> <view class="content"> <view class="image-box"> - <image class="image" :src="baseUrl + '/upload'+ detailInfo.detailsUrl" mode="aspectFit"></image> + <image v-if="detailInfo.detailsUrl" class="image" :src="baseUrl + '/upload'+ detailInfo.detailsUrl" mode="aspectFit"></image> </view> <view class="detail"> <view class="detail-info"> -- Gitblit v1.9.3