| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<view class="page" :style="{'min-height':h+'px'}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<view class="box"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<!-- 	<image src="https://i.ringzle.com/file/20240109/d6c4691423cf40c2bdf9210d389cdd1e.png"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<!-- 	<image src="https://i.ringzle.com/file/20240109/d6c4691423cf40c2bdf9210d389cdd1e.png"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="text">您好!欢迎使用<br>游嵊泗商家服务平台</view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<!-- <view class="" @click="aa()">核销</view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="login"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10,54 +10,59 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		onLoad() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			uni.clearStorageSync(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			aa(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			aa() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.reLaunch({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					url:"/pagesHouse/hexiao/index" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					url: "/pagesHouse/hexiao/index" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//获取手机号进行登录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			decryptPhoneNumber(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				if(e.detail.code) this.wxLogin(e.detail.code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			decryptPhoneNumber(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (e.detail.code) this.wxLogin(e.detail.code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//登录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			wxLogin(code){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				uni.showLoading({ title:'登录中' }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 登录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			wxLogin(code) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				uni.showLoading({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					title: '登录中' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				let that = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				wx.login({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					success(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						that.$api.post('/auth/oauth/token',{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							code:res.code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							phoneCode:code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							grant_type:'merchantWeChat', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							captcha:'aaa' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						},false).then(result=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							if(result.data.code===0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								uni.setStorageSync('authorization',result.data.token_type+' '+result.data.access_token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								uni.setStorageSync('access_token',result.data.access_token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								that.$api.get('/sys/user/info').then(resu=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									if(resu.data.code===0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					success(res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						that.$api.post('/auth/oauth/token', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							code: res.code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							phoneCode: code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							grant_type: 'merchantWeChat', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							captcha: 'aaa' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						}, false).then(result => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							if (result.data.code === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								uni.setStorageSync('authorization', result.data.token_type + ' ' + result 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									.data.access_token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								uni.setStorageSync('access_token', result.data.access_token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								that.$api.get('/sys/user/info').then(resu => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									if (resu.data.code === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										that.$showToast('登录成功'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-										uni.setStorageSync('userInfo',resu.data.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-										setTimeout(()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										uni.setStorageSync('userInfo', resu.data.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											uni.reLaunch({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-												url:'/pages/login/select?userInfo='+encodeURIComponent(JSON.stringify(resu.data.data)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+												url: '/pages/login/select?userInfo=' + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+													encodeURIComponent(JSON 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+														.stringify(resu.data.data)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-										},1500) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									}else that.$showToast(resu.data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										}, 1500) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									} else that.$showToast(resu.data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							}else that.$showToast(result.data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} else that.$showToast(result.data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -67,22 +72,25 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style scoped lang="less"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	.page{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		background: url(https://i.ringzle.com/file/20240523/474a7a2656cb499d851cf7665f9d7d6a.png) no-repeat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		background-size: 100% 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		justify-content: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		.box{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.box { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			width: calc(100% - 180rpx); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			flex-direction: column; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			image{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			image { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				width: 480rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				height: 520rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			.text{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			.text { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				text-align: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				font-size: 56rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				font-family: PingFang SC, PingFang SC; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -90,11 +98,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				color: #FFFFFF; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				line-height: 96rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			.login{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			.login { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				margin-top: 780rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				height: 96rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				button{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				button { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					height: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					background: #1372FF; 
			 |