@@ -77,6 +77,8 @@ export default {
})
}).catch((error)=>{
console.log('游客登录')
+ // 缓存游客openid
+ uni.setStorageSync('openid', error.data.openid)
uni.reLaunch({
url: '/pages/login/login'
@@ -206,7 +206,7 @@ export default {
// 栏目跳转
navigator(url) {
authorize.getSetting().then(res => {
- // console.log('是否已授权',res);
+ console.log('是否已授权',res);
//0:为取消授权 1:为已授权 2:为未操作
if (res == 1) {
if (this.hasLogin) {