1.我想实现的效果是,当进入页面,就页面就直接微信授权登录
created() {
if (!localStorage.consumername) {
window.location = "http://xiaoshou.banshufang.net/index.php/Subscriber/Wlogin/userinfo";
}
...
}
微信授权之后我本地会存储localStorage.consumername,通过它是否存在去判断
安卓手机是可以的,但是苹果手机一授权登录
地址:
http://xiaoshou.banshufang.net/index.php?cs=00&storeid=01&deskid=00
立一个 flag 在缓存中