diff --git a/components/t-goods-item/t-goods-item.vue b/components/t-goods-item/t-goods-item.vue index 033e062..ac3be38 100644 --- a/components/t-goods-item/t-goods-item.vue +++ b/components/t-goods-item/t-goods-item.vue @@ -26,7 +26,7 @@ 马上抢 已售磬 即将开始 - 已结束 + 已结束 diff --git a/pages/activity/GoodsSeckill/index2.vue b/pages/activity/GoodsSeckill/index2.vue deleted file mode 100644 index 017d0d0..0000000 --- a/pages/activity/GoodsSeckill/index2.vue +++ /dev/null @@ -1,278 +0,0 @@ - - - diff --git a/pages/activity/SeckillDetails/index.vue b/pages/activity/SeckillDetails/index.vue index 8eba8d4..df7533b 100644 --- a/pages/activity/SeckillDetails/index.vue +++ b/pages/activity/SeckillDetails/index.vue @@ -74,6 +74,7 @@ + 单独购买 @@ -340,7 +341,15 @@ export default { let stock = productSelect.stock || 0 let num = this.attr.productSelect if (changeValue) { - num.cart_num++ + if (num) num.cart_num++ + if (num.cart_num > this.storeInfo.num) { + num.cart_num = this.storeInfo.num + uni.showToast({ + title: '限购' + this.storeInfo.num, + icon: 'none', + duration: 2000, + }) + } if (num.cart_num > stock) { this.$set(this.attr.productSelect, 'cart_num', stock) this.$set(this, 'cartNum', stock) diff --git a/pages/shop/news/NewsDetail/index.vue b/pages/shop/news/NewsDetail/index.vue index 520e7cb..adb5683 100644 --- a/pages/shop/news/NewsDetail/index.vue +++ b/pages/shop/news/NewsDetail/index.vue @@ -114,7 +114,7 @@ export default { let that = this, id = this.$yroute.query.id getArticleDetails(id).then(res => { - res.data.content = res.data.content.replace(/\