|
|
|
@ -103,7 +103,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="main__details-option" v-if="skuData.stock">
|
|
|
|
|
<div class="main__details-option" v-if="isStock()">
|
|
|
|
|
<div
|
|
|
|
|
class="main__details-option--line flex flex-middle"
|
|
|
|
|
v-for="(item, index) in detailData.attributeGroupList"
|
|
|
|
@ -189,7 +189,7 @@ export default {
|
|
|
|
|
curBuyNum: 1,
|
|
|
|
|
activeImg: 0,
|
|
|
|
|
recommendedData: [],
|
|
|
|
|
skuData: {},
|
|
|
|
|
skuData: [],
|
|
|
|
|
detailData: {
|
|
|
|
|
isEnable: false,
|
|
|
|
|
pictureList: [],
|
|
|
|
@ -264,6 +264,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
isStock() {
|
|
|
|
|
return this.skuData.some((item) => item.stock > 0);
|
|
|
|
|
},
|
|
|
|
|
/* 获取倒计时 */
|
|
|
|
|
getSurplus(startTime, endTime) {
|
|
|
|
|
let nowtime = new Date(startTime), //获取当前时间
|
|
|
|
|