用户登录流程开发接口对接

This commit is contained in:
唐明明
2021-08-09 17:20:38 +08:00
parent 3c3d946eb5
commit bfea54eb8f
37 changed files with 8399 additions and 8539 deletions

33
public/userAuth.js Normal file
View File

@@ -0,0 +1,33 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 登录
*/
import { router } from '../router'
class userAuth {
constructor() {
}
// 预登录
Login(){
uni.preLogin({
provider: "univerify",
success : res=> {
console.log(res)
},
fail : err=> {
router.push({name: "Login"})
}
})
}
// 一键登录
keyLogin(){
console.log('一键登录')
}
}
export default userAuth