|
|
@@ -63,7 +63,8 @@ onLaunch(() => { |
|
|
|
console.log(userInfoModulesPinia.openId, "获取openid");
|
|
|
|
// 获取头像和金币
|
|
|
|
const res3 = await findImageApi();
|
|
|
|
userInfoModulesPinia.myAvatar = res3.data.image;
|
|
|
|
userInfoModulesPinia.myAvatar =
|
|
|
|
res3.data && res3.data.image ? res3.data.image : "";
|
|
|
|
const res4 = await findGlodApi();
|
|
|
|
if (!res4.data) {
|
|
|
|
userInfoModulesPinia.myGlod = 0;
|
|
|
@@ -79,6 +80,7 @@ onLaunch(() => { |
|
|
|
uni.redirectTo({
|
|
|
|
url: "/pages/login/index",
|
|
|
|
});
|
|
|
|
console.log("error1");
|
|
|
|
uni.showToast({
|
|
|
|
title: "登录失败,请重试",
|
|
|
|
icon: "none",
|
|
|
@@ -88,6 +90,7 @@ onLaunch(() => { |
|
|
|
// uni.redirectTo({
|
|
|
|
// url: "pages/index/index",
|
|
|
|
// });
|
|
|
|
console.log(error, "error2");
|
|
|
|
uni.showToast({
|
|
|
|
title: "登录失败,请重试",
|
|
|
|
icon: "none",
|
|
|
@@ -97,6 +100,7 @@ onLaunch(() => { |
|
|
|
// uni.redirectTo({
|
|
|
|
// url: "pages/index/index",
|
|
|
|
// });
|
|
|
|
console.log("error3");
|
|
|
|
uni.showToast({
|
|
|
|
title: "登录失败,请重试",
|
|
|
|
icon: "none",
|
|
|
@@ -107,6 +111,7 @@ onLaunch(() => { |
|
|
|
// uni.redirectTo({
|
|
|
|
// url: "pages/index/index",
|
|
|
|
// });
|
|
|
|
console.log("error4");
|
|
|
|
uni.showToast({
|
|
|
|
title: "登录失败,请重试",
|
|
|
|
icon: "none",
|
|
|
|