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

merge-requests/42/merge
张征 3 years ago
commit 327bb81131

@ -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), //

Loading…
Cancel
Save