|
|
@ -27,18 +27,18 @@ |
|
|
|
@getphonenumber="decryptPhoneNumber"> |
|
|
|
@getphonenumber="decryptPhoneNumber"> |
|
|
|
<!-- <text class="cuIcon-weixin padding-right-xs"> </text> --> |
|
|
|
<!-- <text class="cuIcon-weixin padding-right-xs"> </text> --> |
|
|
|
<text> |
|
|
|
<text> |
|
|
|
手机号快捷登录 |
|
|
|
一键登录 |
|
|
|
</text> |
|
|
|
</text> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button v-else class="cu-btn round bg-main-oil lg text-lg" @click="$refs.popup.open('center')"> |
|
|
|
<button v-else class="cu-btn round bg-main-oil lg text-lg" @click="$refs.popup.open('center')"> |
|
|
|
<!-- <text class="cuIcon-weixin padding-right-xs"> </text> --> |
|
|
|
<!-- <text class="cuIcon-weixin padding-right-xs"> </text> --> |
|
|
|
<text> |
|
|
|
<text> |
|
|
|
手机号快捷登录 |
|
|
|
一键登录 |
|
|
|
</text> |
|
|
|
</text> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<!-- <button class="cu-btn margin-top round lg" @tap="refuseEmpower"> |
|
|
|
<button class="cu-btn margin-top round lg" @tap="refuseEmpower"> |
|
|
|
输入手机号码登录 |
|
|
|
输入手机号码登录 |
|
|
|
</button> --> |
|
|
|
</button> |
|
|
|
<button class="cu-btn bg-0 margin-top round text-sm" @tap="refuseLogin"> |
|
|
|
<button class="cu-btn bg-0 margin-top round text-sm" @tap="refuseLogin"> |
|
|
|
跳过 |
|
|
|
跳过 |
|
|
|
</button> |
|
|
|
</button> |
|
|
@ -50,7 +50,10 @@ |
|
|
|
使用协议及隐私保护 |
|
|
|
使用协议及隐私保护 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="protocol_content"> |
|
|
|
<view class="protocol_content"> |
|
|
|
为了更好地保障您的合法权益,请您阅读并同意 <text style=" color: black; font-weight: 600;" @click="$refs.loginBottom.toAgree('baichuanUserAgree')">《用户协议》</text> 与 <text style=" color: black; font-weight: 600;" @click="$refs.loginBottom.toAgree('baichuanPrivacyAgreement')">《隐私政策》</text>。 |
|
|
|
为了更好地保障您的合法权益,请您阅读并同意 <text style=" color: black; font-weight: 600;" |
|
|
|
|
|
|
|
@click="$refs.loginBottom.toAgree('baichuanUserAgree')">《用户协议》</text> 与 <text |
|
|
|
|
|
|
|
style=" color: black; font-weight: 600;" |
|
|
|
|
|
|
|
@click="$refs.loginBottom.toAgree('baichuanPrivacyAgreement')">《隐私政策》</text>。 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="protocol_footer"> |
|
|
|
<view class="protocol_footer"> |
|
|
|
<button @click="$refs.popup.close()" class="protocol_footer_close">取消</button> |
|
|
|
<button @click="$refs.popup.close()" class="protocol_footer_close">取消</button> |
|
|
@ -73,7 +76,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
loginType:false, |
|
|
|
loginType: false, |
|
|
|
// imgsrc:require('../../../BagStation/static/img/login-bg.png'), |
|
|
|
// imgsrc:require('../../../BagStation/static/img/login-bg.png'), |
|
|
|
checked: false, |
|
|
|
checked: false, |
|
|
|
userHandle: false, |
|
|
|
userHandle: false, |
|
|
@ -90,12 +93,12 @@ |
|
|
|
sessionKey: '', |
|
|
|
sessionKey: '', |
|
|
|
nickName: '', |
|
|
|
nickName: '', |
|
|
|
loginOut: uni.getStorageSync('loginOut') ? true : false, |
|
|
|
loginOut: uni.getStorageSync('loginOut') ? true : false, |
|
|
|
scanningParams:null |
|
|
|
scanningParams: null |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
|
onLoad(e) { |
|
|
|
if(e.loginType){ |
|
|
|
if (e.loginType) { |
|
|
|
this.loginType = Boolean(e.loginType); |
|
|
|
this.loginType = Boolean(e.loginType); |
|
|
|
} |
|
|
|
} |
|
|
|
uni.clearStorageSync() |
|
|
|
uni.clearStorageSync() |
|
|
|
// this.refreshLocation() |
|
|
|
// this.refreshLocation() |
|
|
@ -103,10 +106,10 @@ |
|
|
|
provider: 'weixin', |
|
|
|
provider: 'weixin', |
|
|
|
success: (loginRes) => { |
|
|
|
success: (loginRes) => { |
|
|
|
const code = loginRes.code |
|
|
|
const code = loginRes.code |
|
|
|
this.onceCode = code |
|
|
|
this.onceCode = code |
|
|
|
oilIdentityApi.sendCode(this.onceCode).then(res => { |
|
|
|
oilIdentityApi.sendCode(this.onceCode).then(res => { |
|
|
|
if (res.code === 20000) { |
|
|
|
if (res.code === 20000) { |
|
|
|
if(e.scanningParams) { |
|
|
|
if (e.scanningParams) { |
|
|
|
// 用于扫码进入油站详情页面 |
|
|
|
// 用于扫码进入油站详情页面 |
|
|
|
this.scanningParams = e.scanningParams |
|
|
|
this.scanningParams = e.scanningParams |
|
|
|
} |
|
|
|
} |
|
|
@ -143,7 +146,7 @@ |
|
|
|
this.checked = val |
|
|
|
this.checked = val |
|
|
|
}, |
|
|
|
}, |
|
|
|
refuseLogin() { |
|
|
|
refuseLogin() { |
|
|
|
uni.setStorageSync('loginType',false) |
|
|
|
uni.setStorageSync('loginType', false) |
|
|
|
uni.switchTab({ |
|
|
|
uni.switchTab({ |
|
|
|
url: '/pages/tabbar/home/home' |
|
|
|
url: '/pages/tabbar/home/home' |
|
|
|
}) |
|
|
|
}) |
|
|
@ -164,8 +167,7 @@ |
|
|
|
}, url).then(res => { |
|
|
|
}, url).then(res => { |
|
|
|
if (res.code == 20000) { |
|
|
|
if (res.code == 20000) { |
|
|
|
this.loginSuccess(res) |
|
|
|
this.loginSuccess(res) |
|
|
|
}else{ |
|
|
|
} else {} |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
refuseEmpower() { |
|
|
|
refuseEmpower() { |
|
|
@ -204,7 +206,7 @@ |
|
|
|
if (this.count < 1) { |
|
|
|
if (this.count < 1) { |
|
|
|
oilIdentityApi.bindLoginByPhone(data, url).then(res => { |
|
|
|
oilIdentityApi.bindLoginByPhone(data, url).then(res => { |
|
|
|
if (res.code == 20000) { |
|
|
|
if (res.code == 20000) { |
|
|
|
this.loginSuccess(res) |
|
|
|
this.loginSuccess(res) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -231,18 +233,18 @@ |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
// }, 1000); |
|
|
|
// }, 1000); |
|
|
|
if(this.scanningParams) { |
|
|
|
if (this.scanningParams) { |
|
|
|
uni.redirectTo({ |
|
|
|
uni.redirectTo({ |
|
|
|
url: `/BagStation/pages/makeOrder/makeOrder?q=${this.scanningParams}` |
|
|
|
url: `/BagStation/pages/makeOrder/makeOrder?q=${this.scanningParams}` |
|
|
|
}) |
|
|
|
}) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// 这里有问题 |
|
|
|
// 这里有问题 |
|
|
|
uni.switchTab({ |
|
|
|
uni.switchTab({ |
|
|
|
url: '/pages/tabbar/home/home' |
|
|
|
url: '/pages/tabbar/home/home' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
if(!this.loginType){ |
|
|
|
if (!this.loginType) { |
|
|
|
this.refuseLogin() |
|
|
|
this.refuseLogin() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -253,7 +255,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
<style> |
|
|
|
.protocol_footer_close { |
|
|
|
.protocol_footer_close { |
|
|
|
width: 185rpx; |
|
|
|
width: 185rpx; |
|
|
|
border-radius: 94rpx 94rpx 94rpx 94rpx; |
|
|
|
border-radius: 94rpx 94rpx 94rpx 94rpx; |
|
|
|
opacity: 1; |
|
|
|
opacity: 1; |
|
|
|
border: 1px solid #000000; |
|
|
|
border: 1px solid #000000; |
|
|
@ -261,7 +263,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.protocol_footer_confirm { |
|
|
|
.protocol_footer_confirm { |
|
|
|
width: 185rpx; |
|
|
|
width: 185rpx; |
|
|
|
background: #FD0505; |
|
|
|
background: #FD0505; |
|
|
|
border-radius: 56rpx 56rpx 56rpx 56rpx; |
|
|
|
border-radius: 56rpx 56rpx 56rpx 56rpx; |
|
|
|
opacity: 1; |
|
|
|
opacity: 1; |
|
|
@ -271,7 +273,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
.protocol_footer { |
|
|
|
.protocol_footer { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #FFFFFF; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|