From be61dfbc307d29a4fad0d0251f0934ad6343acfa Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Thu, 20 Jun 2024 16:11:40 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E8=B4=AD=E7=89=A9=E8=BD=A6):[#1837]?= =?UTF-8?q?=E7=A7=92=E6=9D=80=E5=95=86=E5=93=81=E5=8A=A0=E5=85=A5=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E5=90=8E=EF=BC=8C=E4=BB=8E=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E7=82=B9=E5=87=BB=E7=A7=92=E6=9D=80=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=BA=E6=99=AE=E9=80=9A=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pages/cart.vue b/pages/cart.vue index 932bc44..c916231 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -73,19 +73,19 @@ :src="good['productInfo']['attrInfo']['image']" class="good-cover flex-0" mode="scaleToFill" - @click="navToGood(good['productId'])" + @click="navToGood(good)" /> {{ good['productInfo']['storeName'] }} {{ good['truePrice'] }} @@ -523,10 +523,17 @@ export default { this.currGood = {} this.showAttr = false }, - navToGood(id) { + navToGood(good) { + const query = { + id: good.productId + } + if (good.seckillId) { + query.activityId = good.seckillId + query.from = 'kill' + } this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', - query: { id } + query }) }, submit() {