Bladeren bron

科室环境

xiaoming_global 5 jaren geleden
bovenliggende
commit
134d12cb81

+ 1 - 1
index.html Bestand weergeven

@@ -8,7 +8,7 @@
8 8
     <meta name=”referrer” content=”never”>
9 9
     <meta name="referrer" content="no-referrer"/>
10 10
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
11
-    <title>血透管理-酷医云</title>
11
+    <title>微网站</title>
12 12
   </head>
13 13
   <body>
14 14
     <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>

+ 49 - 0
package-lock.json Bestand weergeven

@@ -36,6 +36,21 @@
36 36
         "@babel/types": "7.0.0-beta.31"
37 37
       }
38 38
     },
39
+    "@babel/runtime": {
40
+      "version": "7.6.3",
41
+      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz",
42
+      "integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==",
43
+      "requires": {
44
+        "regenerator-runtime": "^0.13.2"
45
+      },
46
+      "dependencies": {
47
+        "regenerator-runtime": {
48
+          "version": "0.13.3",
49
+          "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz",
50
+          "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw=="
51
+        }
52
+      }
53
+    },
39 54
     "@babel/template": {
40 55
       "version": "7.0.0-beta.31",
41 56
       "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.31.tgz",
@@ -152,6 +167,16 @@
152 167
       "resolved": "https://registry.npmjs.org/@types/swiper/-/swiper-4.4.3.tgz",
153 168
       "integrity": "sha512-z4RRt3/4ERHizeU8qIKmUsUpmoXFeEAJu0WLBZtjoVczaCnNL0KYQX0aBFZNhEu3bSNlMfWbZSHrg5gqAIucNA=="
154 169
     },
170
+    "@vant/icons": {
171
+      "version": "1.1.15",
172
+      "resolved": "https://registry.npmjs.org/@vant/icons/-/icons-1.1.15.tgz",
173
+      "integrity": "sha512-96tbJotfofrKpOrUGWKkiGLJsCFc0OX5pikWLW5yarD+EMhi0zCrQSDb95xGrp/HETAFm+nSTQu2e1zGsWN/7A=="
174
+    },
175
+    "@vue/babel-helper-vue-jsx-merge-props": {
176
+      "version": "1.0.0",
177
+      "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.0.0.tgz",
178
+      "integrity": "sha512-6tyf5Cqm4m6v7buITuwS+jHzPlIPxbFzEhXR5JGZpbrvOcp1hiQKckd305/3C7C36wFekNTQSxAtgeM0j0yoUw=="
179
+    },
155 180
     "JSV": {
156 181
       "version": "4.0.2",
157 182
       "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz",
@@ -6473,6 +6498,12 @@
6473 6498
       "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
6474 6499
       "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA=="
6475 6500
     },
6501
+    "koa2-cors": {
6502
+      "version": "2.0.6",
6503
+      "resolved": "https://registry.npm.taobao.org/koa2-cors/download/koa2-cors-2.0.6.tgz",
6504
+      "integrity": "sha1-mtI986C5u4RTC0b1lE8/tXYIZVQ=",
6505
+      "dev": true
6506
+    },
6476 6507
     "last-call-webpack-plugin": {
6477 6508
       "version": "2.1.2",
6478 6509
       "resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-2.1.2.tgz",
@@ -13801,6 +13832,24 @@
13801 13832
         "spdx-expression-parse": "^3.0.0"
13802 13833
       }
13803 13834
     },
13835
+    "vant": {
13836
+      "version": "2.2.10",
13837
+      "resolved": "https://registry.npmjs.org/vant/-/vant-2.2.10.tgz",
13838
+      "integrity": "sha512-O8HhrwMkqwA3fYFDwHLxFNh7ckAafao+4gF0hIdwSjypvEdbd6jgtPep0k3Z+CzPXkvPNUV5XCwR3fSH0AIgKw==",
13839
+      "requires": {
13840
+        "@babel/runtime": "7.x",
13841
+        "@vant/icons": "1.1.15",
13842
+        "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
13843
+        "vue-lazyload": "1.2.3"
13844
+      },
13845
+      "dependencies": {
13846
+        "vue-lazyload": {
13847
+          "version": "1.2.3",
13848
+          "resolved": "https://registry.npmjs.org/vue-lazyload/-/vue-lazyload-1.2.3.tgz",
13849
+          "integrity": "sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g=="
13850
+        }
13851
+      }
13852
+    },
13804 13853
     "vary": {
13805 13854
       "version": "1.1.2",
13806 13855
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",

+ 2 - 0
package.json Bestand weergeven

@@ -70,6 +70,7 @@
70 70
     "style-loader": "^1.0.0",
71 71
     "swiper": "^4.5.1",
72 72
     "v-viewer": "^1.4.2",
73
+    "vant": "^2.2.10",
73 74
     "vue": "2.5.16",
74 75
     "vue-baidu-map": "^0.21.22",
75 76
     "vue-count-to": "1.0.13",
@@ -111,6 +112,7 @@
111 112
     "friendly-errors-webpack-plugin": "1.6.1",
112 113
     "html-webpack-plugin": "2.30.1",
113 114
     "jquery": "^3.4.1",
115
+    "koa2-cors": "^2.0.6",
114 116
     "lint-staged": "7.2.0",
115 117
     "node-notifier": "5.1.2",
116 118
     "node-sass": "^4.7.2",

+ 2 - 1
src/main.js Bestand weergeven

@@ -42,7 +42,8 @@ import "viewerjs/dist/viewer.css";
42 42
 import preview from "vue-photo-preview";
43 43
 import "vue-photo-preview/dist/skin.css";
44 44
 Vue.use(preview);
45
-
45
+import { Grid, GridItem } from 'vant';
46
+Vue.use(Grid).use(GridItem);
46 47
 import "./libs/rem.js";
47 48
 
48 49
 //Vue.use(Viewer) 默认配置写法

+ 10 - 5
src/router/index.js Bestand weergeven

@@ -118,10 +118,10 @@ var _constant_router_map = [
118 118
     path: "/contact",
119 119
     component: () => import("@/scrm_pages/contact/contact")
120 120
   },
121
-  
121
+
122 122
   {
123 123
     path: "/",
124
-    component: () => import("@/scrm_pages/microHome/microHome")
124
+    component: () => import("@/scrm_pages/newsDetail/newsDetail")
125 125
   },
126 126
 
127 127
   // 医院介绍详情路由
@@ -187,13 +187,18 @@ var _constant_router_map = [
187 187
   },
188 188
 
189 189
   {
190
-    path:"/custom",
191
-    component: () =>import("@/scrm_pages/custom/custom")
190
+    path: "/custom",
191
+    component: () => import("@/scrm_pages/custom/custom")
192 192
   },
193 193
   {
194
-    path:"/contactus",
194
+    path: "/contactus",
195 195
     component: () => import("@/scrm_pages/contact/contactus")
196 196
   },
197
+  {
198
+    path:"/departmentEnvironment",
199
+    component: () => import("@/scrm_pages/enviroments/enviromentsdetail")
200
+  },
201
+  
197 202
 
198 203
   {
199 204
     path: "/activity/preview",

+ 25 - 0
src/scrm_pages/Enviroments/enviromentsdetail.vue Bestand weergeven

@@ -0,0 +1,25 @@
1
+<template>
2
+    <div>
3
+        <van-grid :border="true" :column-num="3">
4
+          <van-grid-item>
5
+             <img src="https://img.yzcdn.cn/vant/apple-1.jpg" />
6
+         </van-grid-item>
7
+         <van-grid-item>
8
+            <img src="https://img.yzcdn.cn/vant/apple-2.jpg" />
9
+        </van-grid-item>
10
+         <van-grid-item>
11
+             <img src="https://img.yzcdn.cn/vant/apple-3.jpg" />
12
+          </van-grid-item>
13
+        </van-grid>
14
+    </div>
15
+</template>
16
+
17
+<script>
18
+    export default {
19
+        name: "enviromentsdetail"
20
+    }
21
+</script>
22
+
23
+<style scoped>
24
+
25
+</style>

+ 26 - 12
src/scrm_pages/activity/activity.vue Bestand weergeven

@@ -10,7 +10,7 @@
10 10
         <div class="img">
11 11
           <img :src="it.poster_photo" style="width:100%;height:100%" alt />
12 12
         </div>
13
-        <div class="detail">
13
+        <div class="detail" v-if="it.title !=''">
14 14
           <p class="detailTitle">{{it.title}}</p>
15 15
           <div class="detailBox">
16 16
             <div class="activityTime">
@@ -25,6 +25,11 @@
25 25
             </div>
26 26
           </div>
27 27
         </div>
28
+        <div class="detail" v-else-if="it.title == ''">
29
+            <div class="noImg">
30
+                  <img src="../../../static/images/none2.png" alt />
31
+            </div>
32
+        </div>
28 33
       </div>
29 34
     </div>
30 35
   </div>
@@ -51,18 +56,18 @@ export default {
51 56
     staffCreateTime(time) {
52 57
       return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
53 58
     },
54
-    singleActivitInfo(id, orgid) {
55
-      this.$router.push({
56
-        path: "/activityDetail",
57
-        query: {
58
-          id: id,
59
-          orgid: orgid
60
-        }
61
-      });
62
-    }
63
-    // singleActivitInfo(id){
64
-    //   window.location.href = "http://wx.kuyicloud.com/weixin/activity/"+id;
59
+    // singleActivitInfo(id, orgid) {
60
+    //   this.$router.push({
61
+    //     path: "/activityDetail",
62
+    //     query: {
63
+    //       id: id,
64
+    //       orgid: orgid
65
+    //     }
66
+    //   });
65 67
     // }
68
+    singleActivitInfo(id){
69
+      window.location.href = "http://wx.kuyicloud.com/weixin/activity/"+id;
70
+    }
66 71
   },
67 72
   created() {
68 73
     const id = this.$route.query.id;
@@ -119,6 +124,15 @@ export default {
119 124
       color: rgba(155, 155, 155, 1);
120 125
       line-height: 1.125rem;
121 126
     }
127
+     .noImg {
128
+    width: 3.125rem;
129
+    height: 3.125rem;
130
+    margin: 1.25rem auto 0;
131
+    img {
132
+      width: 3.125rem;
133
+      height: 3.125rem;
134
+    }
135
+  }
122 136
   }
123 137
 }
124 138
 .detailBox {

+ 11 - 11
src/scrm_pages/contact/contactus.vue Bestand weergeven

@@ -72,7 +72,7 @@ export default {
72 72
         if (response.data.state == 1) {
73 73
           var navigation = response.data.data.navigation;
74 74
           for (let index = 0; index < navigation.length; index++) {
75
-              navigation[1].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
75
+              navigation[3].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
76 76
 
77 77
           }
78 78
           console.log("navigation是什么", navigation);
@@ -123,7 +123,7 @@ export default {
123 123
       if (linktype == "2") {
124 124
         // window.location.href = address;
125 125
         this.$router.push({
126
-          path: "/contactus",
126
+          path: "/custom",
127 127
           query: {
128 128
             orgid: orgid
129 129
           }
@@ -132,15 +132,15 @@ export default {
132 132
       if (linktype == "3") {
133 133
         window.location.href = "tel://" + address + "";
134 134
       }
135
-      if (linktype == "4") {
136
-        // window.location.href = address;
137
-        this.$router.push({
138
-          path:"/custom",
139
-          query:{
140
-            orgid:orgid
141
-          }
142
-        })
143
-      }
135
+      // if (linktype == "4") {
136
+      //   // window.location.href = address;
137
+      //   this.$router.push({
138
+      //     path:"/custom",
139
+      //     query:{
140
+      //       orgid:orgid
141
+      //     }
142
+      //   })
143
+      // }
144 144
     },
145 145
   },
146 146
    created(){

+ 11 - 11
src/scrm_pages/custom/custom.vue Bestand weergeven

@@ -37,7 +37,7 @@ export default {
37 37
         if (response.data.state == 1) {
38 38
           var navigation = response.data.data.navigation;
39 39
           for (let index = 0; index < navigation.length; index++) {
40
-              navigation[3].nonavimages = "https://images.shengws.com/2101_o_1571990903053.png";
40
+              navigation[1].nonavimages = "https://images.shengws.com/2101_o_1571990903053.png";
41 41
               
42 42
           }
43 43
           console.log("navigation是什么", navigation);
@@ -57,22 +57,22 @@ export default {
57 57
               }
58 58
           })
59 59
      }
60
-      if (linktype == "2") {
61
-        // window.location.href = address;
62
-        this.$router.push({
63
-          path: "/contactus",
64
-          query: {
65
-            orgid: orgid
66
-          }
67
-         });
68
-      }
60
+      // if (linktype == "2") {
61
+      //   // window.location.href = address;
62
+      //   this.$router.push({
63
+      //     path: "/contactus",
64
+      //     query: {
65
+      //       orgid: orgid
66
+      //     }
67
+      //    });
68
+      // }
69 69
       if (linktype == "3") {
70 70
         window.location.href = "tel://" + address + "";
71 71
       }
72 72
       if (linktype == "4") {
73 73
         // window.location.href = address;
74 74
         this.$router.push({
75
-          path:"/custom",
75
+          path:"/contactus",
76 76
           query:{
77 77
             orgid:orgid
78 78
           }

+ 4 - 2
src/scrm_pages/doctorIntroduction/doctorIntroduction.vue Bestand weergeven

@@ -173,7 +173,7 @@ export default {
173 173
 }
174 174
 .dynamicTxt {
175 175
   float: left;
176
-  width: 4.5rem;
176
+  width: 6.25rem;
177 177
   height: 1.125rem;
178 178
   line-height: 1.125rem;
179 179
   font-size: 1.125rem;
@@ -195,10 +195,12 @@ export default {
195 195
   border-radius: 3px;
196 196
 }
197 197
 .goodtxt {
198
-  margin: 1rem 0 2.25rem 0.875rem;
198
+  margin: 1rem 2rem 2.25rem 0.875rem;
199 199
   font-size: 1rem;
200 200
   font-weight: 400;
201 201
   color: rgba(68, 75, 92, 1);
202 202
   line-height: 1.5rem;
203
+  // padding-right: 1.25rem;
204
+  box-sizing: border-box;
203 205
 }
204 206
 </style>

+ 46 - 29
src/scrm_pages/hospitalIntroduction/hospitalIntroduction.vue Bestand weergeven

@@ -2,40 +2,43 @@
2 2
   <div class="main">
3 3
     <!-- <div class="bannerImg">
4 4
       <img src="static\images\banner.jpg" alt />
5
-    </div> -->
6
-      <div class="detail" v-html="hospitalform.introduction">
5
+    </div>-->
6
+    <div class="detail" v-html="hospitalform.introduction" v-if="hospitalform.introduction != ''">
7
+    </div>
8
+    <div class="noImg" v-else-if="hospitalform.introduction == ''">
9
+      <img src="../../../static/images/none2.png" alt />
7 10
     </div>
8 11
   </div>
9 12
 </template>
10 13
  <script>
11
-    import { hispitalmore } from "@/api/micro/micro"
12
-     export default{
13
-        name:"hospitalIntroduction",
14
-        data(){
15
-            return{
16
-              hospitalform:[],
17
-            }
18
-        },
19
-        methods:{
20
-           hispitalmore(id,orgid){
21
-             hispitalmore(id,orgid).then(response=>{
22
-                 if(response.data.state ==1){
23
-                   var hospital =  response.data.data.hospital;
24
-                   console.log("hospital",hospital)
25
-                   this.hospitalform =  response.data.data.hospital;
26
-                }
27
-               })
28
-            }
29
-        },
30
-        created(){
31
-           const id = this.$route.query.id;
32
-           const orgid = this.$route.query.orgid;
33
-           console.log("id是多少",id)
34
-           console.log("orgid是多少",orgid)
35
-           this.hispitalmore(id,orgid)
14
+import { hispitalmore } from "@/api/micro/micro";
15
+export default {
16
+  name: "hospitalIntroduction",
17
+  data() {
18
+    return {
19
+      hospitalform: []
20
+    };
21
+  },
22
+  methods: {
23
+    hispitalmore(id, orgid) {
24
+      hispitalmore(id, orgid).then(response => {
25
+        if (response.data.state == 1) {
26
+          var hospital = response.data.data.hospital;
27
+          console.log("hospital", hospital);
28
+          this.hospitalform = response.data.data.hospital;
36 29
         }
37
-     }
38
- </script>
30
+      });
31
+    }
32
+  },
33
+  created() {
34
+    const id = this.$route.query.id;
35
+    const orgid = this.$route.query.orgid;
36
+    console.log("id是多少", id);
37
+    console.log("orgid是多少", orgid);
38
+    this.hispitalmore(id, orgid);
39
+  }
40
+};
41
+</script>
39 42
 
40 43
 
41 44
 <style lang="scss" scoped>
@@ -55,4 +58,18 @@
55 58
   color: rgba(7, 18, 40, 1);
56 59
   line-height: 1.5rem;
57 60
 }
61
+.noImg {
62
+  width: 6.25rem;
63
+  height: 6.25rem;
64
+  position: fixed;
65
+  left: 0;
66
+  right: 0;
67
+  bottom: 0;
68
+  top: 0;
69
+  margin: auto;
70
+  img {
71
+    width: 6.25rem;
72
+    height: 6.25rem;
73
+  }
74
+}
58 75
 </style>

+ 20 - 4
src/scrm_pages/medicalTeam/medicalTeam.vue Bestand weergeven

@@ -18,10 +18,15 @@
18 18
         <div class="img">
19 19
           <img :src="item.dochead" style="width:100%;height:100%" alt />
20 20
         </div>
21
-        <div class="detail">
21
+        <div class="detail" v-if="item.docintroduction !=''">
22 22
           <p class="detailTitle">{{item.doc_name}}</p>
23 23
           <p class="detailMessage" v-html="item.docintroduction"></p>
24 24
         </div>
25
+        <div class="detail" v-else-if="item.docintroduction == ''">
26
+          <div class="noImg">
27
+            <img src="../../../static/images/none2.png" alt />
28
+          </div>
29
+        </div>
25 30
       </div>
26 31
     </div>
27 32
   </div>
@@ -98,8 +103,8 @@ export default {
98 103
     height: 0.1875rem;
99 104
     background: linear-gradient(
100 105
       -45deg,
101
-      rgba(50, 210, 139, 1),
102
-      rgba(60, 226, 151, 1)
106
+      rgba(75, 102, 234, 1),
107
+      rgba(81, 119, 238, 1)
103 108
     );
104 109
   }
105 110
 }
@@ -107,7 +112,6 @@ export default {
107 112
   width: 14rem;
108 113
   height: 0.9375rem;
109 114
   font-size: 0.9375rem;
110
-  font-weight: 100;
111 115
   color: rgba(7, 18, 40, 1);
112 116
   margin: 0 auto;
113 117
   text-align: center;
@@ -160,4 +164,16 @@ export default {
160 164
     }
161 165
   }
162 166
 }
167
+.detail {
168
+  height: 100%;
169
+  .noImg {
170
+    width: 3.125rem;
171
+    height: 3.125rem;
172
+    margin: 1.25rem auto 0;
173
+    img {
174
+      width: 3.125rem;
175
+      height: 3.125rem;
176
+    }
177
+  }
178
+}
163 179
 </style>

+ 64 - 24
src/scrm_pages/microHome/microHome.vue Bestand weergeven

@@ -72,7 +72,10 @@
72 72
             </div>
73 73
           </div>
74 74
           <div class="commonBox">
75
-            <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
75
+            <!-- <div class="commonMessage" v-html="item.Hospitals.introduction"></div> -->
76
+            <div class="noImg">
77
+              <img src="../../../static/images/none2.png" alt />
78
+            </div>
76 79
           </div>
77 80
         </div>
78 81
 
@@ -92,7 +95,10 @@
92 95
             <!-- <div class="commonImg">
93 96
             <img src="static\images\img2.png" alt />
94 97
             </div>-->
95
-            <div class="commonMessage" v-html="item.Offices.introduction"></div>
98
+            <!-- <div class="commonMessage" v-html="item.Offices.introduction"></div> -->
99
+            <div class="noImg">
100
+              <img src="../../../static/images/none2.png" alt />
101
+            </div>
96 102
           </div>
97 103
         </div>
98 104
 
@@ -113,9 +119,15 @@
113 119
               <div class="img">
114 120
                 <img :src="doc.dochead" style="width:100%;height:100%" alt />
115 121
               </div>
116
-              <div class="detail">
122
+              <!-- <div class="detail">
117 123
                 <p class="detailTitle">{{doc.doc_name}}</p>
118 124
                 <p class="detailMessage" v-html="doc.docintroduction"></p>
125
+                
126
+              </div>-->
127
+              <div class="detail">
128
+                <div class="noImg">
129
+                  <img src="../../../static/images/none2.png" alt />
130
+                </div>
119 131
               </div>
120 132
             </div>
121 133
             <!-- <div class="contentOne">
@@ -218,6 +230,7 @@ import {
218 230
   getData
219 231
 } from "@/api/micro/micro";
220 232
 import { link } from "fs";
233
+
221 234
 export default {
222 235
   data() {
223 236
     return {
@@ -320,8 +333,8 @@ export default {
320 333
         if (response.data.state == 1) {
321 334
           var navigation = response.data.data.navigation;
322 335
           for (let index = 0; index < navigation.length; index++) {
323
-            navigation[0].nonavimages = "https://images.shengws.com/2089_o_1571990714383.png";
324
-            
336
+            navigation[0].nonavimages =
337
+              "https://images.shengws.com/2089_o_1571990714383.png";
325 338
           }
326 339
           console.log("navigation是什么", navigation);
327 340
           this.navigationdata = navigation;
@@ -335,40 +348,40 @@ export default {
335 348
         // window.location.href =
336 349
         //   "http://wx.kuyicloud.com/weixin/membershipagree/" + orgid;
337 350
         this.$router.push({
338
-          path:"/card",
351
+          path: "/card",
339 352
           query: {
340
-            orgid: orgid,
353
+            orgid: orgid
341 354
           }
342
-        })
355
+        });
343 356
       } else if (title == "联系我们") {
344 357
         this.$router.push({
345 358
           path: "/contact",
346 359
           query: {
347 360
             orgid: orgid
348 361
           }
349
-         });
350
-      }else if(title =="咨询客服"){
362
+        });
363
+      } else if (title == "咨询客服") {
351 364
         //  window.location.href = "http://wx.kuyicloud.com/weixin/im/"+orgid;
352 365
         this.$router.push({
353
-          path:"/custom",
366
+          path: "/custom",
354 367
           query: {
355
-            orgid:orgid
368
+            orgid: orgid
356 369
           }
357
-        })
358
-      }else {
370
+        });
371
+      } else {
359 372
         window.location.href = address;
360 373
       }
361 374
     },
362 375
 
363
-    CallPhone(linktype, address,orgid) {
376
+    CallPhone(linktype, address, orgid) {
364 377
 
365 378
       if (linktype == "2") {
366 379
         this.$router.push({
367
-          path:"/contactus",
368
-          query:{
369
-            orgid:orgid,
380
+          path: "/contactus",
381
+          query: {
382
+            orgid: orgid
370 383
           }
371
-        })
384
+        });
372 385
       }
373 386
       if (linktype == "3") {
374 387
         window.location.href = "tel://" + address + "";
@@ -376,11 +389,17 @@ export default {
376 389
       if (linktype == "4") {
377 390
         // window.location.href = address;
378 391
         this.$router.push({
392
+<<<<<<< .mine
379 393
           path:"/custom",
380 394
           query:{
381 395
             orgid:orgid,
396
+=======
397
+          path: "custom",
398
+          query: {
399
+            orgid: orgid
400
+>>>>>>> .theirs
382 401
           }
383
-        })
402
+        });
384 403
       }
385 404
     },
386 405
     getData(orgid) {
@@ -395,11 +414,11 @@ export default {
395 414
   created() {
396 415
     const orgid = this.$route.query.orgid;
397 416
     console.log("机构id是什么", orgid);
398
-    this.getHospitaldata(orgid);
417
+    // this.getHospitaldata(orgid);
399 418
     this.getArticlelist(orgid);
400 419
     this.getActivities(orgid);
401 420
     this.getDefalutNavigationData(orgid);
402
-    // this.getData(orgid);
421
+    this.getData(orgid);
403 422
   },
404 423
   mounted() {
405 424
     this.initSwiper();
@@ -495,7 +514,7 @@ export default {
495 514
   }
496 515
 }
497 516
 .dynamic {
498
-  margin-top: 1.875rem;
517
+  margin-top: 2.1875rem;
499 518
   // border: solid 1px red;
500 519
 }
501 520
 .common_title {
@@ -592,7 +611,7 @@ export default {
592 611
   // border: solid 1px red;
593 612
 }
594 613
 .common {
595
-  margin-top: 1.875rem;
614
+  margin-top: 2.1875rem;
596 615
   .commonBox {
597 616
     margin: auto;
598 617
     margin-top: 1.25rem;
@@ -605,6 +624,15 @@ export default {
605 624
     overflow: hidden;
606 625
     text-overflow: ellipsis;
607 626
     // border: 1px solid #000;
627
+    .noImg {
628
+      width: 6.25rem;
629
+      height: 6.25rem;
630
+      margin: 0 auto;
631
+      img {
632
+        width: 6.25rem;
633
+        height: 6.25rem;
634
+      }
635
+    }
608 636
   }
609 637
   .commonImg {
610 638
     width: 18.4375rem;
@@ -646,6 +674,18 @@ export default {
646 674
     padding-right: 1rem;
647 675
   }
648 676
 }
677
+.detail {
678
+  height: 100%;
679
+  .noImg {
680
+    width: 3.125rem;
681
+    height: 3.125rem;
682
+    margin: 1.25rem auto 0;
683
+    img {
684
+      width: 3.125rem;
685
+      height: 3.125rem;
686
+    }
687
+  }
688
+}
649 689
 .detailBox {
650 690
   margin-top: 0.625rem;
651 691
   .activityTime {

+ 15 - 1
src/scrm_pages/news/news.vue Bestand weergeven

@@ -5,10 +5,15 @@
5 5
         <div class="img">
6 6
           <img :src="it.imgs" style="width:100%;height:100%" alt />
7 7
         </div>
8
-        <div class="detail" @click="singleArticleInfo(it.id,it.user_org_id)">
8
+        <div class="detail" @click="singleArticleInfo(it.id,it.user_org_id)" v-if="it.title !=''">
9 9
           <p class="detailTitle">{{it.title}}</p>
10 10
           <p class="detailMessage"></p>
11 11
         </div>
12
+        <div class="detail" v-else-if="it.title ==''">
13
+             <div class="noImg">
14
+               <img src="../../../static/images/none2.png" alt />
15
+            </div>
16
+       </div>
12 17
       </div>
13 18
     </div>
14 19
   </div>
@@ -104,6 +109,15 @@ export default {
104 109
       color: rgba(155, 155, 155, 1);
105 110
       line-height: 1.125rem;
106 111
     }
112
+  .noImg {
113
+    width: 3.125rem;
114
+    height: 3.125rem;
115
+    margin: 1.25rem auto 0;
116
+    img {
117
+      width: 3.125rem;
118
+      height: 3.125rem;
119
+    }
120
+  }
107 121
   }
108 122
 }
109 123
 </style>

+ 45 - 29
src/scrm_pages/officeIntroduction/officeIntroduction.vue Bestand weergeven

@@ -1,38 +1,40 @@
1 1
 <template>
2
-     <div class="main">
3
-         <div class="detail" v-html="officeform.introduction"></div>
4
-     </div>
2
+  <div class="main">
3
+    <div class="detail" v-html="officeform.introduction" v-if="officeform.introduction !=''"></div>
4
+    <div class="noImg" v-else-if="officeform.introduction == ''">
5
+      <img src="../../../static/images/none2.png" alt />
6
+    </div>
7
+  </div>
5 8
 </template>
6 9
 
7 10
 <script>
8
-    import { officemore } from "@/api/micro/micro"
9
-    export default {
10
-        name: "officeIntroduction",
11
-        data(){
12
-            return{
13
-                officeform:[],
14
-            }
15
-        },
16
-        methods:{
17
-            officemore(id,orgid){
18
-               officemore(id,orgid).then(response=>{
19
-                   if(response.data.state ==1){
20
-                     var offices = response.data.data.offices;
21
-                     this.officeform = response.data.data.offices;
22
-                     console.log("科室详情数据",offices)
23
-
24
-                   }
25
-               })
26
-           }
27
-        },
28
-        created(){
29
-           const id = this.$route.query.id;
30
-           const orgid = this.$route.query.orgid;
31
-           console.log("id是多少",id)
32
-           console.log("orgid是多少",orgid)
33
-           this.officemore(id,orgid)
11
+import { officemore } from "@/api/micro/micro";
12
+export default {
13
+  name: "officeIntroduction",
14
+  data() {
15
+    return {
16
+      officeform: []
17
+    };
18
+  },
19
+  methods: {
20
+    officemore(id, orgid) {
21
+      officemore(id, orgid).then(response => {
22
+        if (response.data.state == 1) {
23
+          var offices = response.data.data.offices;
24
+          this.officeform = response.data.data.offices;
25
+          console.log("科室详情数据", offices);
34 26
         }
27
+      });
35 28
     }
29
+  },
30
+  created() {
31
+    const id = this.$route.query.id;
32
+    const orgid = this.$route.query.orgid;
33
+    console.log("id是多少", id);
34
+    console.log("orgid是多少", orgid);
35
+    this.officemore(id, orgid);
36
+  }
37
+};
36 38
 </script>
37 39
 
38 40
 <style lang="scss" scoped>
@@ -52,4 +54,18 @@
52 54
   color: rgba(7, 18, 40, 1);
53 55
   line-height: 24px;
54 56
 }
57
+.noImg {
58
+  width: 6.25rem;
59
+  height: 6.25rem;
60
+  position: fixed;
61
+  left: 0;
62
+  right: 0;
63
+  bottom: 0;
64
+  top: 0;
65
+  margin: auto;
66
+  img {
67
+    width: 6.25rem;
68
+    height: 6.25rem;
69
+  }
70
+}
55 71
 </style>

BIN
static/images/non.png.lnk Bestand weergeven


BIN
static/images/none2.png Bestand weergeven