<template>
|
|
<view>
|
|
<uv-modal ref="modal" :showConfirmButton="false">
|
|
<view class="modal__view">
|
|
<view class="header">
|
|
<image class="icon" src="../static/auth/caution.png" mode=""></image>
|
|
<view>
|
|
服务协议和隐私权政策
|
|
</view>
|
|
</view>
|
|
<view class="content">
|
|
<!-- todo: 替换成接口获取 -->
|
|
请您务必审慎阅读、充分理解用户协议和隐私政策各条款,包括但不限于用户注意事项、用户行为规范以及为了向你提供服务而收集、使用、存储你个人信息的情况等。你可阅读
|
|
<text class="highlight" @click="$refs.popup.open('getUserAgreement')">《裂变星小程序用户服务协议》</text>
|
|
和
|
|
<text class="highlight" @click="$refs.popup.open('getPrivacyPolicy')">《裂变星小程序平台隐私权政策》</text>
|
|
了解详细信息。如你同意,请点击下方按钮开始接受我们的服务。
|
|
</view>
|
|
<view class="footer flex">
|
|
<button class="btn" @click="onConfirm(false)">不同意</button>
|
|
<button class="btn btn-confirm" @click="onConfirm(true)">同意</button>
|
|
</view>
|
|
</view>
|
|
</uv-modal>
|
|
|
|
<configPopup ref="popup"></configPopup>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'agreementModal',
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.$refs.modal.open()
|
|
},
|
|
onConfirm(confirm) {
|
|
this.$emit('confirm', confirm)
|
|
this.$refs.modal.close()
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.modal__view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12rpx 0 0 0;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
font-size: 32rpx;
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
font-weight: 400;
|
|
color: #000000;
|
|
.icon {
|
|
width: 90rpx;
|
|
height: 90rpx;
|
|
margin-bottom: 26rpx;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
margin-top: 30rpx;
|
|
font-size: 30rpx;
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
color: #A2A2A2;
|
|
|
|
.highlight {
|
|
color: #474747;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 60rpx;
|
|
text-align: center;
|
|
justify-content: space-between;
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 10rpx;
|
|
width: 258rpx;
|
|
height: 92rpx;
|
|
font-size: 36rpx;
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
font-weight: 400;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: #F2F2F2;
|
|
color: #C3C3C3;
|
|
&-confirm {
|
|
background: #07C160;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
}
|
|
</style>
|