Browse Source

获取图形

master
luyisha 3 years ago
parent
commit
8a4cef01ee
  1. 2
      api/serve/index.js
  2. 50
      layout/vCode.vue
  3. 11
      pages/reg/index.vue

2
api/serve/index.js

@ -86,7 +86,7 @@ x.fn = x.prototype = {
if(Cache.get(newMsg).data){ if(Cache.get(newMsg).data){
if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance' if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance'
&& newMsg!='_article_detail' && newMsg!='_contract_getSymbolDetail' && newMsg!='_categoryList' && newMsg!='_articleList' && newMsg!='_article_detail' && newMsg!='_contract_getSymbolDetail' && newMsg!='_categoryList' && newMsg!='_articleList'
&& newMsg!='_user_wdcode' && newMsg!='_register_Graph_che' && newMsg!='_user_wdcode' && newMsg!='_register_Graph_che' && newMsg!='_register_sendEmailCode'
&& newMsg!='_college' && newMsg!='_exchange_getCoinInfo' && newMsg!='_user_primaryAuth' && newMsg!='_exchange_getCurrentEntrust' && newMsg!='_college' && newMsg!='_exchange_getCoinInfo' && newMsg!='_user_primaryAuth' && newMsg!='_exchange_getCurrentEntrust'
&& newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum'){ && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum'){
resolve(Cache.get(newMsg).data); resolve(Cache.get(newMsg).data);

50
layout/vCode.vue

@ -52,7 +52,7 @@ export default {
watch: { watch: {
sendAAA(n,o){ sendAAA(n,o){
if(n){ if(n){
console.log(n, '-------'); // console.log(n, '-------');
// setTimeout(()=>{ // setTimeout(()=>{
// this.inSend = false; // this.inSend = false;
// this.load = true; // this.load = true;
@ -84,7 +84,7 @@ export default {
methods: { methods: {
// //
send() { send() {
console.log(this.sendAAA, '-------this.sendAAA'); // console.log(this.sendAAA, '-------this.sendAAA');
if(this.data.phone==''){ if(this.data.phone==''){
this.$toast(this.$t('reg.a3')) this.$toast(this.$t('reg.a3'))
return return
@ -95,28 +95,30 @@ export default {
} }
if (this.load) return; if (this.load) return;
this.inSend = true; this.inSend = true;
if(this.url==="/register/sendEmailCode" && !this.sendAAA){ // if(this.url==="/register/sendEmailCode" && !this.sendAAA){
this.$emit('changeSLider', true); // this.$emit('changeSLider', true);
// return;
}else{ // }
// serve.post(this.url, this.data) // serve.post(this.url, this.data)
Member.sendEmailCode(this.data) Member.sendEmailCode(this.data)
.then((res) => { .then((res) => {
if(res.code=='4001'){ if(res.code=='4001'){
this.inSend = false this.inSend = false
this.$toast(res.message); this.$toast(res.message);
}else{ //
this.inSend = false; this.$emit('reGetGraphChe')
this.load = true; }else{
this.countDown(); this.inSend = false;
this.$toast(this.$t('common.sendSuccess')); this.load = true;
this.$emit('changeSendAAA', false) this.countDown();
} this.$toast(this.$t('common.sendSuccess'));
}) // this.$emit('changeSendAAA', false)
.catch(() => { }
this.inSend = false; })
}); .catch(() => {
} this.inSend = false;
});
}, },
countDown() { countDown() {

11
pages/reg/index.vue

@ -71,7 +71,7 @@
</template> </template>
</view> </view>
<!--图形验证码--> <!--图形验证码-->
<view class="form-item border-b m-b-md p-b-xs" v-if="0"> <view class="form-item border-b m-b-md p-b-xs" >
<view class="label m-b-xs">{{$t('homeNewText.ee6')}}</view> <view class="label m-b-xs">{{$t('homeNewText.ee6')}}</view>
<v-input class="color-light" v-model="form.gr_code" :placeholder="$t('homeNewText.ee6')"> <v-input class="color-light" v-model="form.gr_code" :placeholder="$t('homeNewText.ee6')">
<template #right> <template #right>
@ -95,7 +95,7 @@
}" }"
></v-code> ></v-code>
<!-- 邮箱 --> <!-- 邮箱 -->
<!-- <v-code <v-code
url="/register/sendEmailCode" url="/register/sendEmailCode"
:data="{ :data="{
email:form.account, email:form.account,
@ -104,8 +104,9 @@
gc_key: gc_key, gc_key: gc_key,
}" }"
v-show="form.type==2" v-show="form.type==2"
></v-code> --> @reGetGraphChe="gett_gc_code"
<v-code ></v-code>
<!-- <v-code
url="/register/sendEmailCode" url="/register/sendEmailCode"
:data="{ :data="{
email:form.account, email:form.account,
@ -116,7 +117,7 @@
@changeSLider="changeSLider" @changeSLider="changeSLider"
:sendAAA="sendAAA" :sendAAA="sendAAA"
@changeSendAAA="sendAAA = false" @changeSendAAA="sendAAA = false"
></v-code> ></v-code> -->
</template> </template>
</v-input> </v-input>
</view> </view>

Loading…
Cancel
Save