diff --git a/pages/login/index.vue b/pages/login/index.vue
index 4ad30d6..027711e 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -30,9 +30,22 @@
+
+
+
+
+
+ 请阅读并同意
+ 《用户服务协议》
+ 和
+ 《隐私政策》
+
+
+
登录即表示同意
- 《隐私协议》
+ 《隐私政策》
+
@@ -46,6 +59,7 @@ const loading = ref(false)
const phone = ref('')
const smsCode = ref('')
const countdown = ref(0)
+const agreed = ref(false)
let timer = null
onUnmounted(() => {
@@ -69,6 +83,9 @@ const loginSuccess = (res) => {
// #ifdef MP-WEIXIN
const handleWxLogin = async () => {
if (loading.value) return
+ if (!agreed.value) {
+ return uni.showToast({ title: '请先阅读并同意相关协议', icon: 'none' })
+ }
loading.value = true
try {
const code = await new Promise((resolve, reject) => {
@@ -139,6 +156,10 @@ const goPrivacy = () => {
uni.navigateTo({ url: '/pages/content/content?key=privacy_policy' })
// #endif
}
+
+const goService = () => {
+ uni.navigateTo({ url: '/pages/content/content?key=service_policy' })
+}