From e31adaaba8e16ae247c113c3937610a6c9fd2f9f Mon Sep 17 00:00:00 2001 From: li Date: Mon, 30 Mar 2026 15:24:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B3=A8=E5=86=8C=E9=A1=B5=E6=94=B9?= =?UTF-8?q?=E7=89=88=20-=20=E5=8C=B9=E9=85=8D=E7=9B=AE=E6=A0=87=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除C1 fund Logo顶部品牌区 - 新增Mailbox tab标签 - 新增Mobile手机号输入框 - 移除Trading Password(交易密码)字段 - 新增用户协议勾选框(必须勾选才能注册) - 新增Already have an account? Login底部链接 - 按钮文字改为Register - 输入框背景改为浅蓝#F0F4FA - 保留代理专属注册链接(?code=自动填入) --- pages/login/register.vue | 250 ++++++++++++++++++++++----------------- 1 file changed, 144 insertions(+), 106 deletions(-) diff --git a/pages/login/register.vue b/pages/login/register.vue index 5fa503f..58ba065 100644 --- a/pages/login/register.vue +++ b/pages/login/register.vue @@ -1,61 +1,83 @@ @@ -65,15 +87,15 @@ data() { return { email: '', + mobile: '', password: '', password2: '', code: '', referral_code: '', - pay_pwd: '', flag: true, time: '获取验证码', timeFlag: true, - + agreed: false, theme: '', } }, @@ -104,9 +126,7 @@ }, methods: { onClose() { - uni.navigateBack({ - delta: 1 - }) + uni.navigateBack({ delta: 1 }) }, register() { if (!this.flag) return @@ -114,7 +134,6 @@ this.tos(this.i18n.regist.phoneTag) return } - if (this.code == '') { this.tos(this.i18n.regist.codeTag) return @@ -131,8 +150,8 @@ this.tos(this.i18n.regist.tos1) return } - if (this.pay_pwd == '') { - this.tos(this.i18n.regist.transactionTag) + if (!this.agreed) { + this.tos(this.i18n.login.tos1) return } uni.showLoading({ @@ -145,9 +164,10 @@ password: this.password, code: this.code, referral_code: this.referral_code, - pay_pwd: this.pay_pwd, } - // console.log(obj) + if (this.mobile) { + obj.mobile = this.mobile + } this.post('/user/register', obj).then(res => { console.log(res) uni.hideLoading() @@ -201,106 +221,124 @@