|
|
@ -104,11 +104,7 @@
|
|
|
|
<div class="main__details-msg">
|
|
|
|
<div class="main__details-msg">
|
|
|
|
<div class="main__details-msg--price flex flex-middle">
|
|
|
|
<div class="main__details-msg--price flex flex-middle">
|
|
|
|
<span class="msg-txt">售价</span>
|
|
|
|
<span class="msg-txt">售价</span>
|
|
|
|
<strong class="msg-price">{{
|
|
|
|
<strong class="msg-price">{{ getPrice }}</strong>
|
|
|
|
detailData.productActivityVO.isStartActivity
|
|
|
|
|
|
|
|
? detailData.productActivityVO.activityPrice
|
|
|
|
|
|
|
|
: detailData.startingPrice
|
|
|
|
|
|
|
|
}}</strong>
|
|
|
|
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-if="
|
|
|
|
v-if="
|
|
|
|
detailData.productActivityVO.isActivity &&
|
|
|
|
detailData.productActivityVO.isActivity &&
|
|
|
@ -272,12 +268,12 @@ export default {
|
|
|
|
let res1 = await ApiGetGoodsDetail({ id });
|
|
|
|
let res1 = await ApiGetGoodsDetail({ id });
|
|
|
|
let res2 = await ApiGetGoodsSkus({ productId: id });
|
|
|
|
let res2 = await ApiGetGoodsSkus({ productId: id });
|
|
|
|
let res3 = await ApiGetGoodsList({
|
|
|
|
let res3 = await ApiGetGoodsList({
|
|
|
|
length: 3,
|
|
|
|
length: 3,
|
|
|
|
pageIndex: 1,
|
|
|
|
pageIndex: 1,
|
|
|
|
name: "",
|
|
|
|
name: "",
|
|
|
|
categoryId: "",
|
|
|
|
categoryId: "",
|
|
|
|
order: "",
|
|
|
|
order: "",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
vm.detailData = res1.result;
|
|
|
|
vm.detailData = res1.result;
|
|
|
|
vm.skuData = res2.result.map(i => {
|
|
|
|
vm.skuData = res2.result.map(i => {
|
|
|
|
i.attributeSymbolList = i.attributeSymbolList.split(',')
|
|
|
|
i.attributeSymbolList = i.attributeSymbolList.split(',')
|
|
|
@ -337,6 +333,15 @@ export default {
|
|
|
|
const stock = this.curSku.stock;
|
|
|
|
const stock = this.curSku.stock;
|
|
|
|
return singleBuyLimit ? Math.min(singleBuyLimit, stock || 1) : stock;
|
|
|
|
return singleBuyLimit ? Math.min(singleBuyLimit, stock || 1) : stock;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getPrice() {
|
|
|
|
|
|
|
|
if (this.curSku.sellPrice) {
|
|
|
|
|
|
|
|
return this.curSku.sellPrice;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return this.detailData.productActivityVO.isStartActivity
|
|
|
|
|
|
|
|
? this.detailData.productActivityVO.activityPrice
|
|
|
|
|
|
|
|
: this.detailData.startingPrice;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onShowService() {
|
|
|
|
onShowService() {
|
|
|
|