|
@@ -48,7 +48,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="mobile" class="firmRightName">
|
|
<el-form-item prop="mobile" class="firmRightName">
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
- <el-input placeholder="验证码" prefix-icon="el-icon-lock" v-model="verifyForm.code" @keyup.enter="toSubmit"></el-input>
|
|
|
|
|
|
+ <el-input placeholder="验证码" prefix-icon="el-icon-lock" v-model="verifyForm.code"></el-input>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="firmRightImg">
|
|
<el-col :span="8" class="firmRightImg">
|
|
<!-- <img :src="pic3" /> -->
|
|
<!-- <img :src="pic3" /> -->
|
|
@@ -112,6 +112,7 @@ export default {
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.initQrcode();
|
|
this.initQrcode();
|
|
|
|
+ this.enterListen();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
@@ -163,6 +164,15 @@ export default {
|
|
let result = await this.getWxtoken(this.qrcode);
|
|
let result = await this.getWxtoken(this.qrcode);
|
|
this.submit(result);
|
|
this.submit(result);
|
|
},
|
|
},
|
|
|
|
+ enterListen() {
|
|
|
|
+ var _this = this;
|
|
|
|
+ document.onkeydown = function(e) {
|
|
|
|
+ var key = window.event.keyCode;
|
|
|
|
+ if (key == 13) {
|
|
|
|
+ _this.toSubmit();
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|