feat:绑定加二次确认
This commit is contained in:
@@ -49,13 +49,46 @@
|
|||||||
|
|
||||||
<view
|
<view
|
||||||
class="login_comm_but login_comm_but_yes"
|
class="login_comm_but login_comm_but_yes"
|
||||||
@click="registerFun"
|
@click="submit"
|
||||||
:loading="butLoading"
|
:loading="butLoading"
|
||||||
>
|
>
|
||||||
登录
|
登录
|
||||||
</view>
|
</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>
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -90,6 +123,9 @@ export default {
|
|||||||
butLoading: false,
|
butLoading: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
type: 1, //1.微信 2.支付宝
|
type: 1, //1.微信 2.支付宝
|
||||||
|
tipsShow: false,
|
||||||
|
content: '确认绑定手机号吗?',
|
||||||
|
isPolicy: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -99,12 +135,42 @@ export default {
|
|||||||
console.log("-----1", option, this.form.token, this.type);
|
console.log("-----1", option, this.form.token, this.type);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
submit(){
|
||||||
|
if(!this.isPolicy){
|
||||||
|
this.tipsShow = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel(){
|
||||||
|
this.tipsShow = false;
|
||||||
|
},
|
||||||
|
onConfirm(){
|
||||||
|
this.tipsShow = false;
|
||||||
|
this.isPolicy = true;
|
||||||
|
this.registerFun();
|
||||||
|
},
|
||||||
jumpMine() {
|
jumpMine() {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/login_package/login/login",
|
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() {
|
async registerFun() {
|
||||||
const form = this.form;
|
const form = this.form;
|
||||||
if (!form.mobile) {
|
if (!form.mobile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user