Files
barter-app/public/userAuth.js
2021-08-09 17:20:38 +08:00

34 lines
508 B
JavaScript

/**
* 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