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