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){