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 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"
@ -188,7 +188,7 @@ export default {
curBuyNum: 1,
activeImg: 0,
recommendedData: [],
skuData: {},
skuData: [],
detailData: {
isEnable: false,
pictureList: [],
@ -263,6 +263,9 @@ export default {
},
},
methods: {
isStock() {
return this.skuData.some((item) => item.stock > 0);
},
/* 获取倒计时 */
getSurplus(startTime, endTime) {
let nowtime = new Date(startTime), //

Loading…
Cancel
Save