feat:绑定加二次确认
This commit is contained in:
@@ -49,13 +49,46 @@
|
||||
|
||||
<view
|
||||
class="login_comm_but login_comm_but_yes"
|
||||
@click="registerFun"
|
||||
@click="submit"
|
||||
:loading="butLoading"
|
||||
>
|
||||
登录
|
||||
</view>
|
||||
|
||||
<view class="policy_warp">
|
||||
<up-checkbox
|
||||
name="isCheck"
|
||||
usedAlone
|
||||
v-model:checked="isPolicy"
|
||||
shape="circle"
|
||||
activeColor="#7934F6"
|
||||
size="19"
|
||||
iconSize="18"
|
||||
>
|
||||
<template #label>
|
||||
<text @click="aa">已阅读并同意</text>
|
||||
<text class="policy_a_warp" @click="jumpUserAgreement"
|
||||
>《服务协议》</text
|
||||
>
|
||||
<text>、</text>
|
||||
<text class="policy_a_warp" @click="jumpPrivacyAgreement"
|
||||
>《隐私政策》</text
|
||||
>
|
||||
<text>、</text>
|
||||
<text class="policy_a_warp" @click="jumpProductAgreement"
|
||||
>《售后保障协议》</text
|
||||
>
|
||||
</template>
|
||||
</up-checkbox>
|
||||
</view>
|
||||
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
<u-modal :show="tipsShow" title="提示" showCancelButton @cancel="onCancel" @confirm="onConfirm">
|
||||
<view class="slot-content">
|
||||
我已阅读并同意
|
||||
<text style="color: #007AFF;">用户协议</text>和<text style="color: #007AFF;">隐私政策</text>
|
||||
</view>
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -90,6 +123,9 @@ export default {
|
||||
butLoading: false,
|
||||
disabled: false,
|
||||
type: 1, //1.微信 2.支付宝
|
||||
tipsShow: false,
|
||||
content: '确认绑定手机号吗?',
|
||||
isPolicy: false,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -99,12 +135,42 @@ export default {
|
||||
console.log("-----1", option, this.form.token, this.type);
|
||||
},
|
||||
methods: {
|
||||
submit(){
|
||||
if(!this.isPolicy){
|
||||
this.tipsShow = true;
|
||||
}
|
||||
},
|
||||
onCancel(){
|
||||
this.tipsShow = false;
|
||||
},
|
||||
onConfirm(){
|
||||
this.tipsShow = false;
|
||||
this.isPolicy = true;
|
||||
this.registerFun();
|
||||
},
|
||||
jumpMine() {
|
||||
uni.reLaunch({
|
||||
url: "/pages/login_package/login/login",
|
||||
});
|
||||
},
|
||||
|
||||
// 用户协议
|
||||
jumpUserAgreement() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine_package/mine_user_agreement/mine_user_agreement?backPath=login",
|
||||
});
|
||||
},
|
||||
// 隐私协议
|
||||
jumpPrivacyAgreement() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine_package/mine_privacy_agreement/mine_privacy_agreement?backPath=login",
|
||||
});
|
||||
},
|
||||
// 售后保障协议
|
||||
jumpProductAgreement() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine_package/mine_product_agreement/mine_product_agreement?backPath=login",
|
||||
});
|
||||
},
|
||||
async registerFun() {
|
||||
const form = this.form;
|
||||
if (!form.mobile) {
|
||||
|
||||
Reference in New Issue
Block a user