diff --git a/frontend/uni-app/src/pages/users/binding_phone/index.vue b/frontend/uni-app/src/pages/users/binding_phone/index.vue
index 116c7d574..3c1ca892e 100644
--- a/frontend/uni-app/src/pages/users/binding_phone/index.vue
+++ b/frontend/uni-app/src/pages/users/binding_phone/index.vue
@@ -41,9 +41,11 @@
-
- {{$t(`已阅读并同意`)}}
+
+
+
+ {{$t(`已阅读并同意`)}}
{{$t(`《用户协议》`)}}
{{$t(`与`)}}{{$t(`《隐私协议》`)}}
@@ -315,7 +317,11 @@ async function code() {
verifyRef.value.show();
return;
}
-function ChangeIsDefault() {
+function ChangeIsDefault(e) {
+ const values = (e && e.detail && e.detail.value) || [];
+ protocol.value = values.length > 0;
+}
+function toggleProtocol() {
protocol.value = !protocol.value;
}
function closeEdit() {
diff --git a/frontend/uni-app/src/pages/users/login/index.vue b/frontend/uni-app/src/pages/users/login/index.vue
index 4e7983dd1..00c6441f9 100644
--- a/frontend/uni-app/src/pages/users/login/index.vue
+++ b/frontend/uni-app/src/pages/users/login/index.vue
@@ -82,12 +82,13 @@
+
-
+
{{ $t(`已阅读并同意`) }}
- {{ $t(`《用户协议》`) }}
+ {{ $t(`《用户协议》`) }}
{{ $t(`与`) }}
- {{ $t(`《隐私协议》`) }}
+ {{ $t(`《隐私协议》`) }}
@@ -181,7 +182,8 @@ onMounted(() => {
// ---------- methods ----------
function ChangeIsDefault(e) {
- protocol.value = !protocol.value;
+ const values = (e && e.detail && e.detail.value) || [];
+ protocol.value = values.length > 0;
}
function privacy(type) {
uni.navigateTo({
diff --git a/frontend/uni-app/src/pages/users/wechat_login/index.vue b/frontend/uni-app/src/pages/users/wechat_login/index.vue
index 8c2441913..ab0c393ce 100644
--- a/frontend/uni-app/src/pages/users/wechat_login/index.vue
+++ b/frontend/uni-app/src/pages/users/wechat_login/index.vue
@@ -59,17 +59,19 @@
-
+
+
- {{ $t(`已阅读并同意`) }}
+ {{ $t(`已阅读并同意`) }}
{{
$t(`《用户协议》`)
}}
@@ -328,6 +330,10 @@ function getAuthLogin() {
});
}
function ChangeIsDefault(e) {
+ const values = (e && e.detail && e.detail.value) || [];
+ protocol.value = values.length > 0;
+}
+function toggleProtocol() {
protocol.value = !protocol.value;
}
function editSuccess() {