From 4a928143027d6d5baa585d082102f599cb9546ec Mon Sep 17 00:00:00 2001 From: luyisha Date: Thu, 25 May 2023 19:52:17 +0800 Subject: [PATCH] 1 --- api/serve/index.js | 1 + i18n/index.js | 2 +- i18n/lang/de.json | 2 ++ i18n/lang/fra.json | 2 ++ i18n/lang/it.json | 2 ++ i18n/lang/jp.json | 2 ++ i18n/lang/kor.json | 2 ++ i18n/lang/pt.json | 2 ++ i18n/lang/spa.json | 2 ++ i18n/lang/tr.json | 2 ++ pages/auth/primary.vue | 14 +++++++++----- store/index.js | 9 +++++---- 12 files changed, 32 insertions(+), 10 deletions(-) diff --git a/api/serve/index.js b/api/serve/index.js index f80bfe2..c2783f4 100644 --- a/api/serve/index.js +++ b/api/serve/index.js @@ -86,6 +86,7 @@ x.fn = x.prototype = { if(Cache.get(newMsg).data){ if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance' && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum' + && newMsg!='_user_primaryAuth' && newMsg!='_indexList'&& newMsg!='_user_subscribe'&& newMsg!='_contract_getSymbolDetail' && newMsg!='_user_withdrawalRecord'){ resolve(Cache.get(newMsg).data); diff --git a/i18n/index.js b/i18n/index.js index 5ed6920..9074095 100644 --- a/i18n/index.js +++ b/i18n/index.js @@ -20,7 +20,7 @@ requireComponent.keys().forEach(fileName => { // 语言注入 let i18n = new VueI18n({ locale: uni.getStorageSync('language')||'en', - locale:'en', + // locale:'en',// 这个会导致每次刷新页面都是英文 messages: messages }) export default i18n; diff --git a/i18n/lang/de.json b/i18n/lang/de.json index 2b687b6..c0635df 100644 --- a/i18n/lang/de.json +++ b/i18n/lang/de.json @@ -218,6 +218,8 @@ "c2": "Bitte laden Sie das Foto auf der Rückseite des Zertifikats hoch", "c3": "Bitte laden Sie das Foto Ihrer Personalausweise hoch", "c4": "Upload erfolgreich, bitte warten Sie auf das Audit", + "c6": "Art des Zertifikats", + "d5": "bitte auswählen", "e0": "Nicht realisierte Authentifizierung", "e1": "Authentifiziert durch echten Namen", "e2": "Advanced Certified" diff --git a/i18n/lang/fra.json b/i18n/lang/fra.json index 2f0524f..0f3a0f8 100644 --- a/i18n/lang/fra.json +++ b/i18n/lang/fra.json @@ -218,6 +218,8 @@ "c2": "Veuillez télécharger la photo de retour du certificat", "c3": "Veuillez télécharger la photo de face du certificat", "c4": "Téléchargement réussi, veuillez attendre l'approbation", + "c6": "type de certificat", + "d5": "Choisissez s'il vous plaît", "e0": "Certifié sans nom réel", "e1": "Certifié par nom réel", "e2": "Déjà certifié avancé" diff --git a/i18n/lang/it.json b/i18n/lang/it.json index d8db641..f68e8f7 100644 --- a/i18n/lang/it.json +++ b/i18n/lang/it.json @@ -218,6 +218,8 @@ "c2": "Si prega di caricare la foto sul retro del certificato", "c3": "Si prega di caricare la foto anteriore della carta d'identità", "c4": "Upload di successo, si prega di attendere il audit", + "c6": "tipo di certificato", + "d5": "si prega di scegliere", "e0": "Autenticazione non realizzata", "e1": "Autenticato con nome reale", "e2": "Certificato avanzato" diff --git a/i18n/lang/jp.json b/i18n/lang/jp.json index 913ad99..914e553 100644 --- a/i18n/lang/jp.json +++ b/i18n/lang/jp.json @@ -218,6 +218,8 @@ "c2": "証明書の裏写真をアップロードしてください。", "c3": "証明書の正面写真をアップロードしてください。", "c4": "アップロードが成功しました。審査を待ってください。", + "c6": "証明書の種類", + "d5": "選んでください", "e0": "実名認証なし", "e1": "実名認証済み", "e2": "高度な資格認定" diff --git a/i18n/lang/kor.json b/i18n/lang/kor.json index 16b2019..c35a701 100644 --- a/i18n/lang/kor.json +++ b/i18n/lang/kor.json @@ -218,6 +218,8 @@ "c2":"증명서 뒷면 사진 을 올 려 주세요.", "c3":"증명 서 를 정면 사진 으로 올 려 주세요.", "c4":"업로드 성공, 심사 대기", + "c6": "인증서 유형", + "d5": "선택하십시오", "e0": "실명인증 없음", "e1": "실명 인증", "e2": "고급 인증" diff --git a/i18n/lang/pt.json b/i18n/lang/pt.json index 15a1895..ef30420 100644 --- a/i18n/lang/pt.json +++ b/i18n/lang/pt.json @@ -218,6 +218,8 @@ "c2":"Por favor, envie a foto Na parte de trás do certificado", "c3":"Por favor, envie a foto Da Frente do SEU cartão de identificação", "c4":"Carregar com sucesso, por favor aguarde a auditoria", + "c6": "tipo de certificado", + "d5": "por favor escolha", "e0": "Autenticação não realizada", "e1": "Autenticado pelo nome verdadeiro", "e2": "Certificado Avançado" diff --git a/i18n/lang/spa.json b/i18n/lang/spa.json index 92f499c..2c345ad 100644 --- a/i18n/lang/spa.json +++ b/i18n/lang/spa.json @@ -218,6 +218,8 @@ "c2":"Por favor, suba la foto de atrás del documento.", "c3":"Por favor, suba la foto frontal del documento.", "c4":"Carga exitosa, por favor espere a ser auditada", + "c6": "tipo de certificado", + "d5": "por favor elige", "e0": "Autenticación sin nombre real", "e1": "Autenticación de nombre real", "e2": "Certificado avanzado" diff --git a/i18n/lang/tr.json b/i18n/lang/tr.json index 771fc38..010de51 100644 --- a/i18n/lang/tr.json +++ b/i18n/lang/tr.json @@ -218,6 +218,8 @@ "c2": "Lütfen kimliğinizin arka yüzünün bir fotoğrafını yükleyin", "c3": "Lütfen kimliğinizin ön fotoğrafını yükleyin", "c4": "Başarıyla yüklendi, lütfen inceleme için bekleyin", + "c6": "sertifika türü", + "d5": "lütfen seç", "e0": "Anlamamış doğrulama", "e1": "Gerçek isimle doğrulandı", "e2": "Gelişmiş Kullanılmış" diff --git a/pages/auth/primary.vue b/pages/auth/primary.vue index 4871731..7e1b1e5 100644 --- a/pages/auth/primary.vue +++ b/pages/auth/primary.vue @@ -165,11 +165,15 @@ export default { primaryAuth() { let data = this.form; data.country_code = this.activeCountry.country_code; - Profile.primaryAuth(data,{btn:this.$refs.btn}).then(() => { - this.$toast.success(this.$t('auth.b4')); - setTimeout(()=>{ - this.$back(); - }, 1500) + Profile.primaryAuth(data,{btn:this.$refs.btn}).then((res) => { + console.log(res, '-----'); + if(res.code==200){ + this.$toast.success(this.$t('auth.b4')); + setTimeout(()=>{ + this.$back(); + }, 1500) + } + }).catch(()=>{}); }, changeID(e){ diff --git a/store/index.js b/store/index.js index 748665b..ad5bf01 100644 --- a/store/index.js +++ b/store/index.js @@ -111,10 +111,11 @@ let store = new Vuex.Store({ label: 'Italiano', url: require("../assets/img/flag/it.png") }, - // { - // value: 'jp', - // label: '日本語' - // }, + { + value: 'jp', + label: '日本語', + url: require("../assets/img/flag/jp.jpg") + }, { value: 'pt', label: 'Português',