fix: 协议勾选控制+news详情页样式修复+支付页重做

This commit is contained in:
Yuzhiran Dev
2026-07-12 17:43:32 +08:00
parent 23de8bc86a
commit 5ac33dcd7f
5 changed files with 325 additions and 213 deletions
+8
View File
@@ -133,6 +133,10 @@ const BASE_URL = 'https://wdkj.yuzhiran.com.cn'
/** 发送邮箱验证码 */
async function handleSendCode() {
if (!agreed.value) {
uni.showToast({ title: '请先阅读并同意用户协议和隐私政策', icon: 'none' })
return
}
const email = registerForm.value.email
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
uni.showToast({ title: '请先输入正确的邮箱', icon: 'none' })
@@ -170,6 +174,10 @@ async function handleSendCode() {
}
const wechatLogin = async () => {
if (!loginAgreed.value) {
uni.showToast({ title: '请先阅读并同意用户协议和隐私政策', icon: 'none' })
return
}
try {
const loginRes = await new Promise((resolve, reject) => {
uni.login({ success: resolve, fail: reject })