From c67165057421d2de2634fc09136279ec27ed8bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 5 Jan 2024 14:24:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gasStation-uni/pages/my/my.vue | 5 +++-- gasStation-uni/pagesMy/invite/invite.vue | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gasStation-uni/pages/my/my.vue b/gasStation-uni/pages/my/my.vue index 9732be37a..bf0c898cd 100644 --- a/gasStation-uni/pages/my/my.vue +++ b/gasStation-uni/pages/my/my.vue @@ -189,12 +189,13 @@ tabbar }, onShow() { + this.getUser() this.query.storeId = uni.getStorageSync("storeId") this.query.chainStoreId = uni.getStorageSync('chainStoreId') this.getUserBalance(); this.getGiftRecords(); - this.getUserInfoList(); - this.getUser() + + }, methods: { // 查询当前登录用户信息 diff --git a/gasStation-uni/pagesMy/invite/invite.vue b/gasStation-uni/pagesMy/invite/invite.vue index 089ac9a24..a8e45feca 100644 --- a/gasStation-uni/pagesMy/invite/invite.vue +++ b/gasStation-uni/pagesMy/invite/invite.vue @@ -86,7 +86,8 @@ storeId: '', show: false, options: { - code: 'https://www.tuofeng.cc/oily?storeId=19&userId=45', + code: 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + '&userId=' + uni + .getStorageSync('userId') + '&type=yaoqingyouli', // code: 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + ' &userId=' + uni // .getStorageSync('userId'), // 生成二维码的值 size: 460, // 460代表生成的二维码的宽高均为460rpx @@ -95,8 +96,9 @@ } }, onLoad() { - console.log(uni.getStorageSync('userId')); - console.log(uni.getStorageSync('storeId')); + let codes = 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + + '&userId=' + uni.getStorageSync('userId') + '&type=yaoqingyouli' + console.log(codes); this.query.storeId = uni.getStorageSync("storeId"); }, @@ -400,4 +402,4 @@ padding: 0px !important; background-color: transparent; } - + \ No newline at end of file