Browse Source

v-code是公共组件,修改密码,注册流程完善

master
luyisha 3 years ago
parent
commit
cb515a69af
  1. 12
      layout/vCode.vue
  2. 3
      pages/reg/index.vue
  3. 2
      pages/safe/forget-password.vue
  4. 9
      pages/safe/login-password.vue

12
layout/vCode.vue

@ -75,13 +75,19 @@ export default {
}
if (this.load) return;
this.inSend = true;
Member.sendEmailCode(this.data)
//this.url
serve.post(this.url, this.data)
.then((res) => {
if(res.code=='4001'){
this.inSend = false
this.$toast(res.message);
//
this.$emit('reGetGraphChe')
//
if(this.url=='/register/sendEmailCode'){
//
//
this.$emit('reGetGraphChe')
}
}else{
this.inSend = false;
this.load = true;

3
pages/reg/index.vue

@ -227,7 +227,8 @@ export default {
Member.register(this.form).then((res) => {
if(res.code != 200){
this.$toast(res.message)
this.$toast(res.message);
this.reGetGraphChe();
return false
}
// #ifdef H5

2
pages/safe/forget-password.vue

@ -6,7 +6,7 @@
<view class="form-item border-b p-md">
<view class="label m-b-xs">{{$t('safe.b1')}}</view>
<view class="input color-light">
<v-input v-model="form.account" :placeholder="`${$t('safe.b2')}`" @blur="checkAccount"></v-input>
<v-input v-model="form.account" :placeholder="`${$t('safe.a4')}`" @blur="checkAccount"></v-input>
</view>
</view>
<view class="form-item border-b p-md">

9
pages/safe/login-password.vue

@ -2,6 +2,12 @@
<v-page class="pos-login">
<v-header :title="$t('safe.c8')"></v-header>
<main class=" m-x-xl bg-panel-3 p-x-lg p-y-lg rounded-md box-shadow">
<view class="form-item border-b p-md">
<view class="label m-b-xs">{{$t('safe.b1')}}</view>
<view class="input color-light">
<v-input v-model="form.account" :placeholder="`${$t('safe.a4')}`" @blur="checkAccount"></v-input>
</view>
</view>
<view class="form-item border-b p-md ">
<view class="label m-b-xs">{{$t('safe.b3')}}</view>
<view class="input color-light">
@ -86,6 +92,9 @@ export default {
this.gett_gc_code();
},
methods: {
checkAccount(){
},
//
refreshCaptcha() {
axios.get('/register/Graph_che')

Loading…
Cancel
Save