From 54a0b7c1a758f958f7e6fd0b86fa8e0aecfeca75 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 28 八月 2023 16:17:33 +0800
Subject: [PATCH] 呼叫客服增加选择呼叫类型
---
pages/login/login.vue | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 62d395b..30df810 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();
//璺宠浆椤甸潰
@@ -189,6 +191,7 @@
console.log('鎵撳紑浜�');
},
privacyConfirm() {
+ this.loginPopupShow = false
uni.navigateTo({
url: '/pages/register/register'
});
--
Gitblit v1.9.1