注册调整

This commit is contained in:
2024-05-24 00:21:47 +08:00
parent 0c0d5e55d5
commit b53dc2dd4f
18 changed files with 1683 additions and 1467 deletions

View File

@@ -1,4 +1,5 @@
const TokenKey = 'accessToken';
const SessionKey = 'sessionKey';
const CompanyIdKey = 'companyId';
const ReferrerUserIdKey = 'referrerUserId';
const RegisterStoreIdKey = 'storeId';
@@ -17,6 +18,14 @@ function setToken(token: string) {
uni.setStorageSync(TokenKey, token);
}
function getSessionKey() {
return uni.getStorageSync(SessionKey);
}
function setSessionKey(sessionKey: string){
uni.setStorageSync(SessionKey, sessionKey);
}
function getCompanyId() {
return uni.getStorageSync(CompanyIdKey);
}
@@ -44,6 +53,7 @@ function getRegisterStoreId() {
function clearToken() {
uni.removeStorageSync(TokenKey);
uni.removeStorageSync(CompanyIdKey);
uni.removeStorageSync(SessionKey);
}
export {
@@ -51,6 +61,8 @@ export {
isLogin,
getToken,
setToken,
getSessionKey,
setSessionKey,
getCompanyId,
setCompanyId,
getReferrerUserId,