优化页面

This commit is contained in:
pengxiaolong
2025-05-27 21:05:01 +08:00
parent cf8728f0d7
commit e682754922
28 changed files with 2742 additions and 2434 deletions

View File

@@ -1,32 +0,0 @@
"use strict";
const common_vendor = require("../common/vendor.js");
function VerifyLogin() {
return new Promise((resolve, reject) => {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
if (res.data) {
if (res.data.nickName) {
resolve(true);
} else {
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
resolve(false);
}
} else {
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.navigateTo({ url: "/pages/login/login" });
resolve(false);
}
},
fail: (err) => {
common_vendor.index.__f__("error", "at components/VerifyLogin.js:22", "获取用户信息失败", err);
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.navigateTo({ url: "/pages/login/login" });
reject(err);
}
});
});
}
exports.VerifyLogin = VerifyLogin;
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/VerifyLogin.js.map