Sfoglia il codice sorgente

提示信息修改

luolei 5 anni fa
parent
commit
a9be8a017c
4 ha cambiato i file con 16 aggiunte e 7 eliminazioni
  1. 1 1
      build/webpack.dev.conf.js
  2. 2 2
      config/index.js
  3. 13 4
      src/components/Login.vue
  4. 0 0
      src/images/logo.png

+ 1 - 1
build/webpack.dev.conf.js

@@ -34,7 +34,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
     compress: true,
     // host: HOST || config.dev.host,
     // host: '192.168.3.6',
-    host: '192.168.1.106',
+    host: '192.168.1.104',
     port: PORT || config.dev.port,
     open: config.dev.autoOpenBrowser,
     overlay: config.dev.errorOverlay

+ 2 - 2
config/index.js

@@ -4,8 +4,8 @@
 
 const path = require('path')
 // const proxy_path = 'http://192.168.2.236:80';
-const proxy_path = 'http://192.168.2.236:5050';
-// const proxy_path = 'http://192.168.2.241:5050';
+// const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:5050';
 
 module.exports = {
   dev: {

+ 13 - 4
src/components/Login.vue

@@ -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(() => {

src/images/logo.jpg → src/images/logo.png