Browse Source

Merge branch 'master' of http://git.shengws.com/xmg123/micro_vue

See999 5 years ago
parent
commit
15f6d4ceb7

+ 1 - 1
index.html View File

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

+ 43 - 0
package-lock.json View File

36
         "@babel/types": "7.0.0-beta.31"
36
         "@babel/types": "7.0.0-beta.31"
37
       }
37
       }
38
     },
38
     },
39
+    "@babel/runtime": {
40
+      "version": "7.6.3",
41
+      "resolved": "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.6.3.tgz?cache=0&sync_timestamp=1570565315026&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.6.3.tgz",
42
+      "integrity": "sha1-k1Eix0xz0iQMr9Mt21/Cps01zx8=",
43
+      "requires": {
44
+        "regenerator-runtime": "^0.13.2"
45
+      },
46
+      "dependencies": {
47
+        "regenerator-runtime": {
48
+          "version": "0.13.3",
49
+          "resolved": "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.13.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregenerator-runtime%2Fdownload%2Fregenerator-runtime-0.13.3.tgz",
50
+          "integrity": "sha1-fPanfY9cb2Drc8X8GVWyzrAea/U="
51
+        }
52
+      }
53
+    },
39
     "@babel/template": {
54
     "@babel/template": {
40
       "version": "7.0.0-beta.31",
55
       "version": "7.0.0-beta.31",
41
       "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.31.tgz",
56
       "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.31.tgz",
152
       "resolved": "https://registry.npmjs.org/@types/swiper/-/swiper-4.4.3.tgz",
167
       "resolved": "https://registry.npmjs.org/@types/swiper/-/swiper-4.4.3.tgz",
153
       "integrity": "sha512-z4RRt3/4ERHizeU8qIKmUsUpmoXFeEAJu0WLBZtjoVczaCnNL0KYQX0aBFZNhEu3bSNlMfWbZSHrg5gqAIucNA=="
168
       "integrity": "sha512-z4RRt3/4ERHizeU8qIKmUsUpmoXFeEAJu0WLBZtjoVczaCnNL0KYQX0aBFZNhEu3bSNlMfWbZSHrg5gqAIucNA=="
154
     },
169
     },
170
+    "@vant/icons": {
171
+      "version": "1.1.15",
172
+      "resolved": "https://registry.npm.taobao.org/@vant/icons/download/@vant/icons-1.1.15.tgz",
173
+      "integrity": "sha1-U8UaziHpmSv+6y4a2QlPv2UG0RY="
174
+    },
175
+    "@vue/babel-helper-vue-jsx-merge-props": {
176
+      "version": "1.0.0",
177
+      "resolved": "https://registry.npm.taobao.org/@vue/babel-helper-vue-jsx-merge-props/download/@vue/babel-helper-vue-jsx-merge-props-1.0.0.tgz",
178
+      "integrity": "sha1-BI/leZWNpAj7eosqPsBQtQpmEEA="
179
+    },
155
     "JSV": {
180
     "JSV": {
156
       "version": "4.0.2",
181
       "version": "4.0.2",
157
       "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz",
182
       "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz",
13807
         "spdx-expression-parse": "^3.0.0"
13832
         "spdx-expression-parse": "^3.0.0"
13808
       }
13833
       }
13809
     },
13834
     },
13835
+    "vant": {
13836
+      "version": "2.2.10",
13837
+      "resolved": "https://registry.npm.taobao.org/vant/download/vant-2.2.10.tgz",
13838
+      "integrity": "sha1-rAqkPn8n5WpyCXdPh7h62TYIO1E=",
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.npm.taobao.org/vue-lazyload/download/vue-lazyload-1.2.3.tgz?cache=0&sync_timestamp=1568801961628&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-lazyload%2Fdownload%2Fvue-lazyload-1.2.3.tgz",
13849
+          "integrity": "sha1-kB+ewVx+bKeHgaK65KNDaGve2yw="
13850
+        }
13851
+      }
13852
+    },
13810
     "vary": {
13853
     "vary": {
13811
       "version": "1.1.2",
13854
       "version": "1.1.2",
13812
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
13855
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",

+ 1 - 0
package.json View File

70
     "style-loader": "^1.0.0",
70
     "style-loader": "^1.0.0",
71
     "swiper": "^4.5.1",
71
     "swiper": "^4.5.1",
72
     "v-viewer": "^1.4.2",
72
     "v-viewer": "^1.4.2",
73
+    "vant": "^2.2.10",
73
     "vue": "2.5.16",
74
     "vue": "2.5.16",
74
     "vue-baidu-map": "^0.21.22",
75
     "vue-baidu-map": "^0.21.22",
75
     "vue-count-to": "1.0.13",
76
     "vue-count-to": "1.0.13",

+ 12 - 0
src/api/micro/micro.js View File

188
     params: params
188
     params: params
189
   });
189
   });
190
 }
190
 }
191
+
192
+export function getEnviromentImages(id,orgid){
193
+  const params = {
194
+    id:id,
195
+    orgid:orgid,
196
+  }
197
+   return request({
198
+     url:"/api/site/getenviromentimages",
199
+     Get:"Get",
200
+     params:params
201
+   })
202
+}

+ 2 - 1
src/main.js View File

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

+ 5 - 0
src/router/index.js View File

194
     path: "/contactus",
194
     path: "/contactus",
195
     component: () => import("@/scrm_pages/contact/contactus")
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
     path: "/activity/preview",
204
     path: "/activity/preview",

+ 74 - 0
src/scrm_pages/Enviroments/enviromentsdetail.vue View File

1
+<template>
2
+    <div>
3
+       <div class="swiper-container imgSwiper">
4
+              <div class="swiper-wrapper">
5
+                <div class="swiper-slide carousel">
6
+                  <img class="img" src="static/images/a.jpg" />
7
+                </div>
8
+                <div class="swiper-slide carousel">
9
+                  <img class="img" src="static/images/a.jpg" />
10
+                </div>
11
+             </div>
12
+        </div>
13
+    </div>
14
+</template>
15
+
16
+<script>
17
+    import Swiper from "swiper";
18
+   import {getEnviromentImages } from "@/api/micro/micro";
19
+    export default {
20
+        name: "enviromentsdetail",
21
+        data(){
22
+            return{
23
+
24
+            }
25
+        },
26
+        created(){
27
+          const id =  this.$route.query.id;
28
+          const orgid = this.$route.query.orgid;
29
+          console.log("id是多少",id)
30
+          console.log("orgid是多少",orgid)
31
+          getEnviromentImages(id,orgid);
32
+        },
33
+        methods:{
34
+         initSwiper() {
35
+           var mySwiper2 = new Swiper(".imgSwiper", {
36
+           slidesPerView: 2,
37
+          });
38
+         },
39
+         getEnviromentImages(id,orgid){
40
+            getEnviromentImages(id,orgid).then(response=>{
41
+                 if(response.data.state == 1){
42
+                   
43
+                 }
44
+            })
45
+         }
46
+        },
47
+      mounted() {
48
+        this.initSwiper();
49
+     },
50
+
51
+     updated() {
52
+       this.initSwiper();
53
+       this.$previewRefresh();
54
+      }
55
+    }
56
+</script>
57
+
58
+<style lang="scss">
59
+  .carousel {
60
+    width: 100%;
61
+    height: 200px;
62
+    float: left;
63
+    padding-right: 1rem;
64
+    .img{
65
+        width: 100%;
66
+        height: 100%;
67
+        float: left;
68
+    }
69
+  }
70
+ 
71
+ .swiper-wrapper{
72
+     width:50%;
73
+ }
74
+</style>

+ 26 - 13
src/scrm_pages/activity/activity.vue View File

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

+ 2 - 0
src/scrm_pages/contact/contact.vue View File

5
         <div class="swiper-container">
5
         <div class="swiper-container">
6
           <div class="swiper-wrapper">
6
           <div class="swiper-wrapper">
7
             <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
7
             <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
8
+              <a :href="it.linkaddress.length > 0 ? it.linkaddress: 'javascript:;' ">
8
               <img class="imgtwo" :src="it.images" />
9
               <img class="imgtwo" :src="it.images" />
10
+              </a>
9
             </div>
11
             </div>
10
           </div>
12
           </div>
11
           <!-- 如果需要分页器 -->
13
           <!-- 如果需要分页器 -->

+ 124 - 3
src/scrm_pages/contact/contactus.vue View File

1
 <template>
1
 <template>
2
   <div class="page_home">
2
   <div class="page_home">
3
+<<<<<<< .mine
3
     <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
     <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
     <div>
5
     <div>
5
       <div v-for="item in this.ordmodel" :key="item.id">
6
       <div v-for="item in this.ordmodel" :key="item.id">
7
+=======
8
+
9
+      <div v-for="item in this.ordmodel" :key="item.id" class="modeone"> 
10
+
11
+>>>>>>> .theirs
6
         <div class="focusImg" v-if="item.mode_type == 1">
12
         <div class="focusImg" v-if="item.mode_type == 1">
7
           <div class="swiper-container">
13
           <div class="swiper-container">
8
             <div class="swiper-wrapper">
14
             <div class="swiper-wrapper">
13
             <!-- 如果需要分页器 -->
19
             <!-- 如果需要分页器 -->
14
             <div class="swiper-pagination"></div>
20
             <div class="swiper-pagination"></div>
15
           </div>
21
           </div>
22
+<<<<<<< .mine
23
+
24
+
25
+=======
26
+  
27
+          <!-- <div class="swiper-pagination"></div> -->
28
+>>>>>>> .theirs
16
         </div>
29
         </div>
30
+<<<<<<< .mine
17
         <!-- <div class="detail"> -->
31
         <!-- <div class="detail"> -->
18
         <div class="row one detail" v-if="item.mode_type == 2">
32
         <div class="row one detail" v-if="item.mode_type == 2">
19
           <p class="title">{{item.title}}:</p>
33
           <p class="title">{{item.title}}:</p>
20
           <p class="msg">{{item.Hosaddress.address}}</p>
34
           <p class="msg">{{item.Hosaddress.address}}</p>
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+=======
43
+      </div>
44
+      
45
+      <div class="row" v-if="item.mode_type == 2">
46
+        <p class="title">{{item.title}}:</p>
47
+        <p class="msg">{{item.Hosaddress.address}}</p>
48
+      </div>
49
+      <div class="row" v-if="item.mode_type == 3">
50
+        <div v-for="it in Connectways" :key="it.id">
51
+          <p class="title">{{it.title}}:</p>
52
+          <p class="msg">{{it.content}}</p>
53
+          <br />
54
+>>>>>>> .theirs
21
         </div>
55
         </div>
22
         <div class="row" v-if="item.mode_type == 3">
56
         <div class="row" v-if="item.mode_type == 3">
23
           <div v-for="it in Connectways" :key="it.id">
57
           <div v-for="it in Connectways" :key="it.id">
35
           <p class="msg">{{item.Rideway.ride_way}}</p>
69
           <p class="msg">{{item.Rideway.ride_way}}</p>
36
         </div>
70
         </div>
37
       </div>
71
       </div>
72
+<<<<<<< .mine
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+=======
82
+      <div class="row" v-if="item.mode_type == 4">
83
+        <p class="title">{{item.title}}:</p>
84
+        <p class="msg">{{item.Worktime.worktime}}</p>
85
+      </div>
86
+      <div class="row" v-if="item.mode_type == 5">
87
+        <p class="title">{{item.title}}:</p>
88
+        <p class="msg">{{item.Rideway.ride_way}}</p>
89
+      </div>
90
+>>>>>>> .theirs
38
     </div>
91
     </div>
39
 
92
 
40
     <!-- tab切换 -->
93
     <!-- tab切换 -->
78
         if (response.data.state == 1) {
131
         if (response.data.state == 1) {
79
           var navigation = response.data.data.navigation;
132
           var navigation = response.data.data.navigation;
80
           for (let index = 0; index < navigation.length; index++) {
133
           for (let index = 0; index < navigation.length; index++) {
134
+<<<<<<< .mine
81
             navigation[1].nonavimages =
135
             navigation[1].nonavimages =
82
               "https://images.shengws.com/2124_o_1571990749565.png";
136
               "https://images.shengws.com/2124_o_1571990749565.png";
137
+=======
138
+              navigation[3].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
139
+
140
+>>>>>>> .theirs
83
           }
141
           }
84
           console.log("navigation是什么", navigation);
142
           console.log("navigation是什么", navigation);
85
           this.navigationdata = navigation;
143
           this.navigationdata = navigation;
129
       if (linktype == "2") {
187
       if (linktype == "2") {
130
         // window.location.href = address;
188
         // window.location.href = address;
131
         this.$router.push({
189
         this.$router.push({
132
-          path: "/contactus",
190
+          path: "/custom",
133
           query: {
191
           query: {
134
             orgid: orgid
192
             orgid: orgid
135
           }
193
           }
138
       if (linktype == "3") {
196
       if (linktype == "3") {
139
         window.location.href = "tel://" + address + "";
197
         window.location.href = "tel://" + address + "";
140
       }
198
       }
199
+<<<<<<< .mine
141
       if (linktype == "4") {
200
       if (linktype == "4") {
142
         // window.location.href = address;
201
         // window.location.href = address;
143
         this.$router.push({
202
         this.$router.push({
147
           }
206
           }
148
         });
207
         });
149
       }
208
       }
209
+=======
210
+      // if (linktype == "4") {
211
+      //   // window.location.href = address;
212
+      //   this.$router.push({
213
+      //     path:"/custom",
214
+      //     query:{
215
+      //       orgid:orgid
216
+      //     }
217
+      //   })
218
+      // }
219
+>>>>>>> .theirs
150
     }
220
     }
151
   },
221
   },
152
   created() {
222
   created() {
166
 
236
 
167
 <style lang="scss" scoped>
237
 <style lang="scss" scoped>
168
 @import "../../assets/styles/mixin.scss";
238
 @import "../../assets/styles/mixin.scss";
239
+<<<<<<< .mine
169
 
240
 
170
 .page_home {
241
 .page_home {
171
   overflow: hidden;
242
   overflow: hidden;
186
 //   border: solid 1px red;
257
 //   border: solid 1px red;
187
 // }
258
 // }
188
 
259
 
260
+=======
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+>>>>>>> .theirs
189
 .tabs {
282
 .tabs {
190
   @include border-top;
283
   @include border-top;
191
   width: 100%;
284
   width: 100%;
217
 .page_home {
310
 .page_home {
218
   overflow: hidden;
311
   overflow: hidden;
219
   height: 100%;
312
   height: 100%;
313
+<<<<<<< .mine
220
   // > div:nth-of-type(2) {
314
   // > div:nth-of-type(2) {
221
   //   min-height: 5.125rem;
315
   //   min-height: 5.125rem;
222
   // }
316
   // }
317
+
318
+
319
+
320
+
321
+
322
+
323
+=======
324
+  display:flex;
325
+  flex-direction: column;
326
+  >div:first-child{
327
+    flex: 1;
328
+    overflow: auto;
329
+  }
330
+  > div:nth-of-type(2) {
331
+    min-height: 3.0rem;
332
+  }
333
+>>>>>>> .theirs
334
+  > div:nth-of-type(3) {
335
+    min-height: 3.125rem;
336
+  } 
337
+  > div:nth-of-type(4) {
338
+    min-height: 2.9rem;
339
+  }
223
   .focusImg {
340
   .focusImg {
224
     width: 23.4375rem;
341
     width: 23.4375rem;
225
     height: 11.5625rem;
342
     height: 11.5625rem;
244
     width: 21.125rem;
361
     width: 21.125rem;
245
     margin: 0 1.25rem;
362
     margin: 0 1.25rem;
246
     // border: 1px solid #000;
363
     // border: 1px solid #000;
247
-
248
     .title {
364
     .title {
249
       float: left;
365
       float: left;
250
       width: 5rem;
366
       width: 5rem;
260
     }
376
     }
261
   }
377
   }
262
   .one {
378
   .one {
263
-    min-height: 2.375rem;
379
+    min-height: 1.0rem;
264
     // line-height: 3rem;
380
     // line-height: 3rem;
265
   }
381
   }
266
   .detail {
382
   .detail {
267
     width: 21.125rem;
383
     width: 21.125rem;
268
     margin: 1.1875rem 1.25rem 0 1.25rem;
384
     margin: 1.1875rem 1.25rem 0 1.25rem;
385
+
269
   }
386
   }
270
 }
387
 }
388
+.modeone{
389
+  min-height: 210px;
390
+  // border:solid 1px red;
391
+}
271
 </style>
392
 </style>
272
 
393
 

+ 16 - 0
src/scrm_pages/contactus/contactus.vue View File

1
 <template>
1
 <template>
2
+<<<<<<< .mine
2
   <div class="page_contactus">
3
   <div class="page_contactus">
3
     <!-- 联系我们页面 -->
4
     <!-- 联系我们页面 -->
4
     <div class="scroll" style="padding:15px 4%;">
5
     <div class="scroll" style="padding:15px 4%;">
11
           </mt-swipe>
12
           </mt-swipe>
12
         </div>
13
         </div>
13
 
14
 
15
+=======
16
+    <div>
17
+          <!-- 联系我们页面 -->
18
+         <div class="scroll"  style="padding:15px 4%;">
19
+              <div v-for="item in this.ordmodel" :key="item.id">
20
+                
21
+                     <div v-if="item.mode_type == 1" class="contractmodeone">
22
+                        <mt-swipe :auto="4000" class="swipertwo">
23
+                             <mt-swipe-item  v-for="it in item.Conrotation" :key="it.id">
24
+                                    <img :src="it.images" style="width:100%;height:100%" >
25
+                             </mt-swipe-item>
26
+                        </mt-swipe>
27
+                     </div>
28
+>>>>>>> .theirs
29
+
14
         <div v-if="item.mode_type == 2" class="oldmodetwo">
30
         <div v-if="item.mode_type == 2" class="oldmodetwo">
15
           <div>
31
           <div>
16
             <span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span>
32
             <span>{{item.title}}:&nbsp;&nbsp;{{item.Hosaddress.address}}</span>

+ 11 - 11
src/scrm_pages/custom/custom.vue View File

37
         if (response.data.state == 1) {
37
         if (response.data.state == 1) {
38
           var navigation = response.data.data.navigation;
38
           var navigation = response.data.data.navigation;
39
           for (let index = 0; index < navigation.length; index++) {
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
           console.log("navigation是什么", navigation);
43
           console.log("navigation是什么", navigation);
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
       if (linktype == "3") {
69
       if (linktype == "3") {
70
         window.location.href = "tel://" + address + "";
70
         window.location.href = "tel://" + address + "";
71
       }
71
       }
72
       if (linktype == "4") {
72
       if (linktype == "4") {
73
         // window.location.href = address;
73
         // window.location.href = address;
74
         this.$router.push({
74
         this.$router.push({
75
-          path:"/custom",
75
+          path:"/contactus",
76
           query:{
76
           query:{
77
             orgid:orgid
77
             orgid:orgid
78
           }
78
           }

+ 3 - 3
src/scrm_pages/hospitalIntroduction/hospitalIntroduction.vue View File

3
     <!-- <div class="bannerImg">
3
     <!-- <div class="bannerImg">
4
       <img src="static\images\banner.jpg" alt />
4
       <img src="static\images\banner.jpg" alt />
5
     </div>-->
5
     </div>-->
6
-    <!-- <div class="detail" v-html="hospitalform.introduction">
7
-    </div>-->
8
-    <div class="noImg">
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 />
9
       <img src="../../../static/images/none2.png" alt />
10
     </div>
10
     </div>
11
   </div>
11
   </div>

+ 3 - 3
src/scrm_pages/medicalTeam/medicalTeam.vue View File

18
         <div class="img">
18
         <div class="img">
19
           <img :src="item.dochead" style="width:100%;height:100%" alt />
19
           <img :src="item.dochead" style="width:100%;height:100%" alt />
20
         </div>
20
         </div>
21
-        <!-- <div class="detail">
21
+        <div class="detail" v-if="item.docintroduction !=''">
22
           <p class="detailTitle">{{item.doc_name}}</p>
22
           <p class="detailTitle">{{item.doc_name}}</p>
23
           <p class="detailMessage" v-html="item.docintroduction"></p>
23
           <p class="detailMessage" v-html="item.docintroduction"></p>
24
-        </div>-->
25
-        <div class="detail">
24
+        </div>
25
+        <div class="detail" v-else-if="item.docintroduction == ''">
26
           <div class="noImg">
26
           <div class="noImg">
27
             <img src="../../../static/images/none2.png" alt />
27
             <img src="../../../static/images/none2.png" alt />
28
           </div>
28
           </div>

+ 42 - 29
src/scrm_pages/microHome/microHome.vue View File

7
           <div class="swiper-container bannerSwiper">
7
           <div class="swiper-container bannerSwiper">
8
             <div class="swiper-wrapper">
8
             <div class="swiper-wrapper">
9
               <div class="swiper-slide" v-for="it in item.PatientEditpiclink" :key="it.id">
9
               <div class="swiper-slide" v-for="it in item.PatientEditpiclink" :key="it.id">
10
-                <img class="imgtwo" :src="it.images" />
10
+                  <a :href="it.linkaddress.length > 0 ? it.linkaddress: 'javascript:;'">
11
+                  <img class="imgtwo" :src="it.images" />
12
+                  </a>
11
               </div>
13
               </div>
12
             </div>
14
             </div>
13
             <!-- 如果需要分页器 -->
15
             <!-- 如果需要分页器 -->
49
               <div class="img">
51
               <div class="img">
50
                 <img :src="it.imgs" style="width:100%;height:100%" alt />
52
                 <img :src="it.imgs" style="width:100%;height:100%" alt />
51
               </div>
53
               </div>
52
-              <div class="detail">
54
+              <div class="detail" v-if="it.title !=''">
53
                 <p class="detailTitle">{{it.title}}</p>
55
                 <p class="detailTitle">{{it.title}}</p>
54
                 <!-- <p class="detailMessage">{{it.content}}</p> -->
56
                 <!-- <p class="detailMessage">{{it.content}}</p> -->
55
               </div>
57
               </div>
58
+              <div class="detail" v-else-if="it.title ==''">
59
+                <div class="noImg">
60
+                  <img src="../../../static/images/none2.png" alt />
61
+                </div>
62
+              </div>
56
             </div>
63
             </div>
57
           </div>
64
           </div>
58
         </div>
65
         </div>
70
             </div>
77
             </div>
71
           </div>
78
           </div>
72
           <div class="commonBox">
79
           <div class="commonBox">
73
-            <!-- <div class="commonMessage" v-html="item.Hospitals.introduction"></div> -->
74
-            <div class="noImg">
80
+            <div class="commonMessage" v-html="item.Hospitals.introduction" v-if="item.Hospitals.introduction!=''"></div>
81
+            <div class="noImg" v-else-if="item.Hospitals.introcution == ''">
75
               <img src="../../../static/images/none2.png" alt />
82
               <img src="../../../static/images/none2.png" alt />
76
             </div>
83
             </div>
77
           </div>
84
           </div>
93
             <!-- <div class="commonImg">
100
             <!-- <div class="commonImg">
94
             <img src="static\images\img2.png" alt />
101
             <img src="static\images\img2.png" alt />
95
             </div>-->
102
             </div>-->
96
-            <!-- <div class="commonMessage" v-html="item.Offices.introduction"></div> -->
97
-            <div class="noImg">
103
+            <div class="commonMessage" v-html="item.Offices.introduction" v-if="item.Offices.introduction != ''"></div>
104
+            <div class="noImg" v-else-if="item.Offices.introduction">
98
               <img src="../../../static/images/none2.png" alt />
105
               <img src="../../../static/images/none2.png" alt />
99
             </div>
106
             </div>
100
           </div>
107
           </div>
117
               <div class="img">
124
               <div class="img">
118
                 <img :src="doc.dochead" style="width:100%;height:100%" alt />
125
                 <img :src="doc.dochead" style="width:100%;height:100%" alt />
119
               </div>
126
               </div>
120
-              <!-- <div class="detail">
127
+              <div class="detail" v-if="doc.docintroduction != ''">
121
                 <p class="detailTitle">{{doc.doc_name}}</p>
128
                 <p class="detailTitle">{{doc.doc_name}}</p>
122
                 <p class="detailMessage" v-html="doc.docintroduction"></p>
129
                 <p class="detailMessage" v-html="doc.docintroduction"></p>
123
                 
130
                 
124
-              </div>-->
125
-              <div class="detail">
131
+              </div>
132
+              <div class="detail" v-else-if="doc.docintroduction ==''">
126
                 <div class="noImg">
133
                 <div class="noImg">
127
                   <img src="../../../static/images/none2.png" alt />
134
                   <img src="../../../static/images/none2.png" alt />
128
                 </div>
135
                 </div>
145
           <div class="common_title">
152
           <div class="common_title">
146
             <div class="one"></div>
153
             <div class="one"></div>
147
             <div class="dynamicTxt">{{item.title}}</div>
154
             <div class="dynamicTxt">{{item.title}}</div>
148
-            <!-- <div class="more">
155
+            <div class="more" @click="EnviromentClick(item.id,item.user_org_id)">
149
             <p>
156
             <p>
150
               查看更多
157
               查看更多
151
               <i class="iconfont">&#xe632;</i>
158
               <i class="iconfont">&#xe632;</i>
152
             </p>
159
             </p>
153
-            </div>-->
160
+            </div>
154
           </div>
161
           </div>
155
           <div class="imgs">
162
           <div class="imgs">
156
             <div class="swiper-container imgSwiper">
163
             <div class="swiper-container imgSwiper">
180
               <div class="img">
187
               <div class="img">
181
                 <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
188
                 <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
182
               </div>
189
               </div>
183
-              <div class="detail">
190
+              <div class="detail" v-if="it.title != ''">
184
                 <p class="detailTitle">{{it.title}}</p>
191
                 <p class="detailTitle">{{it.title}}</p>
185
-                <!-- <div class="detailBox">
186
-                <div class="activityTime">
187
-                  <p>
188
-                    7月28日 08:30开始
189
-                    深圳市南山区
190
-                  </p>
191
-                </div>
192
-                <div class="people">
193
-                  <p>100人已报名</p>
192
+              </div>
193
+               <div class="detail" v-else-if="it.title ==''">
194
+                <div class="noImg">
195
+                  <img src="../../../static/images/none2.png" alt />
194
                 </div>
196
                 </div>
195
-                </div>-->
196
               </div>
197
               </div>
197
             </div>
198
             </div>
198
           </div>
199
           </div>
267
         if (response.data.state == 1) {
268
         if (response.data.state == 1) {
268
           var articlelist = response.data.data.articlelists;
269
           var articlelist = response.data.data.articlelists;
269
           this.Articlelist = response.data.data.articlelists;
270
           this.Articlelist = response.data.data.articlelists;
270
-          console.log("文章列表", this.Articlelist);
271
+          console.log("文章列表", this.Articlelist);  
271
         }
272
         }
272
       });
273
       });
273
     },
274
     },
327
         }
328
         }
328
       });
329
       });
329
     },
330
     },
331
+    EnviromentClick(id,orgid){
332
+      this.$router.push({
333
+        path:"/departmentEnvironment",
334
+        query:{
335
+          id:id,
336
+          orgid: orgid,
337
+        }
338
+      })
339
+    },
330
     getDefalutNavigationData(orgid) {
340
     getDefalutNavigationData(orgid) {
331
       getDefalutNavigationData(orgid).then(response => {
341
       getDefalutNavigationData(orgid).then(response => {
332
         if (response.data.state == 1) {
342
         if (response.data.state == 1) {
373
     },
383
     },
374
 
384
 
375
     CallPhone(linktype, address, orgid) {
385
     CallPhone(linktype, address, orgid) {
386
+
376
       if (linktype == "2") {
387
       if (linktype == "2") {
377
         this.$router.push({
388
         this.$router.push({
378
           path: "/contactus",
389
           path: "/contactus",
387
       if (linktype == "4") {
398
       if (linktype == "4") {
388
         // window.location.href = address;
399
         // window.location.href = address;
389
         this.$router.push({
400
         this.$router.push({
390
-          path: "custom",
391
-          query: {
392
-            orgid: orgid
401
+          path:"/custom",
402
+          query:{
403
+            orgid:orgid,
393
           }
404
           }
394
         });
405
         });
395
       }
406
       }
401
           console.log("数据是什么", this.patientModels);
412
           console.log("数据是什么", this.patientModels);
402
         }
413
         }
403
       });
414
       });
404
-    }
415
+    },
416
+
417
+
405
   },
418
   },
406
   created() {
419
   created() {
407
     const orgid = this.$route.query.orgid;
420
     const orgid = this.$route.query.orgid;
408
     console.log("机构id是什么", orgid);
421
     console.log("机构id是什么", orgid);
409
-    // this.getHospitaldata(orgid);
422
+    this.getHospitaldata(orgid);
410
     this.getArticlelist(orgid);
423
     this.getArticlelist(orgid);
411
     this.getActivities(orgid);
424
     this.getActivities(orgid);
412
     this.getDefalutNavigationData(orgid);
425
     this.getDefalutNavigationData(orgid);
413
-    this.getData(orgid);
426
+    // this.getData(orgid);
414
   },
427
   },
415
   mounted() {
428
   mounted() {
416
     this.initSwiper();
429
     this.initSwiper();

+ 15 - 1
src/scrm_pages/news/news.vue View File

5
         <div class="img">
5
         <div class="img">
6
           <img :src="it.imgs" style="width:100%;height:100%" alt />
6
           <img :src="it.imgs" style="width:100%;height:100%" alt />
7
         </div>
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
           <p class="detailTitle">{{it.title}}</p>
9
           <p class="detailTitle">{{it.title}}</p>
10
           <p class="detailMessage"></p>
10
           <p class="detailMessage"></p>
11
         </div>
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
       </div>
17
       </div>
13
     </div>
18
     </div>
14
   </div>
19
   </div>
109
       color: rgba(155, 155, 155, 1);
114
       color: rgba(155, 155, 155, 1);
110
       line-height: 1.125rem;
115
       line-height: 1.125rem;
111
     }
116
     }
117
+  .noImg {
118
+    width: 3.125rem;
119
+    height: 3.125rem;
120
+    margin: 1.25rem auto 0;
121
+    img {
122
+      width: 3.125rem;
123
+      height: 3.125rem;
124
+    }
125
+  }
112
   }
126
   }
113
 }
127
 }
114
 </style>
128
 </style>

+ 24 - 0
src/scrm_pages/newsDetail/newsDetail.vue View File

2
   <div class="page_newsDetail">
2
   <div class="page_newsDetail">
3
     <div class="newsTitle">{{articles.title}}</div>
3
     <div class="newsTitle">{{articles.title}}</div>
4
     <div class="msg" v-html="articles.content" v-show="articleshow"></div>
4
     <div class="msg" v-html="articles.content" v-show="articleshow"></div>
5
+<<<<<<< .mine
6
+     <div class="video" v-show="videoshow">            
7
+          <video id="example_video_1" class="video-js vjs-default-skin"
8
+                 controls preload="auto" width="100%" height="100%"
9
+                 poster="http://video-js.zencoder.com/oceans-clip.png"
10
+                 data-setup='{"example_option":true}' ref="video">
11
+               <source :src="articles.video_url" type='video/mp4' />
12
+        </video>            
13
+        </div>
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+=======
5
     <div class="video" v-show="videoshow">
22
     <div class="video" v-show="videoshow">
6
       <video
23
       <video
7
         id="example_video_1"
24
         id="example_video_1"
17
         <source :src="articles.video_url" type="video/mp4" />
34
         <source :src="articles.video_url" type="video/mp4" />
18
       </video>
35
       </video>
19
     </div>
36
     </div>
37
+>>>>>>> .theirs
20
   </div>
38
   </div>
21
 </template>
39
 </template>
22
   <script>
40
   <script>
88
   line-height: 1.375rem;
106
   line-height: 1.375rem;
89
   margin: 1.25rem 1.25rem 0 1.125rem;
107
   margin: 1.25rem 1.25rem 0 1.125rem;
90
 }
108
 }
109
+
110
+.video{
111
+  width: 100%;
112
+  height: 250px;
113
+  // border: solid 1px red;
114
+}
91
 </style>
115
 </style>

+ 2 - 2
src/scrm_pages/officeIntroduction/officeIntroduction.vue View File

1
 <template>
1
 <template>
2
   <div class="main">
2
   <div class="main">
3
-    <!-- <div class="detail" v-html="officeform.introduction"></div> -->
4
-    <div class="noImg">
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 />
5
       <img src="../../../static/images/none2.png" alt />
6
     </div>
6
     </div>
7
   </div>
7
   </div>

BIN
static/images/non.png.lnk View File