From 7b535f1d4560403d7adb5e08c89d7eeb387926a3 Mon Sep 17 00:00:00 2001 From: Gao xiaosong <704041637@qq.com> Date: Fri, 2 Jul 2021 23:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=95=86=E6=88=B7=E7=89=88=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=A7=92=E6=9D=80=E9=99=90=E8=B4=AD=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/t-goods-item/t-goods-item.vue | 2 +- pages/activity/GoodsSeckill/index2.vue | 278 ----------------------- pages/activity/SeckillDetails/index.vue | 11 +- pages/shop/news/NewsDetail/index.vue | 2 +- 4 files changed, 12 insertions(+), 281 deletions(-) delete mode 100644 pages/activity/GoodsSeckill/index2.vue 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(/\