diff --git a/src/i18n/en.json b/src/i18n/en.json index bac2e40..4fafba6 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -188,7 +188,8 @@ "c12": "Rejection Information", "c13": "Withdrawal password", "c14": "Please fill in the withdrawal password", - "c15": "Reset withdrawal password" + "c15": "Reset withdrawal password", + "c16": "Please select an area code." }, "exchange": { "search": "Search", diff --git a/src/i18n/tw.json b/src/i18n/tw.json index 4f740a2..e55640c 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -189,7 +189,8 @@ "c12": "駁回信息", "c13": "提款密碼", "c14": "請填写提款密碼", - "c15": "重置提款密碼" + "c15": "重置提款密碼", + "c16": "請選擇區號" }, "exchange": { "search": "蒐索", diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index f6ae54c..cdfc2da 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -36,6 +36,19 @@ +
+
+
+
+ + + +
+ +
+
+
+
@@ -316,6 +329,26 @@ export default { ); return; } + if (this.user.phone=="") { + this.$message( + { + type: "warning", + message: this.$t("common.enterPhone") + "!" + }, + 1000 + ); + return; + } + if (this.user.country_id == "") { + this.$message( + { + type: "warning", + message: this.$t("common.c16") + "!" + }, + 1000 + ); + return; + } // if(this.withdrawal_psw==""){ // this.$message( // { @@ -356,6 +389,8 @@ export default { email: this.user.email, gc_code: this.user.gc_code, gc_key: this.gc_key, + phone: this.user.phone, + country_code: this.user.country_id, token }).then(data => { // console.log(res,1111); @@ -560,6 +595,8 @@ export default { case 1: data.type = `2`; data.account = this.user.email; + data.phone = this.user.phone; + data.country_code = this.user.country_id; break; default: