From 17287df29332f873f5a0991ce399fababa4f09d8 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Fri, 15 Mar 2024 12:02:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E6=94=B9AppQQ=E7=99=BB?= =?UTF-8?q?=E5=BD=95appid=20=E4=BB=A5=E5=8F=8A=E4=BC=98=E5=8C=96=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 16 +++++++--------- pages/passport/login.vue | 12 ++++++------ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/manifest.json b/manifest.json index e51eea0..5ab7c30 100644 --- a/manifest.json +++ b/manifest.json @@ -116,7 +116,7 @@ }, "apple" : {}, "qq" : { - "appid" : "101918501" + "appid" : "101918503" } }, "geolocation" : { @@ -206,14 +206,12 @@ "desc" : "位置信息将用于高德地图的效果展示" } }, - "plugins" : { - - // 直播插件注释 - // "live-player-plugin" : { - // "version" : "1.3.0", - // "provider" : "wx2b03c6e691cd7370" - // } - }, + "plugins" : {}, + // 直播插件注释 + // "live-player-plugin" : { + // "version" : "1.3.0", + // "provider" : "wx2b03c6e691cd7370" + // } "requiredPrivateInfos" : [ "chooseLocation", "getLocation" ] }, "h5" : { diff --git a/pages/passport/login.vue b/pages/passport/login.vue index aafb45f..a590773 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -183,7 +183,7 @@ onShow() { // 只要是app登录的全部清除内容 - // #ifdef APP-PLUS + // #ifdef APP-PLUS storage.setAccessToken(""); storage.setRefreshToken(""); storage.setUserInfo({}); @@ -204,7 +204,7 @@ }, mounted() { - + // #ifndef APP-PLUS //判断是否微信浏览器 var ua = window.navigator.userAgent.toLowerCase(); @@ -428,7 +428,7 @@ //写入用户信息 uni.setStorageSync("nickname", infoRes.userInfo.nickName); uni.setStorageSync("avatar", infoRes.userInfo.avatarUrl); - uni.setStorageSync("unionId", infoRes.userInfo.unionId); + uni.setStorageSync("unionId", infoRes.userInfo.unionId || infoRes.userInfo.unionid); // #ifdef MP-WEIXIN //微信小程序获取openid 需要特殊处理 如需获取openid请参考uni-id: https://uniapp.dcloud.net.cn/uniCloud/uni-id @@ -460,7 +460,7 @@ token:{unionId:"",openId:uni.getStorageSync("openid")} }; uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token; - + openIdLogin(params, clientType).then((res) => { if (!res.data.success) { let errormessage = "第三方登录暂不可用"; @@ -599,9 +599,9 @@ uni.navigateTo({ url: "/pages/mine/help/tips?type=" + val, }); - + }, - + // 点击获取验证码 start() { this.codeColor = "#999";