Browse Source

注册图形验证码完善、增加提币验证码

master
luyisha 2 years ago
parent
commit
a04c0b8dcd
  1. 4
      src/api/member.js
  2. 3
      src/i18n/de.json
  3. 3
      src/i18n/en.json
  4. 3
      src/i18n/fra.json
  5. 3
      src/i18n/it.json
  6. 3
      src/i18n/jp.json
  7. 3
      src/i18n/kor.json
  8. 3
      src/i18n/pt.json
  9. 3
      src/i18n/spa.json
  10. 3
      src/i18n/tr.json
  11. 3
      src/i18n/tw.json
  12. 11
      src/views/signUp/index.vue
  13. 81
      src/views/wallet/exchange-assets.vue

4
src/api/member.js

@ -153,6 +153,10 @@ class Member {
static sendGCode() {
return server.get(`/register/Graph_che`);
}
// 提币获取邮箱验证码
static getWdcode(data){
return server.get(`/user/wdcode`,{params:data});
}
}
export default Member;

3
src/i18n/de.json

@ -184,7 +184,8 @@
"footerTips1":"Risikoinvestitionen auf dem Markt sollten vorsichtig sein",
"footerTips2":"Rechtliche Hinweise: Die Website wird von {name} Firma betrieben",
"footerTips3":"Risikotipp: Digital Asset Trading kann zu Ihrem Verlust des Kapitals führen, stellen Sie bitte sicher, dass Sie die Risiken vollständig verstehen",
"footerTips4":"Eingeschränkte Gebiete: nicht in der Lage, Gebietsansässigen bestimmter Länder (z. B. Israel und der Islamischen Republik China) Dienstleistungen zu erbringen"
"footerTips4":"Eingeschränkte Gebiete: nicht in der Lage, Gebietsansässigen bestimmter Länder (z. B. Israel und der Islamischen Republik China) Dienstleistungen zu erbringen",
"GraphicValidation": "Grafische Überprüfung"
},
"exchange": {
"search":"Suche",

3
src/i18n/en.json

@ -216,7 +216,8 @@
"footerTips2": "Legal Notice: The website is operated by {name}",
"footerTips3": "Risk Tip: Digital asset trading may cause your principal loss, please make sure you fully understand the risks.",
"footerTips4": "Restricted Areas: Unable to provide services to residents of specific countries / regions, such as Israel and the Islamic Republic of China",
"learn":"Learn"
"learn":"Learn",
"GraphicValidation": "Graphical Verification"
},
"exchange": {
"search": "Search",

3
src/i18n/fra.json

@ -184,7 +184,8 @@
"footerTips1":"Les investissements risqués sur le marché doivent être prudents",
"footerTips2":"Avis juridique: le site est géré par la société {name}.",
"footerTips3":"Conseils sur les risques: les opérations sur actifs numériques peuvent entraîner une perte de capital. Assurez - vous de bien comprendre les risques.",
"footerTips4":"Zones restreintes: les services ne sont pas disponibles pour les résidents de certains pays / régions, par exemple Israël et la République islamique d'Iran"
"footerTips4":"Zones restreintes: les services ne sont pas disponibles pour les résidents de certains pays / régions, par exemple Israël et la République islamique d'Iran",
"GraphicValidation": "Vérification graphique"
},
"exchange": {
"search":"Recherche",

3
src/i18n/it.json

@ -184,7 +184,8 @@
"footerTips1":"Gli investimenti a rischio nel mercato dovrebbero essere cauti",
"footerTips2":"Avviso legale: il sito web è gestito da {nome} azienda",
"footerTips3":"Risk tip: trading digitale di asset può portare alla perdita del capitale, si prega di assicurarsi di comprendere pienamente i rischi",
"footerTips4":"Zone ristrette: non sono in grado di fornire servizi ai residenti di paesi specifici /regioni, come Israele e la Repubblica Islamica di Cina"
"footerTips4":"Zone ristrette: non sono in grado di fornire servizi ai residenti di paesi specifici /regioni, come Israele e la Repubblica Islamica di Cina",
"GraphicValidation": "Verifica grafica"
},
"exchange": {
"search":"ricerca",

3
src/i18n/jp.json

@ -184,7 +184,8 @@
"footerTips1":"市場にはリスクがありますので、慎重に投資してください。",
"footerTips2":"法律声明:このサイトは{name}会社が運営しています。",
"footerTips3":"リスク提示:デジタル資産取引は元金の損失を招く可能性があります。そのリスクを十分理解してください。",
"footerTips4":"制限区域:特定の国/地域の住民にサービスを提供することができません。例えば、イスラエルとイスラム共和国です。"
"footerTips4":"制限区域:特定の国/地域の住民にサービスを提供することができません。例えば、イスラエルとイスラム共和国です。",
"GraphicValidation": "グラフィカルな検証"
},
"exchange": {
"search":"検索",

3
src/i18n/kor.json

@ -184,7 +184,8 @@
"footerTips1":"시장 에 위험 이 있 는 투 자 는 신중 해 야 한다.",
"footerTips2":"법률 성명: 이 사 이 트 는 {name} 회사 에서 운영 합 니 다.",
"footerTips3":"리 스 크 알림: 디지털 자산 거래 는 귀하 의 원금 손실 을 초래 할 수 있 으 므 로 귀하 가 그 중의 위험 을 충분히 이해 하도록 하 십시오.",
"footerTips4":"제한 지역: 특정 국가 / 지역 의 주민 에 게 서 비 스 를 제공 할 수 없다. 예 를 들 어 이스라엘 과 이슬람 공화국 이다."
"footerTips4":"제한 지역: 특정 국가 / 지역 의 주민 에 게 서 비 스 를 제공 할 수 없다. 예 를 들 어 이스라엘 과 이슬람 공화국 이다.",
"GraphicValidation": "그래픽 검증"
},
"exchange": {
"search":"수색 하 다.",

3
src/i18n/pt.json

@ -184,7 +184,8 @@
"footerTips1":"O mercado de capital de risco exige prudência",
"footerTips2":"Declaração legal: o site é operado pela empresa {nome}",
"footerTips3":"Dica de risco: as transações de ativos digitais podem levar à perda do seu capital, certifique-se de compreender plenamente os riscos envolvidos",
"footerTips4":"Áreas restritas: impossibilidade de prestar serviços a residentes de países específicos /regiões, Como Israel e a República Islâmica Da China"
"footerTips4":"Áreas restritas: impossibilidade de prestar serviços a residentes de países específicos /regiões, Como Israel e a República Islâmica Da China",
"GraphicValidation": "Verificação gráfica"
},
"exchange": {
"search":"busca",

3
src/i18n/spa.json

@ -184,7 +184,8 @@
"footerTips1":"Capital de riesgo en el mercado",
"footerTips2":"Legal Statement: the site is operated by {name} Company",
"footerTips3":"Consejos de riesgo: las transacciones de activos digitales pueden causar pérdidas de capital, por favor asegúrese de entender plenamente los riesgos",
"footerTips4":"Zonas restringidas: incapacidad para prestar servicios a la población de determinados países o regiones, como Israel y la República Islámica del Irán"
"footerTips4":"Zonas restringidas: incapacidad para prestar servicios a la población de determinados países o regiones, como Israel y la República Islámica del Irán",
"GraphicValidation": "Verificación gráfica"
},
"exchange": {
"search":"Buscar",

3
src/i18n/tr.json

@ -184,7 +184,8 @@
"footerTips1":"Piyasa riski, yatırımın dikkatli olması gerekiyor",
"footerTips2":"Yasal uyarı: Bu web sitesi {name} şirketi tarafından işletilmektedir.",
"footerTips3":"Risk uyarısı: dijital varlık ticareti, müdürünüzü kaybetmenize neden olabilir, lütfen riskleri tam olarak anladığınızdan emin olun.",
"footerTips4":"Kısıtlı alanlar: belirli ülkelerin/bölgelerin sakinlerine hizmet sağlayamamak, örneğin: İsrail ve İslam Cumhuriyeti"
"footerTips4":"Kısıtlı alanlar: belirli ülkelerin/bölgelerin sakinlerine hizmet sağlayamamak, örneğin: İsrail ve İslam Cumhuriyeti",
"GraphicValidation": "Grafiksel doğrulama"
},
"exchange":{
"search":"aramak",

3
src/i18n/tw.json

@ -217,7 +217,8 @@
"footerTips2": "法律聲明:該網站由{name}公司運營",
"footerTips3": "風險提示:數位資產交易有可能導致您的本金損失,請確保您充分理解其中的風險",
"footerTips4": "受限地區:無法為特定國家/地區的居民提供服務,例如:以色列和伊斯蘭共和國",
"learn":"學習"
"learn":"學習",
"GraphicValidation": "圖形驗證"
},
"exchange": {
"search": "蒐索",

11
src/views/signUp/index.vue

@ -54,8 +54,8 @@
</div>
<div class="form-group row password">
<!-- 使用data-type指定额外的类型验证 -->
<input :type="txtType" id="gccode" v-model="user.gc_code" required placeholder="GraphicalVerification" class="form-control col-6" />
<!-- 增加图形验证码 -->
<input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-6" />
<img class="col-6" :src="Graph_che" @click="gett_gc_code">
</div>
@ -381,7 +381,12 @@ export default {
Member.sendGCode().then( (res) =>{
this.gc_key = res.key
this.Graph_che = res.img
console.log("gc",res)
console.log("gc",res);
this.$message({
message: `${type} ${this.$t("login.sendOK")}`,
type: "success",
duration : 2000,
});
}).catch( err =>{
console.log(err)
});

81
src/views/wallet/exchange-assets.vue

@ -367,6 +367,18 @@
</div>
<div class="form-group mt-2">
<label class="d-flex justify-content-between" for="" style="align-items: center;">
<span>{{$t('login.email-code')}}</span>
<span class="getCodeAA" @click="getEmailCode">
<span v-if="!getEmailCodeLock">{{$t('common.getCode')}}</span>
<span v-else>{{ daojishi }}</span>
</span>
</label>
<div class="input-group input-group-sm">
<input type="text" id="EmailCode" v-model="withdraw.emailcode" :placeholder="$t('common.enterEmailCode')" class="form-control" />
</div>
</div>
</form>
</div>
<div class="col-md-6">
@ -397,6 +409,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";
@ -444,7 +457,8 @@ export default {
addressType: 2, // 1 omni 2 erc20,
code_type: 1,
code: '',
password:''
password:'',
emailcode: ''
},
withdrawFee: {
@ -463,7 +477,10 @@ export default {
number:"",
amount:"",
images:""
}
},
getEmailCodeLock: false,
JStime: 0,
tiemr: null,
};
},
@ -484,6 +501,11 @@ export default {
}
}
},
computed : {
daojishi(){
return '('+this.JStime + 's' + ')';
}
},
methods: {
//
paypalSbumit(){
@ -656,6 +678,56 @@ export default {
Profile.getUserInfo({}).then(res => {
this.userInfo = res
});
},
//
getEmailCode(){
if(!this.withdraw.address){
this.$message({
message: this.$t('wallet.enterDrawAddress'),
// message: 'mlkdfdks',
// type: "warn",
duration : 2000,
});
return;
}
if(!this.withdraw.amount){
this.$message({
message: this.$t('wallet.enterDrawNum'),
// type: "warn",
duration : 2000,
});
return;
}
if(!this.withdraw.password){
this.$message({
message: this.$t('common.enterPwd'),
// type: "warn",
duration : 2000,
});
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;
// let gdata = {bt:this.withdraw.addressType,baddr:this.withdraw.address,bnum:this.withdraw.amount}
let gdata = {bt:this.depositeCoin,baddr:this.withdraw.address,bnum:this.withdraw.amount}
Member.getWdcode(gdata).then(res => {
// console.log(res, 11111)
this.$message({
message: `${this.$t("login.sendOK")}`,
type: "success",
duration : 2000,
});
});
}
},
@ -767,4 +839,9 @@ created() {
.label{
font-size: 16px;
}
.getCodeAA{
border: 1px solid #444;
padding: 5px 10px;
border-radius: 30px;
}
</style>

Loading…
Cancel
Save