Commit 1f8fe63e authored by 刘文虎's avatar 刘文虎

增加隐私协议确认

parent 01078be8
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
}, },
"plugins" : { "plugins" : {
"contactPlugin" : { "contactPlugin" : {
"version" : "1.4.4", "version" : "1.4.5",
"provider" : "wx104a1a20c3f81ec2" "provider" : "wx104a1a20c3f81ec2"
} }
} }
......
This diff is collapsed.
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
}, },
onShow() { onShow() {
// 更新是否需要入住 // 更新是否需要入住
if (!this.needSettled) return; if (!this.vuex_token||!this.needSettled) return;
this.$u.api.getSettleBaseInfo().then(res => { this.$u.api.getSettleBaseInfo().then(res => {
this.needSettled = res.data.needSettled; this.needSettled = res.data.needSettled;
}); });
......
...@@ -22,6 +22,15 @@ ...@@ -22,6 +22,15 @@
<view class="button-text">立即绑定</view> <view class="button-text">立即绑定</view>
</u-button> </u-button>
</view> </view>
<view class="quick-title" @click="handleClickAgree">
<view class="icon-view" :class="{ 'icon-agree': agree }"><u-icon name="checkmark-circle-fill" v-if="agree" size="44" color="#2979ff"></u-icon></view>
<view class="agree-text-view">
我已阅读并同意
<text class="name-text" @tap.stop.prevent="toProtocol('protocol')">《用户服务协议》</text>
<text class="name-text" @tap.stop.prevent="toProtocol('policy')">《隐私政策》</text>
</view>
</view>
</view> </view>
</template> </template>
...@@ -31,8 +40,9 @@ ...@@ -31,8 +40,9 @@
export default { export default {
data() { data() {
return { return {
phone: '13423831191', agree:false,
code: '174253', phone: '',
code: '',
timer: null, timer: null,
canGetCode: true, canGetCode: true,
seconds: 60, seconds: 60,
...@@ -70,7 +80,36 @@ ...@@ -70,7 +80,36 @@
} }
}, },
methods: { methods: {
toProtocol(type) {
if(type==='protocol'){
uni.navigateTo({
url: '/pages/mine/about/user-agreement/user-agreement'
});
}else{
uni.navigateTo({
url: '/pages/mine/about/privacy-agreement/privacy-agreement'
});
}
},
handleClickAgree() {
this.agree = !this.agree;
},
checkAgree() {
if (!this.agree) {
uni.showToast({
title: '请阅读并同意《用户服务协议》和《隐私政策》',
icon: 'none',
duration: 2000
});
return false;
}
return true;
},
handleClick() { handleClick() {
if (!this.checkAgree()) {
return;
}
if (this.phone == '') { if (this.phone == '') {
uni.showToast({ uni.showToast({
title: '请输入手机号', title: '请输入手机号',
...@@ -126,6 +165,9 @@ ...@@ -126,6 +165,9 @@
} }
}, },
handleClickSave() { handleClickSave() {
if (!this.checkAgree()) {
return;
}
this.signup(); this.signup();
}, },
signup() { signup() {
...@@ -346,5 +388,53 @@ ...@@ -346,5 +388,53 @@
font-size: 32rpx; font-size: 32rpx;
} }
} }
.quick-title {
z-index: 10;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
left: 0;
bottom: 5%;
text-align: center;
line-height: 28upx;
font-size: 24upx;
color: #8d8d8d;
font-weight: 500;
&-weight {
font-weight: bold;
color: #333333;
}
&-icon {
width: 28upx;
height: 28upx;
border-radius: 50%;
margin-right: 16upx;
border: 2upx solid #333333;
display: inline-block;
}
.icon-view {
width: 36rpx;
height: 36rpx;
font-size: 18rpx;
border-radius: 50%;
border: 2rpx solid #333333;
display: flex;
justify-content: center;
align-items: center;
background-color: #ffffff;
margin-right: 12rpx;
}
.icon-agree {
// background-color: #3383fe;
// color: #ffffff;
border: 0rpx;
}
.name-text {
color: #3383fe;
}
}
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment