From 0a07ebfe8baf79af1afd492c6e2152a77923a14e Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Fri, 28 Apr 2023 11:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86=E5=86=97?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/shopPage.vue | 9 +-------- pages/promotion/seckill.vue | 15 --------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index a3c6c02..487e497 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -447,14 +447,7 @@ export default { } }, - /** - * 跳转到商品详情 - */ - navigateToGoodsDetail(val) { - uni.navigateTo({ - url: `/pages/product/goods?id=${val.id}&goodsId=${val.goodsId}`, - }); - }, + /** * 是否收藏 diff --git a/pages/promotion/seckill.vue b/pages/promotion/seckill.vue index d70fdd3..e466527 100644 --- a/pages/promotion/seckill.vue +++ b/pages/promotion/seckill.vue @@ -124,21 +124,6 @@ } }, - /** - * 跳转到商品详情 - */ - navigateToGoodsDetail(item) { - if ( - item.sold_num === item.quantity || - this.timeLine[this.nav].distanceStartTime !== 0 - ) { - return; - } else { - uni.navigateTo({ - url: `/pages/product/goods?id=${item.skuId}&goodsId=${item.goodsId}`, - }); - } - }, /** * 单击导航时间