You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
<template>
|
|
<view class="margin flex flex-wrap">
|
|
<view @click="changeIntentions" class="iconfont agree-box" :class="[agree ? 'text-blue icon-check-square': 'text-gray icon-border']"></view>
|
|
<view class="text-df text-black flex-sub agree-text">
|
|
请认真阅读
|
|
<text class="text-blue" @tap="serviceAgreement">《用户服务协议》</text>和
|
|
<text class="text-blue" @tap="privacyAolicy">《隐私政策》</text>,
|
|
勾选代表您已同意此协议
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
agree: false,
|
|
};
|
|
},
|
|
onLoad(op) {},
|
|
methods: {
|
|
changeIntentions(){
|
|
if(!this.agree){
|
|
this.agree = true;
|
|
}else{
|
|
this.agree = false;
|
|
}
|
|
this.$emit('changeIntentions',this.agree)
|
|
},
|
|
|
|
// 服务协议
|
|
serviceAgreement(){
|
|
uni.navigateTo({
|
|
url: '/pages/service-agreement/service-agreement',
|
|
});
|
|
},
|
|
|
|
// 隐私政策
|
|
privacyAolicy(){
|
|
uni.navigateTo({
|
|
url: '/pages/privacy-aolicy/privacy-aolicy',
|
|
});
|
|
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.agree-box {
|
|
width: 70rpx;
|
|
}
|
|
|
|
.agree-text {
|
|
line-height: 60rpx;
|
|
}
|
|
</style>
|
|
|