|
@@ -2,7 +2,7 @@
|
|
|
<div class="login">
|
|
|
<div class="top">
|
|
|
<div class="img">
|
|
|
- <img src="../images/logo.jpg" alt />
|
|
|
+ <img src="../images/logo.png" alt />
|
|
|
</div>
|
|
|
<h4>欢迎使用智能预问诊</h4>
|
|
|
</div>
|
|
@@ -63,9 +63,13 @@ export default {
|
|
|
message:{
|
|
|
title: "",
|
|
|
text: ""
|
|
|
- }
|
|
|
+ },
|
|
|
+ code:''
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.code = this.$route.query.hospitalCode||''
|
|
|
+ },
|
|
|
methods: {
|
|
|
close() {
|
|
|
this.showTip = false;
|
|
@@ -135,9 +139,14 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ if(!this.code){
|
|
|
+ this.defaultWaring("医院编码必填");
|
|
|
+ return;
|
|
|
+ }
|
|
|
const param = {
|
|
|
patientInfo: this.value,
|
|
|
- patientInfoType: this.type
|
|
|
+ patientInfoType: this.type,
|
|
|
+ hospitalCode:this.code
|
|
|
};
|
|
|
api
|
|
|
.signIn(param)
|
|
@@ -171,7 +180,7 @@ export default {
|
|
|
this.showTip = true
|
|
|
}
|
|
|
} else {
|
|
|
- this.defaultWaring(res);
|
|
|
+ this.defaultWaring(res.msg);
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|