xuqiaoying 2 年之前
父節點
當前提交
cdd5ca26a3
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      pages/index/index.vue

+ 7 - 7
pages/index/index.vue

@@ -456,13 +456,13 @@ export default {
 	} else {
 		console.log('没有code');
 		// 没有code,就重定向到地址https://www.xyyxt.net?ask_type=h.xyyxt.net 去获取code,授权后就会把code带上然后访问域名,就拿到code了
-		if (!uni.getStorageSync('h5_code')) {
-			location.replace('https://www.xyyxt.net/?ask_type=h.xyyxt.net')
-			return
-		} else {
-			// this.$set(this.optObj, 'code', uni.getStorageSync('h5_code'))
-			// this.OfficialLogin()
-		}
+		// if (!uni.getStorageSync('h5_code')) {
+		// 	location.replace('https://www.xyyxt.net/?ask_type=h.xyyxt.net')
+		// 	return
+		// } else {
+		// 	// this.$set(this.optObj, 'code', uni.getStorageSync('h5_code'))
+		// 	// this.OfficialLogin()
+		// }
 	}
 	// #endif
     this.getInfo(); // 判断有没有关注公众号