Browse Source

调整验证码布局

master
xyiege 2 years ago
parent
commit
38498b39fd
  1. 10
      src/views/setting/login-pwd.vue

10
src/views/setting/login-pwd.vue

@ -23,10 +23,13 @@
<!-- Captcha --> <!-- Captcha -->
<div class="form-group"> <div class="form-group">
<label>{{$t('common.GraphicValidation')}}</label> <label>{{$t('common.GraphicValidation')}}</label>
<input type="text" id="gccode" v-model="user.gc_code" required <div class="col-12 row">
<input type="text" id="gccode" v-model="form.gc_code" required
:placeholder="$t('common.GraphicValidation')" class="form-control col-6" /> :placeholder="$t('common.GraphicValidation')" class="form-control col-6" />
<img class="col-6" :src="Graph_che" @click="gett_gc_code"> <img class="col-6" :src="Graph_che" @click="gett_gc_code">
</div> </div>
</div>
<div class="form-group" v-if="detail.phone_status==1"> <div class="form-group" v-if="detail.phone_status==1">
<label>{{$t('setting.smsVer')}}</label> <label>{{$t('setting.smsVer')}}</label>
<div class="input-group mb-3"> <div class="input-group mb-3">
@ -89,12 +92,17 @@ export default {
password_confirmation: "", password_confirmation: "",
sms_code: "", sms_code: "",
email_code: "", email_code: "",
gc_code: "",
google_code: "" google_code: ""
}, },
Graph_che:'', // gc code image Graph_che:'', // gc code image
gc_key:'', // tuxiangyanzheng key gc_key:'', // tuxiangyanzheng key
}; };
}, },
mounted(){
// bind get gc code
this.gett_gc_code();
},
methods: { methods: {
// get gc code from api // get gc code from api
gett_gc_code(){ gett_gc_code(){

Loading…
Cancel
Save