Commit f5e3629c by 李嘉林

登录页面

parent 9677a34d
......@@ -788,7 +788,9 @@ export default {
});
},
// 账号密码登录
loginIn(val) {
loginIn(a) {
let val = a.val;
let loginType = a.type;
wx.setStorage({
key: "enterpriseAccount",
data: ""
......@@ -798,9 +800,12 @@ export default {
if (val.account == "") {
return wx.showToast({title: "账号不能为空",icon: "none"});
}
if (val.password == "") {
if (val.password == "" && loginType == 0) {
return wx.showToast({title: "请输入密码", icon: "none"});
}
if (val.verifycode == "" && loginType == 1) {
return wx.showToast({title: "请输入验证码", icon: "none"});
}
if(this.content&&!this.checked) {
wx.showToast({
title: '您还未同意协议',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment