| | |
| | | async onLoad (options) { |
| | | |
| | | if(options.q){ |
| | | let queryParam = null; |
| | | const decodedUrl = decodeURIComponent(decodeURIComponent(option.q)); |
| | | const queryParam = { |
| | | id:'', |
| | | goodsId:'' |
| | | }; |
| | | const decodedUrl = decodeURIComponent(decodeURIComponent(options.q)); |
| | | console.log('原始URL:', decodedUrl); |
| | | const params = this.parseUrlParams(decodedUrl); |
| | | const id = params.id; |
| | |
| | | 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) => { |