From 29cbb03214131d99cffe9a07cbdfd07163415b9d Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Wed, 27 Mar 2024 14:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=85=A5?= =?UTF-8?q?=E5=8F=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 092ccc1..a739f7f 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -446,7 +446,11 @@ const that = this; console.log(options, "oo") this.isPre = options.isPre ? options.isPre : null - this.goodsId = options.goodsId ? options.goodsId : null + // 记录query参数 + // this.onRecordQuery(options) + const scene = getSceneData(options) + this.goodsId = options.goodsId ? parseInt(options.goodsId) : parseInt(scene.gid) + // this.goodsId = options.goodsId ? options.goodsId : null this.pre_id = options.pre_id ? options.pre_id : null; this.isSeckill = options.isSeckill ? options.isSeckill : null; this.isBuy = options.isBuy ? decodeURIComponent(options.isBuy) : null; @@ -463,8 +467,6 @@ that.selectShop = selectShop that.selectShop.price = that.selectShop.price / 100 }) - // 记录query参数 - this.onRecordQuery(options) // uni.$on("checkSelectShop", function(selectShop) { // console.log("checkSelectShop1",selectShop) // if(selectShop && selectShop.goods_sku_id){