From c13e6bf1ec2b5b2b6b3f7571fb878599b4d505e6 Mon Sep 17 00:00:00 2001 From: ltlzx <942659938@qq.com> Date: Thu, 30 Jun 2022 16:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/cn.json | 5 +++-- src/i18n/en.json | 5 +++-- src/i18n/tw.json | 5 +++-- src/views/signUp/index.vue | 13 ++++++++++++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/i18n/cn.json b/src/i18n/cn.json index ea5425e..a0d9a93 100644 --- a/src/i18n/cn.json +++ b/src/i18n/cn.json @@ -262,7 +262,8 @@ "securityVerification": "安全性验证", "disagree": "您还没有同意条款", "registrationSuccess": "注册成功,正在跳转登录页面", - "referrer": "推荐人", + "referrer": "邀请码", + "referrer1": "请填写邀请码", "optional": "选填", "password": "密码", "login": "登录", @@ -1036,4 +1037,4 @@ "m3":"订单结束", "m4":"订单取消" } -} \ No newline at end of file +} diff --git a/src/i18n/en.json b/src/i18n/en.json index 078e1a3..b3af64f 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -275,7 +275,8 @@ "phoneCorrect": "Please make sure the mobile phone and area code are correct", "securePhone": "Please make sure your phone signal is stable", "verCode": "Verify Code", - "referrer": "Referrer", + "referrer": "Invitation code", + "referrer1": "Please enter the invitation code", "phoneNum": "Phone Number", "enterPhoneNum": "Enter Phone Number", "referral": "Referral Code ", @@ -1092,4 +1093,4 @@ "m3":"End of order", "m4":"Order cancellation" } -} \ No newline at end of file +} diff --git a/src/i18n/tw.json b/src/i18n/tw.json index 4492937..b5c2710 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -260,7 +260,8 @@ "securityVerification": "安全性驗證", "disagree": "您還沒有同意條款", "registrationSuccess": "注册成功,正在跳轉登入頁面", - "referrer": "推薦人", + "referrer": "邀請碼", + "referrer1": "請填寫邀請碼", "optional": "選填", "password": "密碼", "login": "登入", @@ -1030,4 +1031,4 @@ "m3":"訂單結束", "m4":"訂單取消" } -} \ No newline at end of file +} diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index 7d70dc8..ed79268 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -54,7 +54,7 @@
- +
@@ -263,6 +263,17 @@ export default { ); return; } + if (this.user.parentCode=="") { + // 没有填写推荐人 + this.$message( + { + type: "warning", + message: this.$t("login.referrer1") + "!" + }, + 1000 + ); + return; + } // 滑块安全性验证 // if (this.user.parentCode) {