fix: 协议勾选控制+news详情页样式修复+支付页重做
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user