From 0bd15917637362c104eb157d5163f65bf9503780 Mon Sep 17 00:00:00 2001 From: wk Date: 星期六, 14 九月 2024 16:53:14 +0800 Subject: [PATCH] feat:通行证 --- pages/login/login.vue | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index c02b3d2..e66b574 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -15,7 +15,9 @@ </view> <!-- #endif --> <view class="utils-block"> + <!-- #ifdef MP-WEIXIN --> <view @click="forgetPassword"><text>蹇樿瀵嗙爜?</text></view> + <!-- #endif --> <!-- #ifdef MP-WEIXIN --> <view @click="PrivacyAgreementHandle"><text>鏂扮敤鎴锋敞鍐�</text></view> <!-- #endif --> @@ -125,17 +127,17 @@ uni.showLoading({ title: '鍔犺浇涓�...' }); - 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', - // icon: 'none' - // }); - } - }); + // 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', + // // icon: 'none' + // // }); + // } + // }); this.$nextTick(() => { apiLoginWx({ code: code }).then(res => { if (res.code != 1) { @@ -162,6 +164,8 @@ this.$u.toast(res.msg); this.bindWxModelShow = true; } + }).catch((err) => { + this.loginPopupShow = false; }); }); this.loginPopupShow = false; -- Gitblit v1.9.1