Procházet zdrojové kódy

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx před 4 roky
rodič
revize
3837e2ae44

+ 1 - 1
build/cdn.json Zobrazit soubor

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.1.616"
2
+  "version": "1.1.634"
3 3
 }

+ 2 - 2
config/dev.env.js Zobrazit soubor

@@ -4,8 +4,8 @@ const prodEnv = require('./prod.env')
4 4
 
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7
-  BASE_API: '"https://api.xt.kuyicloud.com"'
8
-  // BASE_API: '"http://localhost:9531"'
7
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
8
+  BASE_API: '"http://localhost:9531"'
9 9
   //BASE_API: '"http://localhost:9529"'
10 10
   //http://api.xt.test.sgjyun.com http://localhost:9529
11 11
   // BASE_API: '"http://api.xt.test.sgjyun.com"'

+ 2 - 2
config/prod.env.js Zobrazit soubor

@@ -1,8 +1,8 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  // BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
+  BASE_API: '"https://api.xt.kuyicloud.com"'
6 6
   // BASE_API:'"http://localhost:9529"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
   // http://api.xt.test.sgjyun.com

+ 2 - 1
src/main.js Zobrazit soubor

@@ -114,7 +114,7 @@ Vue.use(ElementUI);
114 114
 Vue.config.productionTip = false;
115 115
 
116 116
 /* eslint-disable no-new */
117
-new Vue({
117
+var vue = new Vue({
118 118
   el: "#app",
119 119
   router,
120 120
   store,
@@ -123,5 +123,6 @@ new Vue({
123 123
   },
124 124
   template: "<App/>"
125 125
 });
126
+export default vue
126 127
 
127 128
 // eslint-disable-next-line no-undef

+ 7 - 7
src/pages/home/index.vue Zobrazit soubor

@@ -82,12 +82,12 @@
82 82
             <div>首页</div>
83 83
           </van-tabbar-item>
84 84
         </router-link>
85
-        <router-link to="/active">
86
-          <van-tabbar-item>
87
-            <i class="iconfont icon-jishiben iconOne"></i>
88
-            <div>致敬医护</div>
89
-          </van-tabbar-item>
90
-        </router-link>
85
+        <!--<router-link to="/active">-->
86
+          <!--<van-tabbar-item>-->
87
+            <!--<i class="iconfont icon-jishiben iconOne"></i>-->
88
+            <!--<div>致敬医护</div>-->
89
+          <!--</van-tabbar-item>-->
90
+        <!--</router-link>-->
91 91
         <!--<router-link to="/service">-->
92 92
           <!--<van-tabbar-item>-->
93 93
             <!--<i class="iconfont icon-fuwu2 iconOne"></i>-->
@@ -141,7 +141,7 @@ export default {
141 141
     const id = this.$route.query.id;
142 142
     // this.getAllOrgName(id);
143 143
     setRem();
144
-    
144
+
145 145
   },
146 146
   mounted(){
147 147
     let currenttabbar = window.location.hash.split("/")[1]

+ 1 - 0
src/pages/homeIndex/index.vue Zobrazit soubor

@@ -264,6 +264,7 @@ export default {
264 264
           // });
265 265
         } else {
266 266
           Toast(response.data.msg);
267
+
267 268
         }
268 269
       });
269 270
     },

+ 4 - 3
src/pages/main/template/DialysisPrintOrderTen.vue Zobrazit soubor

@@ -879,9 +879,10 @@
879 879
                 </div>
880 880
                 <div class="inline_block" style="flex:1;">
881 881
                   治疗医生:
882
-                  <div class="under_line" style="width: 80px;text-align: center">
883
-                    <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.creater)}}</span>
884
-                    <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else>
882
+                  <div class="under_line" style="width: 150px;text-align: center">
883
+                    <img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">
884
+                    <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.prescription_doctor)}}</span>
885
+                    <img style="height:20px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else>
885 886
                   </div>
886 887
                 </div>
887 888
 

+ 1 - 1
src/pages/my/index.vue Zobrazit soubor

@@ -192,7 +192,7 @@ export default {
192 192
             this.isRouterAlive = true;
193 193
           });
194 194
           localStorage.removeItem("searchWord");
195
-          this.$router.replace("/");
195
+          this.$router.push("/");
196 196
         }
197 197
       });
198 198
     },

+ 24 - 14
src/utils/request.js Zobrazit soubor

@@ -2,6 +2,9 @@ import axios from "axios";
2 2
 // import { Toast } from 'mint-ui'
3 3
 import { Toast } from "vant";
4 4
 
5
+import context from '../../src/main.js'
6
+
7
+
5 8
 // create an axios instance
6 9
 const service = axios.create({
7 10
   baseURL: process.env.BASE_API, // api的base_url
@@ -9,6 +12,7 @@ const service = axios.create({
9 12
   withCredentials: true
10 13
 });
11 14
 
15
+var self = this;
12 16
 // respone interceptor
13 17
 service.interceptors.response.use(
14 18
   // response => response,
@@ -16,22 +20,28 @@ service.interceptors.response.use(
16 20
     const res = response.data;
17 21
     if (res.state !== 1) {
18 22
       if (res.code === 20049) {
19
-        location.reload();
20
-        return Promise.reject("error");
21
-      } else if (res.code == 20035){
23
+        // this.$router.replace("/")
24
+        // this.$router.replace({ path: "/" });
25
+        // window.location.href=window.location.href+
26
+        // window.location.href = location.href+'?time='+((new Date()).getTime());
27
+        // this.$router.go(0)
28
+        // this.refresh()
29
+        context.$router.replace({ path: "/" })
30
+
31
+        // return
32
+      } else if (res.code === 20035){
22 33
         Toast("你已经被管理员禁用,无法使用该系统");
23
-        location.reload();
24
-        return Promise.reject("error");
25
-      }else if(res.code == 6001){
34
+        context.$router.replace({ path: "/" })
35
+        return
36
+      }else if(res.code === 6001){
26 37
         Toast("登录超时");
27
-        location.reload();
28
-        window.androidinfo.showInfoFromJs("1233");
29
-        return Promise.reject("error");
30
-      }else if(res.code == 6002){
31
-        Toast("登录信息丢失");
32
-        location.reload();
33
-        window.androidinfo.showInfoFromJs("1233");
34
-        return Promise.reject("error");
38
+        context.$router.replace({ path: "/" })
39
+        return
40
+      }else if(res.code === 6002){
41
+        Toast("登录信息丢失,正在刷新页面");
42
+        context.$router.replace({ path: "/" })
43
+        return
44
+
35 45
       }else {
36 46
         return response;
37 47
       }