diff --git a/src/api/member.js b/src/api/member.js index 3c09502..05d3987 100644 --- a/src/api/member.js +++ b/src/api/member.js @@ -153,6 +153,10 @@ class Member { static sendGCode() { return server.get(`/register/Graph_che`); } + // 提币获取邮箱验证码 + static getWdcode(){ + return server.get(`/user/wdcode`); + } } export default Member; diff --git a/src/i18n/de.json b/src/i18n/de.json index ed9ca54..6dac3d4 100644 --- a/src/i18n/de.json +++ b/src/i18n/de.json @@ -263,6 +263,8 @@ "disagree":"Sie haben den Bedingungen noch nicht zugestimmt.", "registrationSuccess":"Erfolgreich registriert, auf Anmeldeseite überspringen", "referrer":"Referenzen", + "c6":"Einladungscode (erforderlich)", + "c7":"Bitte geben Sie den Einladungscode ein", "optional":"Optional", "password":"Passwort", "login":"Melden Sie sich", @@ -1103,6 +1105,7 @@ "ee2": "Handeln Sie jederzeit und überall mit digitalen Vermögenswerten", "ee3": "Unterstützt eine breite Palette von Vermögenswerttypen, wobei alle Währungsinformationen verfügbar sind", "ee4": "Verstehen Sie schnell den Prozess des Handels mit digitalen Vermögenswerten", - "ee5": "Beginnen Sie Ihre Verschlüsselungsreise" + "ee5": "Beginnen Sie Ihre Verschlüsselungsreise", + "ee6": "Grafische Überprüfung" } } diff --git a/src/i18n/en.json b/src/i18n/en.json index 003299a..5da8544 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -279,6 +279,8 @@ "verCode": "Verify Code", "referrer": "Enter your referral code (Required)", "referrer1": "Please fill in by the recommender", + "c6":"Invitation code (required)", + "c7":"Enter your invitation code", "phoneNum": "Phone Number", "enterPhoneNum": "Enter Phone Number", "referral": "Referral Code ", @@ -1188,6 +1190,7 @@ "ee2": "Trade digital assets anytime, anywhere", "ee3": "Supports a wide range of asset types, with all currency information available", "ee4": "Quickly understand the digital asset trading process", - "ee5": "Start your encryption journey" + "ee5": "Start your encryption journey", + "ee6": "Graphical verification" } } diff --git a/src/i18n/fra.json b/src/i18n/fra.json index dcb035a..1abf5fe 100644 --- a/src/i18n/fra.json +++ b/src/i18n/fra.json @@ -263,6 +263,8 @@ "disagree":"Vous n'avez pas accepté les termes", "registrationSuccess":"Inscription réussie, page de connexion de saut", "referrer":"Références", + "c6":"Code d'invitation (obligatoire)", + "c7":"Veuillez remplir le code d'invitation", "optional":"Facultatif", "password":"Mot de passe", "login":"Connexion", @@ -1103,6 +1105,7 @@ "ee2": "Échangez des actifs numériques à tout moment et en tout lieu", "ee3": "Prend en charge un large éventail de types d'actifs, avec toutes les informations sur les devises disponibles", "ee4": "Comprendre rapidement le processus de trading d'actifs numériques", - "ee5": "Commencez votre voyage de chiffrement" + "ee5": "Commencez votre voyage de chiffrement", + "ee6": "Vérification graphique" } } diff --git a/src/i18n/it.json b/src/i18n/it.json index baa8bc7..d8f11de 100644 --- a/src/i18n/it.json +++ b/src/i18n/it.json @@ -263,6 +263,8 @@ "disagree":"Non hai ancora accettato i termini.", "registrationSuccess":"Registrato correttamente, salta alla pagina di login", "referrer":"Riferimenti", + "c6":"Codice invito (richiesto)", + "c7":"Per favore inserisci il codice invito", "optional":"Facoltativo", "password":"password", "login":"Firma in", @@ -1103,6 +1105,7 @@ "ee2": "Scambia risorse digitali sempre e ovunque", "ee3": "Supporta un'ampia gamma di tipi di asset, con tutte le informazioni sulla valuta disponibili", "ee4": "Comprendi rapidamente il processo di trading delle risorse digitali", - "ee5": "Inizia il tuo viaggio nella crittografia" + "ee5": "Inizia il tuo viaggio nella crittografia", + "ee6": "Verifica grafica" } } diff --git a/src/i18n/jp.json b/src/i18n/jp.json index 52bd626..7f255e5 100644 --- a/src/i18n/jp.json +++ b/src/i18n/jp.json @@ -266,6 +266,8 @@ "disagree":"まだ条項に同意していません。", "registrationSuccess":"登録に成功しました。ログインページにジャンプしています。", "referrer":"推薦人", + "c6":"招待コード(必須)", + "c7":"請填寫邀招待コードを入力してください請碼", "password":"パスワード", "country":"区番号", "enter-account":"アカウントを入力してください", @@ -1102,6 +1104,7 @@ "ee2": "いつでもどこでもデジタル資産を取引する", "ee3": "幅広い資産タイプをサポートし、すべての通貨情報を利用可能", "ee4": "デジタル資産の取引プロセスをすぐに理解する", - "ee5": "暗号化への取り組みを始めましょう" + "ee5": "暗号化への取り組みを始めましょう", + "ee6": "グラフィカルな検証" } } diff --git a/src/i18n/kor.json b/src/i18n/kor.json index 631c80a..b7e3fbd 100644 --- a/src/i18n/kor.json +++ b/src/i18n/kor.json @@ -266,6 +266,8 @@ "disagree":"당신 은 아직 약관 에 동의 하지 않 았 습 니 다", "registrationSuccess":"등록 성공, 로그 인 화면 전환 중", "referrer":"추천인", + "c6":"초대코드 (필수)", + "c7":"초대코드를 입력해주세요", "password":"비밀 번호", "country":"지역 번호", "enter-account":"계 정 을 입력 하 세 요", @@ -1102,6 +1104,7 @@ "ee2": "언제 어디서나 디지털 자산을 거래하세요", "ee3": "모든 통화 정보를 사용할 수 있는 다양한 자산 유형을 지원합니다.", "ee4": "디지털 자산 거래 프로세스를 빠르게 이해하세요", - "ee5": "암호화 여정을 시작하세요" + "ee5": "암호화 여정을 시작하세요", + "ee6": "그래픽 검증" } } \ No newline at end of file diff --git a/src/i18n/pt.json b/src/i18n/pt.json index da0bf03..75d3512 100644 --- a/src/i18n/pt.json +++ b/src/i18n/pt.json @@ -263,6 +263,8 @@ "disagree":"Você ainda não concordou com os termos", "registrationSuccess":"O registo foi bem sucedido e está a saltar para a página de destino", "referrer":"referências", + "c6":"Código de convite (obrigatório)", + "c7":"Por favor preencha o código do convite", "optional":"facultativo", "password":"senha", "login":"autenticação", @@ -1103,6 +1105,7 @@ "ee2": "Negocie ativos digitais a qualquer hora, em qualquer lugar", "ee3": "Suporta uma ampla variedade de tipos de ativos, com todas as informações monetárias disponíveis", "ee4": "Entenda rapidamente o processo de negociação de ativos digitais", - "ee5": "Comece sua jornada de criptografia" + "ee5": "Comece sua jornada de criptografia", + "ee6": "Verificação gráfica" } } diff --git a/src/i18n/spa.json b/src/i18n/spa.json index 7ce0ee9..c62a4f8 100644 --- a/src/i18n/spa.json +++ b/src/i18n/spa.json @@ -263,6 +263,8 @@ "disagree":"Aún no ha aceptado los términos", "registrationSuccess":"Registro exitoso, saltando a la página de inicio de sesión", "referrer":"Recomendador", + "c6":"Código de invitación (obligatorio)", + "c7":"Por favor complete el código de invitación", "optional":"Opcional", "password":"Contraseña", "login":"Iniciar sesión", @@ -1103,6 +1105,7 @@ "ee2": "Opere con activos digitales en cualquier momento y lugar", "ee3": "Admite una amplia gama de tipos de activos, con toda la información monetaria disponible", "ee4": "Comprenda rápidamente el proceso de negociación de activos digitales", - "ee5": "Comience su viaje de cifrado" + "ee5": "Comience su viaje de cifrado", + "ee6": "Verificación gráfica" } } diff --git a/src/i18n/tr.json b/src/i18n/tr.json index d8216e7..07cf565 100644 --- a/src/i18n/tr.json +++ b/src/i18n/tr.json @@ -263,6 +263,8 @@ "disagree":"Şartları kabul etmedin", "registrationSuccess":"Başarılı kayıt", "referrer":"yönlendiren", + "c6":"Davetiye kodu (gerekli)", + "c7":"Lütfen davetiye kodunu giriniz", "optional":"İsteğe bağlı", "password":"parola", "login":"oturum aç", @@ -1103,6 +1105,7 @@ "ee2": "Dijital varlıklarla istediğiniz zaman, istediğiniz yerde ticaret yapın", "ee3": "Tüm para birimi bilgilerinin mevcut olduğu çok çeşitli varlık türlerini destekler", "ee4": "Dijital varlık alım satım sürecini hızla anlayın", - "ee5": "Şifreleme yolculuğunuza başlayın" + "ee5": "Şifreleme yolculuğunuza başlayın", + "ee6": "Grafiksel doğrulama" } } diff --git a/src/i18n/tw.json b/src/i18n/tw.json index e45cbb5..f7309d8 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -264,6 +264,8 @@ "registrationSuccess": "注册成功,正在跳轉登入頁面", "referrer": "推薦人", "referrer1": "請填寫推薦人", + "c6":"邀請碼(必填)", + "c7":"請填寫邀請碼", "optional": "選填", "password": "密碼", "login": "登入", @@ -1112,6 +1114,7 @@ "ee2": "隨時隨地交易數字資產", "ee3": "支持豐富的資產種類,幣種信息一應俱全", "ee4": "快速瞭解數字資產交易流程", - "ee5": "開啓加密之旅" + "ee5": "開啓加密之旅", + "ee6": "圖形驗證" } } diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index f984601..ef49431 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -55,12 +55,12 @@
- +
- +
@@ -283,11 +283,11 @@ export default { return; } if (this.user.parentCode=="") { - // 没有填写推荐人 + // 没有填写推荐人/邀请码 this.$message( { type: "warning", - message: this.$t("login.referrer1") + "!" + message: this.$t("login.c7") + "!" }, 1000 ); @@ -380,6 +380,11 @@ export default { this.gc_key = res.key this.Graph_che = res.img console.log("gc",res) + this.$message({ + message: `${type} ${this.$t("login.sendOK")}`, + type: "success", + duration : 2000, + }); }).catch( err =>{ console.log(err) }); diff --git a/src/views/wallet/exchange-assets.vue b/src/views/wallet/exchange-assets.vue index aa0fc90..12f463b 100644 --- a/src/views/wallet/exchange-assets.vue +++ b/src/views/wallet/exchange-assets.vue @@ -369,6 +369,18 @@ +
+ +
+ +
+
@@ -399,6 +411,7 @@ import InnerTransfer from "../components/inner-transfer.vue"; import Wallet from "@/api/wallet"; import Profile from "@/api/profile"; +import Member from "@/api/member"; import ClipboardJS from "clipboard"; import getCode from "./getCode"; import vueQr from "vue-qr"; @@ -447,7 +460,8 @@ export default { password: "", addressType: 2, // 默认提币类型 1 为 omni; 2 为 erc20, code_type: 1, - code: '' + code: '', + emailcode: '' }, withdrawFee: { @@ -466,7 +480,10 @@ export default { number:"", amount:"", images:"" - } + }, + getEmailCodeLock: false, + JStime: 0, + tiemr: null, }; }, @@ -487,6 +504,12 @@ export default { } } }, + computed : { + daojishi(){ + + return '('+this.JStime + 's' + ')'; + } + }, methods: { //确认提交贝宝支付 paypalSbumit(){ @@ -675,6 +698,28 @@ export default { // 滚动到页面指定位置 PageScrollTo(num){ document.documentElement.scrollTop = num; + }, + // 獲取邮箱验证码 + getEmailCode(){ + if(this.getEmailCodeLock){return}; + this.JStime = 300; + this.tiemr = setInterval(()=>{ + if(this.JStime===0){ + this.getEmailCodeLock = false; + clearInterval(this.tiemr); + return; + } + this.JStime--; + }, 1000) + this.getEmailCodeLock = true; + Member.getWdcode().then(res => { + // console.log(res, 11111) + this.$message({ + message: `${type} ${this.$t("login.sendOK")}`, + type: "success", + duration : 2000, + }); + }); } }, @@ -795,4 +840,10 @@ created() { .label{ font-size: 16px; } + + .getCodeAA{ + border: 1px solid #444; + padding: 5px 10px; + border-radius: 30px; + }