From 82a7eba143cc761b303b99889193f7aad2dc9d08 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 28 八月 2023 08:56:08 +0800 Subject: [PATCH] 修改bug,称重页面增加历史和异常原因填写 --- pages/login/login.vue | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 62d395b..13aa2af 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -137,6 +137,7 @@ wx.request({ url: `https://api.weixin.qq.com/sns/jscode2session?appid=${this.appid}&secret=${this.secret}&js_code=${code}&grant_type=authorization_code`, success(res) { + console.log(res, 'openid'); uni.setStorageSync('openid', res.data.openid); // uni.showToast({ // title: '鎴愬姛鑾峰彇娴嬭瘯openid', @@ -157,6 +158,7 @@ this.$reqGet('getUserEntity').then(res => { this.setUserTabbar(res.data.type); uni.setStorageSync('roleType', res.data.type); + uni.setStorageSync("userId", res.data.userId) setCustomerId(res.data.customerid); uni.hideLoading(); //璺宠浆椤甸潰 -- Gitblit v1.9.1