商城测试版v5

This commit is contained in:
2022-07-12 20:06:22 +08:00
parent 6f9dd5b838
commit 575799b713
14 changed files with 235 additions and 52 deletions
+11 -10
View File
@@ -41,16 +41,17 @@ export default () => {
await wxLogin()
reslove(true)
} else {
Taro.checkSession({
success: async () => {
reslove(true)
if(!userInfo.adminUserInfo) getAdminUserInfo()
},
fail: async () => {
await wxLogin()
reslove(true)
}
})
//这个东西不要打开,checkSession有调用频率问题
// Taro.checkSession({
// success: async () => {
// reslove(true)
// if(!userInfo.adminUserInfo) getAdminUserInfo()
// },
// fail: async () => {
// await wxLogin()
// reslove(true)
// }
// })
}
})
}
-1
View File
@@ -9,7 +9,6 @@ import useLogin from "./useLogin"
type Param = {success: true|false, data: any, msg: string, code: null|number, loading: false|true}
let loginStatus = false //登录状态,true登录中
console.log('你不要过来啊')
export default () => {
let initData = {