|
@@ -4326,7 +4326,25 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 用户名密码登录
|
|
// 用户名密码登录
|
|
|
userLogin() {
|
|
userLogin() {
|
|
|
-
|
|
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ agreementId: this.agreementId,
|
|
|
|
|
+ agreement: this.agreement,
|
|
|
|
|
+ attribution: this.attributionform,
|
|
|
|
|
+ dept: this.dept,
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$api.insCompany.checkLogin(params).then((res) => {
|
|
|
|
|
+ if (res.code == "200") {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
// 手机号验证码登录
|
|
// 手机号验证码登录
|
|
|
codeLogin() {
|
|
codeLogin() {
|
|
@@ -4341,6 +4359,10 @@ export default {
|
|
|
};
|
|
};
|
|
|
this.$api.sys.verifyLoginSmsCode(params).then((res) => {
|
|
this.$api.sys.verifyLoginSmsCode(params).then((res) => {
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ });
|
|
|
this.codedialogVisible=false;
|
|
this.codedialogVisible=false;
|
|
|
this.codeLoginVisible = true;
|
|
this.codeLoginVisible = true;
|
|
|
} else {
|
|
} else {
|
|
@@ -4491,7 +4513,7 @@ export default {
|
|
|
if(code == 'CHAC') {
|
|
if(code == 'CHAC') {
|
|
|
this.logindialogVisible = true
|
|
this.logindialogVisible = true
|
|
|
} else {
|
|
} else {
|
|
|
- if(list.includes(code) && apiType == '2' && !this.codeLoginVisible){
|
|
|
|
|
|
|
+ if(!list.includes(code) && apiType == '2' && !this.codeLoginVisible){
|
|
|
this.$api.sys.sendLoginSmsCode(this.attributionform).then((res) => {
|
|
this.$api.sys.sendLoginSmsCode(this.attributionform).then((res) => {
|
|
|
if (res.code != '200') {
|
|
if (res.code != '200') {
|
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|