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 @@
-
- ×
-
+
+
+
+
+ {{i18n.regist.navTitle}}
-
-
- C1 fund
-
-
-
- {{i18n.regist.navTitle}}
-
-
- {{i18n.regist.phone}}
-
-
+
+
+
+ {{i18n.regist.phone}}
-
- {{i18n.regist.code}}
-
-
- {{codeText}}
+
+
+ {{i18n.regist.phone}}
+
+
-
- {{i18n.regist.login}}
-
-
+
+
+ {{i18n.regist.mobile}}
+
+
-
- {{i18n.regist.confirm}}
-
-
+
+
+ {{i18n.regist.login}}
+
+
-
- {{i18n.regist.transaction}}
-
-
+
+
+ {{i18n.regist.confirm}}
+
+
-
- {{i18n.regist.invitation}}
-
-
+
+
+ {{i18n.regist.invitation}}
+
+
-
-
+
+
+ {{i18n.regist.code}}
+
+
+ {{codeText}}
+
+
+
+
+
+
+ ✓
+
+ {{i18n.login.tag}}
+ {{i18n.login.tag1}}
+
+
+
+
+
+
+
@@ -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 @@