修复商品弹窗价格回显问题
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<view class="u-font-32">
|
||||
|
||||
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount"
|
||||
:cart="returnFirstSku(product)" :shopUserInfo="shopUserInfo"
|
||||
:cart="returnFirstSku(product)" :shopUserInfo="shopUserInfo"
|
||||
:shopInfo="shopInfo"></GoodsPrice>
|
||||
</view>
|
||||
</view>
|
||||
@@ -210,7 +210,8 @@
|
||||
<text
|
||||
v-if="goods.result.suitNum > 1">「{{ goods.result.suitNum }}{{ goods.result.unitName }}起点」</text>
|
||||
</view>
|
||||
<view class="price single-and-staticPackage " v-else-if="goods.type=='single'||(goods.type=='package'&&goods.groupType==0)">
|
||||
<view class="price single-and-staticPackage "
|
||||
v-else-if="goods.type=='single'||(goods.type=='package'&&goods.groupType==0)">
|
||||
|
||||
<text class="i">¥</text>
|
||||
<view class="num">
|
||||
@@ -220,11 +221,32 @@
|
||||
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
|
||||
<text v-if="selSku&&selSku.suitNum > 1">「{{ selSku.suitNum }}{{ selSku.unitName }}起点」</text>
|
||||
</view>
|
||||
<view class="price choosePackage "
|
||||
v-else-if="goods.type=='package'&&goods.groupType==1">
|
||||
|
||||
<text class="i">¥</text>
|
||||
<view class="num">
|
||||
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="goods"
|
||||
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
|
||||
</view>
|
||||
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
|
||||
<text v-if="selSku&&selSku.suitNum > 1">「{{ selSku.suitNum }}{{ selSku.unitName }}起点」</text>
|
||||
</view>
|
||||
<view class="price sku" v-else-if="goods.type=='sku'">
|
||||
|
||||
<text class="i">¥</text>
|
||||
<view class="num">
|
||||
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="selSku"
|
||||
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
|
||||
</view>
|
||||
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
|
||||
<text v-if="selSku&&selSku.suitNum > 1">「{{ selSku.suitNum }}{{ selSku.unitName }}起点」</text>
|
||||
</view>
|
||||
<view class="price price-package " v-else>
|
||||
|
||||
<text class="i">¥</text>
|
||||
<view class="num">
|
||||
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="goods"
|
||||
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="selSku"
|
||||
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
|
||||
</view>
|
||||
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
|
||||
@@ -457,11 +479,11 @@
|
||||
const swiperCurrent = ref(0);
|
||||
|
||||
function returnFirstSku(product) {
|
||||
console.log('returnFirstSku',product.skuList[0]);
|
||||
console.log('returnFirstSku', product.skuList[0]);
|
||||
return {
|
||||
...product.skuList[0],
|
||||
sku_id:product.skuList[0].id,
|
||||
id:product.id,
|
||||
sku_id: product.skuList[0].id,
|
||||
id: product.id,
|
||||
}
|
||||
}
|
||||
//返回是否是多规格商品
|
||||
|
||||
Reference in New Issue
Block a user