|
@@ -26,11 +26,11 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="code">
|
|
<el-form-item prop="code">
|
|
<el-row :span="24" style="display: flex; align-items: center">
|
|
<el-row :span="24" style="display: flex; align-items: center">
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="20">
|
|
<el-input v-model="loginForm.code" auto-complete="off" placeholder="请输入验证码" size=""
|
|
<el-input v-model="loginForm.code" auto-complete="off" placeholder="请输入验证码" size=""
|
|
@keyup.enter.native="submitForm('loginForm')"></el-input>
|
|
@keyup.enter.native="submitForm('loginForm')"></el-input>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" style="display: flex; justify-content: flex-end">
|
|
|
|
|
|
+ <el-col :span="4" style="display: flex; justify-content: flex-end">
|
|
<div class="login-code" @click="refreshCode">
|
|
<div class="login-code" @click="refreshCode">
|
|
<!--验证码组件-->
|
|
<!--验证码组件-->
|
|
<s-identify :identifyCode="identifyCode"></s-identify>
|
|
<s-identify :identifyCode="identifyCode"></s-identify>
|
|
@@ -40,10 +40,10 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="checkCode">
|
|
<el-form-item prop="checkCode">
|
|
<el-row :span="24" style="display: flex; align-items: center">
|
|
<el-row :span="24" style="display: flex; align-items: center">
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="20">
|
|
<el-input v-model="loginForm.checkCode" auto-complete="off" placeholder="请输入手机验证码"></el-input>
|
|
<el-input v-model="loginForm.checkCode" auto-complete="off" placeholder="请输入手机验证码"></el-input>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" style="display: flex; justify-content: flex-end">
|
|
|
|
|
|
+ <el-col :span="4" style="display: flex; justify-content: flex-end">
|
|
<div class="login-code" @click="checkClick">
|
|
<div class="login-code" @click="checkClick">
|
|
<el-button type="primary" style="width: 112px">{{
|
|
<el-button type="primary" style="width: 112px">{{
|
|
codeText
|
|
codeText
|
|
@@ -342,9 +342,8 @@
|
|
loginPassword: this.loginForm.password,
|
|
loginPassword: this.loginForm.password,
|
|
compId: "2710b21efc1e4393930c5dc800010dc4",
|
|
compId: "2710b21efc1e4393930c5dc800010dc4",
|
|
})
|
|
})
|
|
-
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- const res = await this.$store.dispatch('user/login', this.loginForm)
|
|
|
|
|
|
+ const res1 = await this.$store.dispatch('user/login', this.loginForm)
|
|
localStorage.setItem("ws_login_type", 2);
|
|
localStorage.setItem("ws_login_type", 2);
|
|
Cookies.set("ws_login_companyShortName", this.loginForm.companyName, {
|
|
Cookies.set("ws_login_companyShortName", this.loginForm.companyName, {
|
|
expires: 365,
|
|
expires: 365,
|