hhl提交
This commit is contained in:
+2
-19
@@ -9,14 +9,6 @@
|
||||
<el-input type="password" v-model="ruleForm.password" auto-complete="off" placeholder="密码"></el-input>
|
||||
</el-form-item>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item prop="code">
|
||||
<el-input type="text" v-model="ruleForm.code" auto-complete="off" placeholder="图形验证码" @keyup.enter.native="submitForm('ruleForm')"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="code-box">
|
||||
<img :src="ruleForm.codeimg" alt="" class="codeimg" @click="getcode()">
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-checkbox class="remember" v-model="rememberpwd">记住密码</el-checkbox>
|
||||
<el-form-item style="width:100%;">
|
||||
@@ -41,7 +33,6 @@ export default {
|
||||
//username和password默认为空
|
||||
username: '',
|
||||
password: '',
|
||||
code: '',
|
||||
randomStr: '',
|
||||
codeimg: ''
|
||||
},
|
||||
@@ -49,7 +40,6 @@ export default {
|
||||
rules: {
|
||||
username: [{ required: true, message: '请输入账号', trigger: 'blur' }],
|
||||
password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
|
||||
code: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -59,8 +49,6 @@ export default {
|
||||
message: '账号密码及验证码不为空即可',
|
||||
type: 'success'
|
||||
})
|
||||
// 获取图形验证码
|
||||
this.getcode()
|
||||
// 获取存在本地的用户名密码
|
||||
this.getuserpwd()
|
||||
|
||||
@@ -84,7 +72,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
this.logining = false
|
||||
this.$store.commit('login', 'true')
|
||||
this.$router.push({ path: '/goods/Goods' })
|
||||
this.$router.push({ path: '/registerapplicate/Goods' })
|
||||
}, 1000)
|
||||
// 注释
|
||||
// login(this.ruleForm).then(res => {
|
||||
@@ -106,7 +94,7 @@ export default {
|
||||
// // 缓存用户个人信息
|
||||
// localStorage.setItem('userdata', JSON.stringify(res.data))
|
||||
// this.$store.commit('login', 'true')
|
||||
// this.$router.push({ path: '/goods/Goods' })
|
||||
// this.$router.push({ path: '/registerapplicate/Goods' })
|
||||
// }, 1000)
|
||||
// } else {
|
||||
// this.$message.error(res.msg)
|
||||
@@ -115,8 +103,6 @@ export default {
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
// 获取图形验证码
|
||||
this.getcode()
|
||||
this.$message.error('请输入用户名密码!')
|
||||
this.logining = false
|
||||
return false
|
||||
@@ -157,9 +143,6 @@ export default {
|
||||
.remember {
|
||||
margin: 0px 0px 35px 0px;
|
||||
}
|
||||
.code-box {
|
||||
text-align: right;
|
||||
}
|
||||
.codeimg {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user