|  | @@ -179,12 +179,9 @@
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		beforeCreate: function() {
 | 
	
		
			
				|  |  | -			// alert('beforeCreate')
 | 
	
		
			
				|  |  |  			let ua = navigator.userAgent.toLowerCase();
 | 
	
		
			
				|  |  |  			if (ua.match(/MicroMessenger/i) == "micromessenger") {
 | 
	
		
			
				|  |  | -				// alert('是')
 | 
	
		
			
				|  |  | -				//是
 | 
	
		
			
				|  |  | -				// alert('init')
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  |  				var appId = "wx4eab2e3b5531d58b";
 | 
	
		
			
				|  |  |  				var params = {};
 | 
	
		
			
				|  |  |  		
 | 
	
	
		
			
				|  | @@ -234,7 +231,10 @@
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  							if (res.data.flag == 3002) {
 | 
	
		
			
				|  |  |  								// alert("3002授权失败,请重新登录");
 | 
	
		
			
				|  |  | -								window.location.href = 'https://qhome.usky.cn/index.html#/';
 | 
	
		
			
				|  |  | +								uni.switchTab({
 | 
	
		
			
				|  |  | +									url: '/pages/index/index'
 | 
	
		
			
				|  |  | +								});
 | 
	
		
			
				|  |  | +								// window.location.href = 'https://qhome.usky.cn/index.html#/';
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  						}
 | 
	
		
			
				|  |  |  					});
 | 
	
	
		
			
				|  | @@ -270,18 +270,11 @@
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  | -		onLaunch: function() {
 | 
	
		
			
				|  |  | -			// alert('onLaunch')
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | -		},
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		onLoad: function(option) {
 | 
	
		
			
				|  |  | -			// alert('onload')
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  |  			let ua = navigator.userAgent.toLowerCase();
 | 
	
		
			
				|  |  |  			if (ua.match(/MicroMessenger/i) == "micromessenger") {
 | 
	
		
			
				|  |  | -				// alert('是')
 | 
	
		
			
				|  |  |  				
 | 
	
		
			
				|  |  |  				var init=this.init();
 | 
	
		
			
				|  |  |  				if(init="3001"){
 | 
	
	
		
			
				|  | @@ -294,7 +287,7 @@
 | 
	
		
			
				|  |  |  			} else {
 | 
	
		
			
				|  |  |  				this.getData();
 | 
	
		
			
				|  |  |  				this.getSearchList();
 | 
	
		
			
				|  |  | -				// alert('不是')
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  				//不是
 | 
	
		
			
				|  |  |  				// uni.navigateTo({
 | 
	
		
			
				|  |  |  				// 	url: '/pages/login/login',
 | 
	
	
		
			
				|  | @@ -309,12 +302,7 @@
 | 
	
		
			
				|  |  |  			this.hackReset = false;
 | 
	
		
			
				|  |  |  			this.$nextTick(() => {
 | 
	
		
			
				|  |  |  				this.hackReset = true;
 | 
	
		
			
				|  |  | -			})
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | +			})			
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		
 | 
	
	
		
			
				|  | @@ -334,32 +322,23 @@
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  				return theRequest
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | -			async getUrlPrams(key) {
 | 
	
		
			
				|  |  | -				var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)", "i");
 | 
	
		
			
				|  |  | -				var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
 | 
	
		
			
				|  |  | -				var context = "";
 | 
	
		
			
				|  |  | -				if (r != null) {
 | 
	
		
			
				|  |  | -					context = r[2];
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -				return context;
 | 
	
		
			
				|  |  | -			},
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  |  			async init() {
 | 
	
		
			
				|  |  |  				var appId = "wx4eab2e3b5531d58b";
 | 
	
		
			
				|  |  | -				// var appId = "wx8bba7ec467b61efa"; //ming测试公众号
 | 
	
		
			
				|  |  | +				// var appId = "wx8bba7ec467b61efa"; //ming测试公众号
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +				var CODE = this.getUrlCode();
 | 
	
		
			
				|  |  | +				var code = CODE['code'];
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  |  				var params = {};
 | 
	
		
			
				|  |  | -				var CODE = this.getUrlCode();
 | 
	
		
			
				|  |  | -				var code = CODE['code'];
 | 
	
		
			
				|  |  |  				if (code) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  					params.code = code;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -					//使用code请求服务器接口,换取用户用户openID
 | 
	
		
			
				|  |  | +					//使用code请求服务器接口,换取用户用户openID 
 | 
	
		
			
				|  |  |  					const res = await this.$myRequest({
 | 
	
		
			
				|  |  |  						url: 'Com/getPageAuthorization',
 | 
	
		
			
				|  |  |  						data: params
 | 
	
		
			
				|  |  |  					})
 | 
	
		
			
				|  |  | -					
 | 
	
		
			
				|  |  |  					
 | 
	
		
			
				|  |  |  					if (res.data.flag == 3000) {
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -380,7 +359,8 @@
 | 
	
		
			
				|  |  |  				var cs = {};
 | 
	
		
			
				|  |  |  				var curl = window.location.href;
 | 
	
		
			
				|  |  |  				cs.curl = curl;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				//
 | 
	
		
			
				|  |  |  				const res1 = await this.$myRequest({
 | 
	
		
			
				|  |  |  					url: 'Com/getAuthorizationUrl',
 | 
	
		
			
				|  |  |  					data: cs
 | 
	
	
		
			
				|  | @@ -393,28 +373,7 @@
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			// end
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			//首页初始化授权
 | 
	
		
			
				|  |  | -			// async getPageAuthorization(ming = {}) {
 | 
	
		
			
				|  |  | -			// 	const res = await this.$myRequest({
 | 
	
		
			
				|  |  | -			// 		url: 'Com/getPageAuthorization',
 | 
	
		
			
				|  |  | -			// 		data: ming
 | 
	
		
			
				|  |  | -			// 	})
 | 
	
		
			
				|  |  | -			// 	alert('res.data.flag')
 | 
	
		
			
				|  |  | -			// 	alert(res.data.flag)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -			// 	if (res.data.flag == 3000) {
 | 
	
		
			
				|  |  | -			// 		uni.navigateTo({
 | 
	
		
			
				|  |  | -			// 			url: '/pages/login/login',
 | 
	
		
			
				|  |  | -			// 		});
 | 
	
		
			
				|  |  | -			// 	}
 | 
	
		
			
				|  |  | -			// 	if (res.data.flag == 3002) {
 | 
	
		
			
				|  |  | -			// 		uni.navigateTo({
 | 
	
		
			
				|  |  | -			// 			url: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4eab2e3b5531d58b&redirect_uri=' + res.data
 | 
	
		
			
				|  |  | -			// 				.tourl + '&response_type=code&scope=snsapi_base&state=abc123#wechat_redirect',
 | 
	
		
			
				|  |  | -			// 		});
 | 
	
		
			
				|  |  | -			// 	}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -			// },
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			async getData() {
 | 
	
		
			
				|  |  |  				const res = await this.$myRequest({
 |