Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-ui into dev-gl

master
paulGao 2022-05-27 18:27:20 +08:00
commit 2111020f62
2 changed files with 8080 additions and 8755 deletions

View File

@ -76,8 +76,27 @@
</div>
<!-- 商品原价 -->
<div class="item-price-row" v-else>
<!-- 批发价格 -->
<div v-if="wholesaleNum.length">
<div class="flex">
<div class="item-price-title">
&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div v-for="(item,index) in wholesalePrice" :key="index" class="item-price item-num">{{
item | unitPrice("¥")
}}</div>
</div>
<div class="flex">
<div class="item-price-title"> </div>
<div v-for="(item,index) in wholesaleNum" :key="index" class="item-num item-price-num">{{item}}{{skuDetail.goodsUnit}}</div>
</div>
</div>
<!-- 普通价格 -->
<div>
<div v-else>
<span class="item-price-title"
> &nbsp;&nbsp;&nbsp;&nbsp;</span
>
@ -85,25 +104,6 @@
skuDetail.price | unitPrice("¥")
}}</span>
</div>
<!-- 批发价格 -->
<div>
<div class="flex">
<div class="item-price-title">
&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="item-price item-num">{{
skuDetail.price | unitPrice("¥")
}}</div>
<div class="item-price item-num">{{
skuDetail.price | unitPrice("¥")
}}</div>
</div>
<div class="flex">
<div class="item-price-title"> </div>
<div class="item-num item-price-num">20-39</div>
<div class="item-num item-price-num">40-90</div>
</div>
</div>
</div>
<!-- 优惠券展示 -->
<div class="item-price-row" v-if="promotionMap['COUPON'].length">
@ -285,6 +285,7 @@ export default {
detail: {
handler(val) {
this.skuDetail = val.data;
this.wholesaleList = val.wholesaleList
this.swiperGoodsImg();
},
deep: true,
@ -293,6 +294,7 @@ export default {
},
data() {
return {
wholesaleList:[],
count: 1, //
imgIndex: 0, //
currentSelceted: [], // sku
@ -311,9 +313,18 @@ export default {
loading: false, // loading
loading1: false, // loading
isCollected: false, //
};
},
components: { PicZoom, Promotion },
computed: {
wholesalePrice(key){
return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.price }) :[]
},
wholesaleNum(key){
return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.num }) :[]
}
},
methods: {
select(index, value) {
//

File diff suppressed because it is too large Load Diff