Browse Source

更新验证码

master
luyisha 2 years ago
parent
commit
f3ae43baa4
  1. 6
      layout/vCode.vue
  2. 3
      pages/reg/index.vue

6
layout/vCode.vue

@ -12,6 +12,7 @@
<script> <script>
import vButton from './vButton.vue' import vButton from './vButton.vue'
import serve from "@/api/serve"; import serve from "@/api/serve";
import Member from "@/api/member";
export default { export default {
name: "vCode", name: "vCode",
props: { props: {
@ -74,12 +75,15 @@ export default {
} }
if (this.load) return; if (this.load) return;
this.inSend = true; this.inSend = true;
serve.post(this.url,this.data) // serve.post(this.url,this.data)
Member.sendEmailCode(this.data)
.then((res) => { .then((res) => {
// ss // ss
if(res.code=='4001'){ if(res.code=='4001'){
this.inSend = false this.inSend = false
this.$toast(res.message); this.$toast(res.message);
//
this.$emit('reGetGraphChe')
}else{ }else{
this.inSend = false; this.inSend = false;
this.load = true; this.load = true;

3
pages/reg/index.vue

@ -179,7 +179,8 @@ export default {
gc_key:'', // tuxiangyanzheng key gc_key:'', // tuxiangyanzheng key
check: false, check: false,
agreement: {}, agreement: {},
country_code:'' country_code:'',
hideImg: false
}; };
}, },

Loading…
Cancel
Save