fix: 🐛 修改AppQQ登录appid 以及优化登录页面可能存在的bug

This commit is contained in:
Yer
2024-03-15 12:02:39 +08:00
parent a8d321c66d
commit 17287df293
2 changed files with 13 additions and 15 deletions

View File

@@ -116,7 +116,7 @@
}, },
"apple" : {}, "apple" : {},
"qq" : { "qq" : {
"appid" : "101918501" "appid" : "101918503"
} }
}, },
"geolocation" : { "geolocation" : {
@@ -206,14 +206,12 @@
"desc" : "位置信息将用于高德地图的效果展示" "desc" : "位置信息将用于高德地图的效果展示"
} }
}, },
"plugins" : { "plugins" : {},
// 直播插件注释
// 直播插件注释 // "live-player-plugin" : {
// "live-player-plugin" : { // "version" : "1.3.0",
// "version" : "1.3.0", // "provider" : "wx2b03c6e691cd7370"
// "provider" : "wx2b03c6e691cd7370" // }
// }
},
"requiredPrivateInfos" : [ "chooseLocation", "getLocation" ] "requiredPrivateInfos" : [ "chooseLocation", "getLocation" ]
}, },
"h5" : { "h5" : {

View File

@@ -183,7 +183,7 @@
onShow() { onShow() {
// 只要是app登录的全部清除内容 // 只要是app登录的全部清除内容
// #ifdef APP-PLUS // #ifdef APP-PLUS
storage.setAccessToken(""); storage.setAccessToken("");
storage.setRefreshToken(""); storage.setRefreshToken("");
storage.setUserInfo({}); storage.setUserInfo({});
@@ -204,7 +204,7 @@
}, },
mounted() { mounted() {
// #ifndef APP-PLUS // #ifndef APP-PLUS
//判断是否微信浏览器 //判断是否微信浏览器
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
@@ -428,7 +428,7 @@
//写入用户信息 //写入用户信息
uni.setStorageSync("nickname", infoRes.userInfo.nickName); uni.setStorageSync("nickname", infoRes.userInfo.nickName);
uni.setStorageSync("avatar", infoRes.userInfo.avatarUrl); uni.setStorageSync("avatar", infoRes.userInfo.avatarUrl);
uni.setStorageSync("unionId", infoRes.userInfo.unionId); uni.setStorageSync("unionId", infoRes.userInfo.unionId || infoRes.userInfo.unionid);
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
//微信小程序获取openid 需要特殊处理 如需获取openid请参考uni-id: https://uniapp.dcloud.net.cn/uniCloud/uni-id //微信小程序获取openid 需要特殊处理 如需获取openid请参考uni-id: https://uniapp.dcloud.net.cn/uniCloud/uni-id
@@ -460,7 +460,7 @@
token:{unionId:"",openId:uni.getStorageSync("openid")} token:{unionId:"",openId:uni.getStorageSync("openid")}
}; };
uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token; uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token;
openIdLogin(params, clientType).then((res) => { openIdLogin(params, clientType).then((res) => {
if (!res.data.success) { if (!res.data.success) {
let errormessage = "第三方登录暂不可用"; let errormessage = "第三方登录暂不可用";
@@ -599,9 +599,9 @@
uni.navigateTo({ uni.navigateTo({
url: "/pages/mine/help/tips?type=" + val, url: "/pages/mine/help/tips?type=" + val,
}); });
}, },
// 点击获取验证码 // 点击获取验证码
start() { start() {
this.codeColor = "#999"; this.codeColor = "#999";