diff --git a/mixins/configList.js b/mixins/configList.js index ad5a42a..8c45d17 100644 --- a/mixins/configList.js +++ b/mixins/configList.js @@ -52,7 +52,11 @@ export default { title : this.configList.logo_name, } if(this.userInfo.id){ - o.path = this.Gshare.path + '?shareId=' + this.userInfo.id + if(this.Gshare.path.includes('?')){ + o.path += '&shareId=' + this.userInfo.id + }else{ + o.path += '?shareId=' + this.userInfo.id + } } return o }, @@ -60,7 +64,6 @@ export default { if (query.shareId) { uni.setStorageSync('shareId', query.shareId) } - console.log(`uni.setStorageSync('shareId', ${query.shareId})`); }, methods: { } diff --git a/pages_order/product/productDetail.vue b/pages_order/product/productDetail.vue index 4c119c1..86c21e1 100644 --- a/pages_order/product/productDetail.vue +++ b/pages_order/product/productDetail.vue @@ -100,6 +100,8 @@ if(args.id) { this.id = args.id this.getProductDetail(args.id) + // 设置当前商品的分享路径 + // this.Gshare.path = `/pages_order/product/productDetail?id=${args.id}` } }, methods: {