app图片加载不出来

This commit is contained in:
zmj 2024-05-06 10:07:36 +08:00
parent eaff04f995
commit f84d98efd6
1 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,8 @@
<view class="content"> <view class="content">
<view class="head"> <view class="head">
<view class="" style="width: 210rpx;height: 210rpx;position: relative;"> <view class="" style="width: 210rpx;height: 210rpx;position: relative;">
<u--image :src="short.image" width='210rpx' height='210rpx' duration="450"></u--image> <!-- <u--image :src="short.image" width='210rpx' height='210rpx' duration="450"></u--image> -->
<image :src="short.image" style="width: 210rpx;height: 210rpx;" mode=""></image>
<view class="preview" @click="preViewImg(short.image)"> <view class="preview" @click="preViewImg(short.image)">
点击预览 点击预览
</view> </view>
@ -11,10 +12,11 @@
<view class="right"> <view class="right">
<view class=""> <view class="">
<view class="" style="font-size: 32rpx;color: #444444;"> <view class="" style="font-size: 32rpx;color: #444444;">
{{short.store_name||short.storeCategory.cate_name}} {{short.store_name}}
</view> </view>
<view class="" style="font-size: 24rpx;color: #989898;margin-top: 10rpx;"> <view class="" style="font-size: 24rpx;color: #989898;margin-top: 10rpx;">
库存 {{short.attrValue[0].stock}} <!-- 库存 {{short.attrValue[0].stock}} -->
库存 {{attrvalueStock}}
</view> </view>
</view> </view>
<view class="" style="color: #FC452F;font-size: 24rpx;"> <view class="" style="color: #FC452F;font-size: 24rpx;">
@ -94,7 +96,8 @@
type: "", type: "",
short: { short: {
product_id: '' product_id: ''
} },
attrvalueStock: 0,
} }
}, },
onLoad(options) { onLoad(options) {
@ -125,6 +128,7 @@
initInfo() { initInfo() {
productDetail(this.mer_id, this.short.product_id).then((res) => { productDetail(this.mer_id, this.short.product_id).then((res) => {
this.short = res.data; this.short = res.data;
this.attrvalueStock = res.data.attrValue[0].stock
console.log({ console.log({
...res.data ...res.data
}); });