|  |  |  | @ -1,127 +1,43 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <template> | 
			
		
	
		
			
				
					|  |  |  |  | 	<view class="login-page bg-white"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<view class="image login-bg"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			<!-- <image :src="imgURL+'login-bg.png'" mode="widthFix"></image> --> | 
			
		
	
		
			
				
					|  |  |  |  | 			<!-- <image src="../../../BagStation/static/img/LV.png" mode="widthFix"></image> --> | 
			
		
	
		
			
				
					|  |  |  |  | 			<image src="../../../static/img/login-bg.png" mode="widthFix"></image> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<scroll-view scroll-x class=" bg-white nav padding"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			<view class="flex text-center padding-bottom"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<view class="cu-item  flex-sub"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<view class="cu-item  flex-sub" :class="0==TabCur?'text-red cur':''" @tap="tabSelect(0)"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 					个人账号 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<view class="cu-item  flex-sub"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<!-- 	<view class="cu-item  flex-sub" :class="1==TabCur?'text-red cur':''" @tap="tabSelect(1)"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<!--<view class="cu-item  flex-sub" :class="1==TabCur?'text-red cur':''" @tap="tabSelect(1)"> | 
			
		
	
		
			
				
					|  |  |  |  | 					企业账号 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</view> | 
			
		
	
		
			
				
					|  |  |  |  |  --> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</view>--> | 
			
		
	
		
			
				
					|  |  |  |  | 			</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		</scroll-view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<view class="cu-load load-modal" v-if="loadModal"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			<view class="gray-text">加载中...</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<view class="margin-lg flex flex-direction text-center"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			<button class="cu-btn round  bg-main-oil  lg text-lg" open-type="getPhoneNumber" | 
			
		
	
		
			
				
					|  |  |  |  | 				@getphonenumber="decryptPhoneNumber"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<text class="cuIcon-weixin padding-right-xs"> </text> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				<text> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 					微信用户一键登录 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				</text> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			</button> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			<button class="cu-btn margin-top round lg" @tap="refuseEmpower"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				输入手机号码登录 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			</button> | 
			
		
	
		
			
				
					|  |  |  |  | 			<button class="cu-btn bg-0 margin-top round  text-sm" @tap="refuseLogin"> | 
			
		
	
		
			
				
					|  |  |  |  | 				跳过 | 
			
		
	
		
			
				
					|  |  |  |  | 			</button> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		</view> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<!-- <loginBottom :check="loginOut" /> --> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		<loginBottom @onCheck="checkAgree" /> | 
			
		
	
		
			
				
					|  |  |  |  | 	</view> | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -131,7 +47,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 	import loginBottom from './components/loginBottom.vue' | 
			
		
	
		
			
				
					|  |  |  |  | 	import oilIdentityApi from '@/api/oil-identity' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	export default { | 
			
		
	
		
			
				
					|  |  |  |  | 		components: { | 
			
		
	
		
			
				
					|  |  |  |  | 			loginBottom | 
			
		
	
	
		
			
				
					|  |  |  | @ -139,6 +54,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 		data() { | 
			
		
	
		
			
				
					|  |  |  |  | 			return { | 
			
		
	
		
			
				
					|  |  |  |  | 				// imgsrc:require('../../../BagStation/static/img/login-bg.png'), | 
			
		
	
		
			
				
					|  |  |  |  | 				checked:false, | 
			
		
	
		
			
				
					|  |  |  |  | 				userHandle: false, | 
			
		
	
		
			
				
					|  |  |  |  | 				TabCur: 0, | 
			
		
	
		
			
				
					|  |  |  |  | 				accuntSource: false, | 
			
		
	
	
		
			
				
					|  |  |  | @ -161,12 +77,12 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 			uni.login({ | 
			
		
	
		
			
				
					|  |  |  |  | 				provider: 'weixin', | 
			
		
	
		
			
				
					|  |  |  |  | 				success: (loginRes) => { | 
			
		
	
		
			
				
					|  |  |  |  | 					console.log(loginRes,'+++++++') | 
			
		
	
		
			
				
					|  |  |  |  | 					console.log(loginRes, '+++++++') | 
			
		
	
		
			
				
					|  |  |  |  | 					const code = loginRes.code | 
			
		
	
		
			
				
					|  |  |  |  | 					this.onceCode = code | 
			
		
	
		
			
				
					|  |  |  |  | 					console.log(this.onceCode,'----------') | 
			
		
	
		
			
				
					|  |  |  |  | 					console.log(this.onceCode, '----------') | 
			
		
	
		
			
				
					|  |  |  |  | 					oilIdentityApi.sendCode(this.onceCode).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  | 						console.log(res,'++++++++++++++++') | 
			
		
	
		
			
				
					|  |  |  |  | 						console.log(res, '++++++++++++++++') | 
			
		
	
		
			
				
					|  |  |  |  | 						if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  | 							this.sessionKey = res.data.sessionKey | 
			
		
	
		
			
				
					|  |  |  |  | 							uni.setStorageSync('openid', res.data.openId) | 
			
		
	
	
		
			
				
					|  |  |  | @ -198,6 +114,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 			}) | 
			
		
	
		
			
				
					|  |  |  |  | 		}, | 
			
		
	
		
			
				
					|  |  |  |  | 		methods: { | 
			
		
	
		
			
				
					|  |  |  |  | 			checkAgree(val) { | 
			
		
	
		
			
				
					|  |  |  |  | 				this.checked = val | 
			
		
	
		
			
				
					|  |  |  |  | 			}, | 
			
		
	
		
			
				
					|  |  |  |  | 			refuseLogin() { | 
			
		
	
		
			
				
					|  |  |  |  | 				uni.switchTab({ | 
			
		
	
		
			
				
					|  |  |  |  | 					url: '/pages/tabbar/home/home' | 
			
		
	
	
		
			
				
					|  |  |  | @ -231,6 +150,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			decryptPhoneNumber(e) { | 
			
		
	
		
			
				
					|  |  |  |  | 				if (!this.checked) { | 
			
		
	
		
			
				
					|  |  |  |  | 					uni.showToast({ | 
			
		
	
		
			
				
					|  |  |  |  | 						title: '请您阅读并同意协议', | 
			
		
	
		
			
				
					|  |  |  |  | 						icon: 'none' | 
			
		
	
		
			
				
					|  |  |  |  | 					}) | 
			
		
	
		
			
				
					|  |  |  |  | 					return | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 				// console.log(e.detail) | 
			
		
	
		
			
				
					|  |  |  |  | 				if (e.detail.errMsg === 'getPhoneNumber:ok') { | 
			
		
	
		
			
				
					|  |  |  |  | 					const data1 = { | 
			
		
	
	
		
			
				
					|  |  |  | @ -306,7 +232,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 		height: 750rpx; | 
			
		
	
		
			
				
					|  |  |  |  | 		background-color: #fff; | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 	.bg-0{ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	.bg-0 { | 
			
		
	
		
			
				
					|  |  |  |  | 		background-color: transparent; | 
			
		
	
		
			
				
					|  |  |  |  | 		color: #555555; | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
	
		
			
				
					|  |  |  | 
 |