登录对接

This commit is contained in:
仲么了
2023-07-03 09:16:54 +08:00
parent e9b1e9a417
commit 5f67499e57
19 changed files with 358 additions and 181 deletions

View File

@@ -197,6 +197,14 @@ const prePage = () => {
return prePage
}
const loginSuccess = (data) => {
uni.setStorageSync('userInfo', data)
uni.setStorageSync('token', data.token_type + ' ' + data.access_token)
uni.reLaunch({
url: '/pages/user/login',
})
}
export default {
validatePhoneNumber,
toast,
@@ -206,4 +214,5 @@ export default {
getUserLocation,
loadConfig,
prePage,
loginSuccess,
}