注册用户-同步宜当生活加上隐私协议
This commit is contained in:
@@ -67,6 +67,18 @@
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<!-- 同步注册宜当生活 -->
|
||||
<view class="agreement-item yidang-item">
|
||||
<view @click="toggleYidang">
|
||||
<uni-icons type="checkbox-filled" size="24" color="#007aff" v-if="agreeYidang"></uni-icons>
|
||||
<uni-icons type="checkbox" size="24" color="#999" v-else></uni-icons>
|
||||
</view>
|
||||
<text class="agreement-text">同步注册日照银行宜当生活并同意
|
||||
<text class="agreePrivacy" @click.stop="goToYidangPrivacy">《日照银行宜当生活隐私政策》</text>
|
||||
<!-- <text class="agreePrivacy" @click.stop="goToYidangWeichengnianPrivacy">《宜当生活未成年人隐私政策》</text> -->
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<!-- 立即注册按钮 -->
|
||||
<button class="register-btn" @click="handleRegister">
|
||||
立即注册
|
||||
@@ -107,6 +119,7 @@
|
||||
const passwordError = ref('');
|
||||
const placeholderStyle = ref('font-size:24rpx')
|
||||
const agreeAgreement = ref(false);
|
||||
const agreeYidang = ref(false);
|
||||
const showPrivacyPopup = ref(false)
|
||||
const pendingAction = ref('')
|
||||
const countDown = ref(0);
|
||||
@@ -152,6 +165,10 @@
|
||||
agreeAgreement.value = !agreeAgreement.value;
|
||||
};
|
||||
|
||||
const toggleYidang = () => {
|
||||
agreeYidang.value = !agreeYidang.value;
|
||||
};
|
||||
|
||||
// 账号失焦校验(禁止颜文字/emoji/特殊符号,只允许中文、字母、数字)
|
||||
const validateAccount = () => {
|
||||
const val = account.value
|
||||
@@ -198,6 +215,15 @@
|
||||
uni.navigateTo({ url: '/pageSubPack/loginSub/privacy' })
|
||||
}
|
||||
|
||||
// 宜当生活未成年人隐私政策与隐私政策同页展示,带 anchor 直接定位到下方那一段
|
||||
const goToYidangWeichengnianPrivacy = () => {
|
||||
uni.navigateTo({ url: '/pageSubPack/loginSub/yidang-privacy?anchor=minor' })
|
||||
}
|
||||
|
||||
const goToYidangPrivacy = () => {
|
||||
uni.navigateTo({ url: '/pageSubPack/loginSub/yidang-privacy' })
|
||||
}
|
||||
|
||||
const checkForm = () => {};
|
||||
|
||||
const openPrivacyPopup = (action) => {
|
||||
@@ -321,7 +347,8 @@
|
||||
smsCode: verifyCode.value,
|
||||
username: account.value,
|
||||
password: password.value,
|
||||
type:false
|
||||
type: agreeYidang.value
|
||||
// type:false
|
||||
}
|
||||
getRegisterUser(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
@@ -500,10 +527,16 @@
|
||||
.agreement-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 70rpx 0 28rpx 0;
|
||||
margin: 70rpx 0 8rpx 0;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
|
||||
/* 同步注册宜当生活勾选项(紧跟在协议下方,缩小上边距) */
|
||||
.yidang-item {
|
||||
margin-top: 0;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.agreement-text {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
|
||||
Reference in New Issue
Block a user