feat:财务和合同
This commit is contained in:
@@ -5,6 +5,7 @@ import PasswordStrength from '@/pages/Login/user-register/components/PasswordStr
|
||||
import { getPasswordStrength } from '@/utils/password-strength'
|
||||
import { navigateBackWithFallback } from '@/utils/navigate-back'
|
||||
import { navigateToResultPage } from '@/utils/navigate-result'
|
||||
import { navigateToSecurityPage } from '@/utils/navigate-security-page'
|
||||
import { validatePhone } from '@/utils/sms-code'
|
||||
import CodeInput from './components/CodeInput.vue'
|
||||
import ForgotInput from './components/ForgotInput.vue'
|
||||
@@ -18,7 +19,16 @@ const agreed = ref(false)
|
||||
const submitting = ref(false)
|
||||
|
||||
function toggleAgreed() {
|
||||
agreed.value = !agreed.value
|
||||
uni.showModal({
|
||||
title: '服务协议及隐私保护',
|
||||
content: '为了更好地保障您的合法权益,请您阅读并同意《用户协议》《隐私政策》以及《定制条款》',
|
||||
confirmText: '同意',
|
||||
cancelText: '不同意',
|
||||
confirmColor: '#2563EB',
|
||||
success: (res) => {
|
||||
agreed.value = !!res.confirm
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
@@ -70,9 +80,15 @@ function handleLogin() {
|
||||
}
|
||||
|
||||
function handleUserAgreement() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/Login/user-agreement/index',
|
||||
})
|
||||
navigateToSecurityPage('userAgreement')
|
||||
}
|
||||
|
||||
function handlePrivacyPolicy() {
|
||||
navigateToSecurityPage('privacyPolicy')
|
||||
}
|
||||
|
||||
function handleCustomTerms() {
|
||||
navigateToSecurityPage('customTerms')
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -147,13 +163,19 @@ function handleUserAgreement() {
|
||||
<text class="forgot-page__agreement-normal">
|
||||
和
|
||||
</text>
|
||||
<text class="forgot-page__agreement-link">
|
||||
<text
|
||||
class="forgot-page__agreement-link"
|
||||
@tap.stop="handlePrivacyPolicy"
|
||||
>
|
||||
隐私政策
|
||||
</text>
|
||||
<text class="forgot-page__agreement-normal">
|
||||
以及
|
||||
</text>
|
||||
<text class="forgot-page__agreement-link">
|
||||
<text
|
||||
class="forgot-page__agreement-link"
|
||||
@tap.stop="handleCustomTerms"
|
||||
>
|
||||
定制条款
|
||||
</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user