瀏覽代碼

commit -m 修改测试问题

zhengjinyi 4 年之前
父節點
當前提交
57c608f370
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      pages/authorization/authorization.vue
  2. 1 1
      pages/index/index.vue

+ 2 - 0
pages/authorization/authorization.vue

@@ -77,6 +77,8 @@ export default {
 				})
 			}).catch((error)=>{
 				console.log('游客登录')
+				// 缓存游客openid
+				uni.setStorageSync('openid', error.data.openid)
 				uni.reLaunch({
 					url: '/pages/login/login'
 				})

+ 1 - 1
pages/index/index.vue

@@ -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) {