Browse Source

增加提币验证码

master
luyisha 2 years ago
parent
commit
d9ca01ba8e
  1. 2
      api/serve/index.js
  2. 3
      i18n/lang/de.json
  3. 3
      i18n/lang/en.json
  4. 3
      i18n/lang/fra.json
  5. 3
      i18n/lang/it.json
  6. 3
      i18n/lang/jp.json
  7. 3
      i18n/lang/kor.json
  8. 3
      i18n/lang/pt.json
  9. 3
      i18n/lang/spa.json
  10. 3
      i18n/lang/tr.json
  11. 3
      i18n/lang/zh-TW.json
  12. 3
      layout/vCode.vue
  13. 62
      pages/assets/draw.vue
  14. 3
      store/index.js

2
api/serve/index.js

@ -89,7 +89,7 @@ x.fn = x.prototype = {
&& newMsg!='_user_primaryAuth' && newMsg!='_user_subscribeTokenList' && newMsg!='_article_detail' && newMsg!='_articleList' && newMsg!='_user_primaryAuth' && newMsg!='_user_subscribeTokenList' && newMsg!='_article_detail' && newMsg!='_articleList'
&& newMsg!='_user_subscribeRecords' && newMsg!='_user_subscribeNow' && newMsg!='_exchange_getMarketInfo' && newMsg!='_user_subscribeRecords' && newMsg!='_user_subscribeNow' && newMsg!='_exchange_getMarketInfo'
&& newMsg!='_indexList'&& newMsg!='_user_subscribe'&& newMsg!='_contract_getSymbolDetail' && newMsg!='_user_withdrawalRecord'){ && newMsg!='_indexList'&& newMsg!='_user_subscribe'&& newMsg!='_contract_getSymbolDetail' && newMsg!='_user_withdrawalRecord'){
resolve(Cache.get(newMsg).data); // resolve(Cache.get(newMsg).data);//获取缓存
} }
uni.request({ uni.request({

3
i18n/lang/de.json

@ -67,7 +67,8 @@
"c4": "Geschätzte Spanne", "c4": "Geschätzte Spanne",
"c7": "Der aktuelle wert", "c7": "Der aktuelle wert",
"c6": "Oranı artır", "c6": "Oranı artır",
"c5": "Ihre Überweisungsaufgabe wurde erfolgreich eingereicht, warten Sie bitte geduldig, und das Übertragungsergebnis wird per SMS oder E-Mail benachrichtigt. Bitte überprüfen Sie es sorgfältig. Bei Fragen wenden Sie sich bitte rechtzeitig an den Kundenservice." "c5": "Ihre Überweisungsaufgabe wurde erfolgreich eingereicht, warten Sie bitte geduldig, und das Übertragungsergebnis wird per SMS oder E-Mail benachrichtigt. Bitte überprüfen Sie es sorgfältig. Bei Fragen wenden Sie sich bitte rechtzeitig an den Kundenservice.",
"GraphicValidation": "Grafische Überprüfung"
}, },
"base": { "base": {
"a0": "Titel", "a0": "Titel",

3
i18n/lang/en.json

@ -108,7 +108,8 @@
"c4": "Size", "c4": "Size",
"c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.", "c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.",
"c6": "Increase ratio", "c6": "Increase ratio",
"c7": "Current valuation" "c7": "Current valuation",
"GraphicValidation": "Graphical verification"
}, },
"base": { "base": {
"a0": "Title", "a0": "Title",

3
i18n/lang/fra.json

@ -67,7 +67,8 @@
"c4": "Marge estimée", "c4": "Marge estimée",
"c7": "La valorisation actuelle", "c7": "La valorisation actuelle",
"c6": "Augmenter le rapport", "c6": "Augmenter le rapport",
"c5": "votre commande de transfert a été soumise avec succès. Veuillez patienter. Les résultats du transfert seront notifiés par SMS ou e - mail. Veuillez vérifier et contacter le service à la clientèle en cas de doute." "c5": "votre commande de transfert a été soumise avec succès. Veuillez patienter. Les résultats du transfert seront notifiés par SMS ou e - mail. Veuillez vérifier et contacter le service à la clientèle en cas de doute.",
"GraphicValidation": "Vérification graphique"
}, },
"base": { "base": {
"a0": "Titre", "a0": "Titre",

3
i18n/lang/it.json

@ -67,7 +67,8 @@
"c4": "Margine stimato", "c4": "Margine stimato",
"c7": "Valutazione attuale", "c7": "Valutazione attuale",
"c6": "Aumenta il rapporto", "c6": "Aumenta il rapporto",
"c5": "l'ordine di trasferimento è stato presentato con successo, si prega di attendere pazientemente, e il risultato di trasferimento sarà notificato via SMS o e-mail. Si prega di controllare attentamente. Se avete domande, si prega di contattare il servizio clienti in tempo." "c5": "l'ordine di trasferimento è stato presentato con successo, si prega di attendere pazientemente, e il risultato di trasferimento sarà notificato via SMS o e-mail. Si prega di controllare attentamente. Se avete domande, si prega di contattare il servizio clienti in tempo.",
"GraphicValidation": "Verifica grafica"
}, },
"base": { "base": {
"a0": "titolo", "a0": "titolo",

3
i18n/lang/jp.json

@ -67,7 +67,8 @@
"c4": "仮勘定保証金", "c4": "仮勘定保証金",
"c6": "増加率", "c6": "増加率",
"c7": "現在の評価値", "c7": "現在の評価値",
"c5": "あなたの振替注文書はすでに提出されました。待ってください。振り替え結果はメールやメールで通知されます。ご確認ください。問題があれば、すぐにカスタマーサービスに連絡してください。" "c5": "あなたの振替注文書はすでに提出されました。待ってください。振り替え結果はメールやメールで通知されます。ご確認ください。問題があれば、すぐにカスタマーサービスに連絡してください。",
"GraphicValidation": "グラフィカルな検証"
}, },
"base": { "base": {
"a0": "タイトル", "a0": "タイトル",

3
i18n/lang/kor.json

@ -67,7 +67,8 @@
"c4":"보증금 예상", "c4":"보증금 예상",
"c6":"증가 비율", "c6":"증가 비율",
"c7":"현재가치평가", "c7":"현재가치평가",
"c5": "당신 의 이월 주문 서 는 이미 제출 되 었 습 니 다. 인내심 을 가지 고 기 다 려 주 십시오. 이월 결 과 는 문자 나 우편 으로 통지 할 것 입 니 다. 수령 에 주의 하 십시오. 궁금 한 점 이 있 으 면 즉시 고객 센터 에 연락 하 십시오." "c5": "당신 의 이월 주문 서 는 이미 제출 되 었 습 니 다. 인내심 을 가지 고 기 다 려 주 십시오. 이월 결 과 는 문자 나 우편 으로 통지 할 것 입 니 다. 수령 에 주의 하 십시오. 궁금 한 점 이 있 으 면 즉시 고객 센터 에 연락 하 십시오.",
"GraphicValidation": "그래픽 검증"
}, },
"base": { "base": {
"a0":"표제.", "a0":"표제.",

3
i18n/lang/pt.json

@ -67,7 +67,8 @@
"c4":"Margem estimada", "c4":"Margem estimada",
"c6":"Aumentar proporção", "c6":"Aumentar proporção",
"c7":"A avaliação atual", "c7":"A avaliação atual",
"c5": "Sua ordem de transfer ência FOI enviada com sucesso, por favor aguarde pacientemente, e o Resultado Da transferência será notificado por SMS ou e-mail. Por favor, verifique-o com cuidado. Se você tiver quaisquer perguntas, por favor contacte o serviço de cliente a tempo." "c5": "Sua ordem de transfer ência FOI enviada com sucesso, por favor aguarde pacientemente, e o Resultado Da transferência será notificado por SMS ou e-mail. Por favor, verifique-o com cuidado. Se você tiver quaisquer perguntas, por favor contacte o serviço de cliente a tempo.",
"GraphicValidation": "Verificação gráfica"
}, },
"base": { "base": {
"a0":"Título", "a0":"Título",

3
i18n/lang/spa.json

@ -67,7 +67,8 @@
"c4":"margen estimado", "c4":"margen estimado",
"c6":"Relación de aumento", "c6":"Relación de aumento",
"c7":"La valoración actual", "c7":"La valoración actual",
"c5": "su orden de transferencia ha sido enviada con éxito, por favor espere pacientemente, los resultados de la transferencia serán notificados por SMS o correo electrónico. Por favor, preste atención a la recepción, si tiene alguna pregunta por favor póngase en contacto con el servicio al cliente a tiempo." "c5": "su orden de transferencia ha sido enviada con éxito, por favor espere pacientemente, los resultados de la transferencia serán notificados por SMS o correo electrónico. Por favor, preste atención a la recepción, si tiene alguna pregunta por favor póngase en contacto con el servicio al cliente a tiempo.",
"GraphicValidation": "Verificación gráfica"
}, },
"base": { "base": {
"a0":"Título", "a0":"Título",

3
i18n/lang/tr.json

@ -67,7 +67,8 @@
"c4": "tahmin edilen margin", "c4": "tahmin edilen margin",
"c6": "Oranı artır", "c6": "Oranı artır",
"c7": "Mevcut değerleme", "c7": "Mevcut değerleme",
"c5": "Taşıma emriniz başarıyla teslim edildi, lütfen sabırlı bekleyin ve aktarım sonuçları SMS veya e-posta tarafından bildirilecek. Lütfen dikkatli kontrol edin. Bir sorununuz varsa, lütfen müşteri hizmetine zamanında temas edin." "c5": "Taşıma emriniz başarıyla teslim edildi, lütfen sabırlı bekleyin ve aktarım sonuçları SMS veya e-posta tarafından bildirilecek. Lütfen dikkatli kontrol edin. Bir sorununuz varsa, lütfen müşteri hizmetine zamanında temas edin.",
"GraphicValidation": "Grafiksel doğrulama"
}, },
"base": { "base": {
"a0": "Başlık", "a0": "Başlık",

3
i18n/lang/zh-TW.json

@ -108,7 +108,8 @@
"c4": "數量", "c4": "數量",
"c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服", "c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服",
"c6": "漲幅比例", "c6": "漲幅比例",
"c7": "當前估值" "c7": "當前估值",
"GraphicValidation": "圖形驗證"
}, },
"base": { "base": {
"a0": "標題", "a0": "標題",

3
layout/vCode.vue

@ -45,9 +45,6 @@ export default {
type: String, type: String,
require: false, require: false,
}, },
},
watch: {
}, },
components:{ components:{
vButton vButton

62
pages/assets/draw.vue

@ -126,6 +126,19 @@
</v-input> </v-input>
</view> </view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("safe.a5") }}</span>
</view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-sm p-x-ms">
<v-input type="text" v-model="form.emailcode" class=" w-8/12 color-light fn-13"
:placeholder="$t('safe.a6')"></v-input>
<view class="d-flex align-end">
<view class="all color-theme-1 m-l-md flex-shrink" @click="getEmailCode">
<text v-if="!getEmailCodeLock">{{ $t("common.getCode") }}</text>
<text v-else>{{ daojishi }}</text>
</view>
</view>
</view>
</view> </view>
<view class="form bg-panel-3 p-x-lg p-y-md"> <view class="form bg-panel-3 p-x-lg p-y-md">
<ul class="fn-md rounded-md m-y-xs line-height-2"> <ul class="fn-md rounded-md m-y-xs line-height-2">
@ -221,6 +234,7 @@
<script> <script>
import coinList from "./coin-list"; import coinList from "./coin-list";
import Wallet from "@/api/wallet"; import Wallet from "@/api/wallet";
import Member from "@/api/member";
import formData from "@/utils/class/date"; import formData from "@/utils/class/date";
export default { export default {
@ -240,14 +254,17 @@ export default {
addressType: "", addressType: "",
code_type: 1, code_type: 1,
code: '', code: '',
password: '' emailcode: '',
}, },
withdrawFee: {}, withdrawFee: {},
list: [], list: [],
page: 1, page: 1,
loadMore: true, loadMore: true,
secondaryShow: false, secondaryShow: false,
type: 'draw' type: 'draw',
getEmailCodeLock: false,
JStime: 0,
tiemr: null,
}; };
}, },
computed: { computed: {
@ -257,6 +274,9 @@ export default {
(item) => item.coin_name == this.coin (item) => item.coin_name == this.coin
); );
}, },
daojishi(){
return '('+this.JStime + 's' + ')';
}
}, },
watch: { watch: {
coin(n) { coin(n) {
@ -306,6 +326,40 @@ export default {
this.withdrawFee = res.data; this.withdrawFee = res.data;
}); });
}, },
//
getEmailCode(){
if (!this.form.address) {
this.$toast(this.$t('assets.b9'))
return
}
if (!this.form.amount) {
this.$toast(this.$t('assets.c2'))
return
}
if (!this.form.password) {
this.$toast(this.$t('reg.a9'))
return
}
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({bt:this.coin,baddr:this.form.address,bnum:this.form.amount}).then(res=>{
// console.log(res);
if(res.code=='4001'){
this.$toast(res.message);
}else{
this.$toast(this.$t('common.sendSuccess'));
}
})
},
// //
toDraw() { toDraw() {
if (!this.form.address) { if (!this.form.address) {
@ -320,6 +374,10 @@ export default {
this.$toast(this.$t('reg.a9')) this.$toast(this.$t('reg.a9'))
return return
} }
if (!this.form.emailcode) {
this.$toast(this.$t('safe.a6'))
return
}
let data = this.withdrawFee let data = this.withdrawFee
if (data.withdraw_switch == 1) { if (data.withdraw_switch == 1) {
this.secondaryShow = true this.secondaryShow = true

3
store/index.js

@ -39,7 +39,8 @@ function defaultTheme() {
// } else { // } else {
// state = `light`; // state = `light`;
// } // }
uni.setStorageSync('theme', 'light'); // uni.setStorageSync('theme', 'light');//默认主题白色
uni.setStorageSync('theme', 'dark');//默认主题黑色
// uni.setStorageSync('language','zh-CN'); // uni.setStorageSync('language','zh-CN');
let state = `dark` let state = `dark`
return state; return state;

Loading…
Cancel
Save