From 6c7fecf52405e132e3573b43a7206f99026a1fd8 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 04 八月 2025 18:13:05 +0800 Subject: [PATCH] 商家入驻同意协议,优惠卷领取状态 --- pages/product/goods.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/product/goods.vue b/pages/product/goods.vue index c133d01..3ef8357 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -499,8 +499,12 @@ async onLoad (options) { if(options.q){ - let queryParam = null; - const decodedUrl = decodeURIComponent(decodeURIComponent(option.q)); + const queryParam = { + id:'', + goodsId:'', + distributionId:'' + }; + const decodedUrl = decodeURIComponent(decodeURIComponent(options.q)); console.log('鍘熷URL:', decodedUrl); const params = this.parseUrlParams(decodedUrl); const id = params.id; @@ -589,6 +593,8 @@ * 鍒濆鍖栦俊鎭� */ async init (id, goodsId, distributionId = "") { + console.log('鎵撳嵃id:' + id) + console.log('鎵撳嵃goodsId:'+ goodsId) this.isGroup = false; //鍒濆鍖栨嫾鍥� this.productId = id; // skuId // 杩欓噷璇锋眰鑾峰彇鍒伴〉闈㈡暟鎹� 瑙f瀽鏁版嵁 @@ -645,7 +651,7 @@ this.goodsSpec = response.data.result.specs; this.PromotionList = response.data.result.promotionMap; this.goodsParams = response.data.result.goodsParamsDTOList || []; - + console.log('浼樻儬鍗锋椿鍔�--------------------銆�',response.data.result.promotionMap) // 鍒ゆ柇鏄惁鎷煎洟娲诲姩鎴栬�呯Н鍒嗗晢鍝� 濡傛灉鏈夊垯鏄剧ず鎷煎洟娲诲姩淇℃伅 this.PromotionList && Object.keys(this.PromotionList).forEach((item) => { -- Gitblit v1.8.0