forked from zhongyuanhaiju/uniapp
【修复】首页分页未清空
This commit is contained in:
parent
a991e89a2b
commit
7827320707
|
|
@ -241,7 +241,7 @@ export default {
|
|||
// this.list = []; //如果是第一页需手动制空列表
|
||||
// }
|
||||
|
||||
this.goodsList = []
|
||||
this.list = []
|
||||
this.list = this.list.concat(res.data.list); //追加新数据
|
||||
// this.end_time = parseInt(res.data.end_time);
|
||||
// 开启倒计时
|
||||
|
|
|
|||
|
|
@ -350,11 +350,12 @@
|
|||
<button type="primary" v-else-if="goodsDetail.stock && goodsDetail.stock != 0 && type == 'confirm'">确认</button>
|
||||
<template v-else-if="goodsDetail.stock && goodsDetail.stock != 0">
|
||||
<template v-if="goodsDetail.buy_num">
|
||||
<button type="primary" v-if="goodsDetail.buy_num <= goodsDetail.stock">立即抢购</button>
|
||||
<!-- <button type="primary" v-if="goodsDetail.buy_num <= goodsDetail.stock">立即抢购</button>-->
|
||||
<button type="primary" v-if="goodsDetail.buy_num <= goodsDetail.stock">立即兑换</button>
|
||||
<button type="primary" v-else disabled="true">库存不足</button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<button type="primary">立即抢购</button>
|
||||
<button type="primary">立即兑换</button>
|
||||
</template>
|
||||
</template>
|
||||
<button type="primary" v-else disabled="true">库存不足</button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue