|
|
@ -23,24 +23,23 @@ |
|
|
|
<view class="gray-text">加载中...</view> |
|
|
|
<view class="gray-text">加载中...</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="margin-lg flex flex-direction text-center"> |
|
|
|
<view class="margin-lg flex flex-direction text-center"> |
|
|
|
<button v-if="checked" @click="decryptPhoneNumber" class="cu-btn round bg-main-oil lg text-lg" |
|
|
|
<button v-if="checked" class="cu-btn round bg-main-oil lg text-lg" open-type="getPhoneNumber" |
|
|
|
open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber"> |
|
|
|
@getphonenumber="decryptPhoneNumber"> |
|
|
|
<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> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<loginBottom ref='loginBottom' :checked='checked' @onCheck="checkAgree" /> |
|
|
|
<loginBottom ref='loginBottom' :checked='checked' @onCheck="checkAgree" /> |
|
|
@ -174,28 +173,36 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
decryptPhoneNumber(e) { |
|
|
|
decryptPhoneNumber(e) { |
|
|
|
if (!this.checked) { |
|
|
|
uni.getSetting({ |
|
|
|
uni.showToast({ |
|
|
|
success: () => { |
|
|
|
title: '请您阅读并同意协议', |
|
|
|
if (e.detail.errMsg === 'getPhoneNumber:ok') { |
|
|
|
icon: 'none' |
|
|
|
const data1 = { |
|
|
|
}) |
|
|
|
...e.detail, |
|
|
|
return |
|
|
|
sessionKey: this.sessionKey, |
|
|
|
} |
|
|
|
unionId: uni.getStorageSync('unionid'), |
|
|
|
if (e.detail.errMsg === 'getPhoneNumber:ok') { |
|
|
|
openId: uni.getStorageSync('openid'), |
|
|
|
const data1 = { |
|
|
|
} |
|
|
|
...e.detail, |
|
|
|
let url1 = 0 == this.TabCur ? 'bindLoginByPhonePersonal' : |
|
|
|
sessionKey: this.sessionKey, |
|
|
|
'bindLoginByPhoneCompany' |
|
|
|
unionId: uni.getStorageSync('unionid'), |
|
|
|
this.bindLoginByPhone(data1, url1) |
|
|
|
openId: uni.getStorageSync('openid'), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
let url1 = 0 == this.TabCur ? 'bindLoginByPhonePersonal' : 'bindLoginByPhoneCompany' |
|
|
|
}) |
|
|
|
this.bindLoginByPhone(data1, url1) |
|
|
|
|
|
|
|
} else { |
|
|
|
// if (!this.checked) { |
|
|
|
uni.showModal({ |
|
|
|
// uni.showToast({ |
|
|
|
title: '用户拒绝手机号的授权', |
|
|
|
// title: '请您阅读并同意协议', |
|
|
|
content: `请输入手机号码登录,如有疑问,请联系客服处理` |
|
|
|
// icon: 'none' |
|
|
|
}) |
|
|
|
// }) |
|
|
|
} |
|
|
|
// return |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// else { |
|
|
|
|
|
|
|
// uni.showModal({ |
|
|
|
|
|
|
|
// title: '用户拒绝手机号的授权', |
|
|
|
|
|
|
|
// content: `请输入手机号码登录,如有疑问,请联系客服处理` |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
bindLoginByPhone(data, url) { |
|
|
|
bindLoginByPhone(data, url) { |
|
|
|
if (this.count < 1) { |
|
|
|
if (this.count < 1) { |
|
|
|