Merge branch 'feature/task1.0.0-0507-zz' into feature/task1.0.0

merge-requests/40/head
张征 3 years ago
commit 907bc68327

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

Loading…
Cancel
Save