From aebe9c4cbe99118ef8f395ef77c324c878ebd1f2 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sat, 28 Jun 2025 15:21:22 +0800 Subject: [PATCH] 1 --- mixins/configList.js | 7 +++++-- pages_order/product/productDetail.vue | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) 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: {