用户登录流程开发接口对接
This commit is contained in:
33
public/userAuth.js
Normal file
33
public/userAuth.js
Normal 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
|
||||
Reference in New Issue
Block a user