See999 5 years ago
parent
commit
16cb21139e
2 changed files with 95 additions and 77 deletions
  1. 78 63
      src/scrm_pages/contact/contact.vue
  2. 17 14
      src/scrm_pages/microHome/microHome.vue

+ 78 - 63
src/scrm_pages/contact/contact.vue View File

1
 <template>
1
 <template>
2
-  <div>
3
-    <div v-for="item in this.ordmodel" :key="item.id" >
4
-    <div class="focusImg" v-if="item.mode_type == 1">
5
-      <div class="swiper-container">
6
-        <div class="swiper-wrapper">
7
-          <div class="swiper-slide"  v-for="it in item.Conrotation" :key="it.id">
8
-            <img class="imgtwo" :src="it.images"/>
2
+  <div class="page_contact">
3
+    <div v-for="item in this.ordmodel" :key="item.id">
4
+      <div class="focusImg" v-if="item.mode_type == 1">
5
+        <div class="swiper-container">
6
+          <div class="swiper-wrapper">
7
+            <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
8
+              <img class="imgtwo" :src="it.images" />
9
+            </div>
9
           </div>
10
           </div>
11
+          <!-- 如果需要分页器 -->
12
+          <div class="swiper-pagination"></div>
10
         </div>
13
         </div>
11
-        <!-- 如果需要分页器 -->
12
-        <div class="swiper-pagination"></div>
13
       </div>
14
       </div>
14
-    </div>
15
-    <!-- <div class="detail"> -->
16
-    <div class="row one detail" v-if="item.mode_type == 2">
17
-      <p class="title">{{item.title}}:</p>
18
-      <p class="msg">{{item.Hosaddress.address}}</p>
19
-    </div>
20
-    <div class="row" v-if="item.mode_type == 3">
21
-      <div v-for="it in Connectways" :key="it.id">
22
-        <p class="title">{{it.title}}:</p>
23
-        <p class="msg">{{it.content}}</p><br>
24
-       </div>
25
-    </div>
26
-    <div class="row" v-if="item.mode_type == 4">
27
-      <p class="title">{{item.title}}:</p>
28
-      <p class="msg">{{item.Worktime.worktime}}</p>
29
-    </div>
30
-    <div class="row one" v-if="item.mode_type == 5">
31
-      <p class="title">{{item.title}}:</p>
32
-      <p class="msg">{{item.Rideway.ride_way}}</p>
33
-    </div>
15
+      <!-- <div class="detail"> -->
16
+      <div class="row one detail" v-if="item.mode_type == 2">
17
+        <p class="title">{{item.title}}:</p>
18
+        <p class="msg">{{item.Hosaddress.address}}</p>
19
+      </div>
20
+      <div class="row" v-if="item.mode_type == 3">
21
+        <div v-for="it in Connectways" :key="it.id">
22
+          <p class="title">{{it.title}}:</p>
23
+          <p class="msg">{{it.content}}</p>
24
+          <br />
25
+        </div>
26
+      </div>
27
+      <div class="row" v-if="item.mode_type == 4">
28
+        <p class="title">{{item.title}}:</p>
29
+        <p class="msg">{{item.Worktime.worktime}}</p>
30
+      </div>
31
+      <div class="row one" v-if="item.mode_type == 5">
32
+        <p class="title">{{item.title}}:</p>
33
+        <p class="msg">{{item.Rideway.ride_way}}</p>
34
+      </div>
34
     </div>
35
     </div>
35
   </div>
36
   </div>
36
 </template>
37
 </template>
95
 </script>
96
 </script>
96
 
97
 
97
 <style lang="scss" scoped>
98
 <style lang="scss" scoped>
98
-.focusImg {
99
-  width: 23.4375rem;
100
-  height: 11.5625rem;
101
-  img {
102
-    width: 100%;
103
-    height: 100%;
99
+.page_contact {
100
+  overflow: hidden;
101
+  height: 100%;
102
+  > div:nth-of-type(2) {
103
+    min-height: 6.875rem;
104
+  }
105
+  .focusImg {
106
+    width: 23.4375rem;
107
+    height: 11.5625rem;
108
+    img {
109
+      width: 100%;
110
+      height: 100%;
111
+    }
112
+    .swiper-container {
113
+      height: 100%;
114
+    }
104
   }
115
   }
105
-  .swiper-container {
106
-    height: 100%;
116
+
117
+  .space {
118
+    margin: 0 1.25rem;
107
   }
119
   }
108
-}
120
+  .row {
121
+    font-size: 1rem;
122
+    font-weight: 600;
123
+    color: rgba(7, 18, 40, 1);
124
+    line-height: 2.375rem;
125
+    min-height: 2.375rem;
126
+    width: 21.125rem;
127
+    margin: 0 1.25rem;
128
+    // border: 1px solid #000;
109
 
129
 
110
-.space {
111
-  margin: 0 1.25rem;
112
-}
113
-.row {
114
-  font-size: 1rem;
115
-  font-weight: 600;
116
-  color: rgba(7, 18, 40, 1);
117
-  line-height: 2.375rem;
118
-  height: 2.375rem;
119
-  width: 21.125rem;
120
-  margin: 0 1.25rem;
121
-  .title {
122
-    float: left;
130
+    .title {
131
+      float: left;
132
+      width: 5rem;
133
+    }
134
+    .msg {
135
+      float: left;
136
+      width: 16rem;
137
+      line-height: 2.375rem;
138
+      min-height: 2.375rem;
139
+      word-wrap: break-word;
140
+      word-break: break-all;
141
+      // overflow-x: hidden;
142
+    }
123
   }
143
   }
124
-  .msg {
125
-    float: left;
126
-    width: 16rem;
144
+  .one {
145
+    min-height: 2.375rem;
146
+    // line-height: 3rem;
147
+  }
148
+  .detail {
149
+    width: 21.125rem;
150
+    margin: 1.1875rem 1.25rem 0 1.25rem;
127
   }
151
   }
128
 }
152
 }
129
-.one {
130
-  height: 3rem;
131
-  line-height: 1.5rem;
132
-}
133
-.detail {
134
-  width: 21.125rem;
135
-  margin: 1.1875rem 1.25rem 0 1.25rem;
136
-}
137
-
138
 </style>
153
 </style>

+ 17 - 14
src/scrm_pages/microHome/microHome.vue View File

194
           class="tabOne"
194
           class="tabOne"
195
           v-for="item in this.navigationdata"
195
           v-for="item in this.navigationdata"
196
           :key="item.id"
196
           :key="item.id"
197
-          @click="CallPhone(item.linktype,item.navaddress)">
197
+          @click="CallPhone(item.linktype,item.navaddress)"
198
+        >
198
           <img :src="item.navimages" alt />
199
           <img :src="item.navimages" alt />
199
           <span>{{item.navtitle}}</span>
200
           <span>{{item.navtitle}}</span>
200
         </li>
201
         </li>
324
     NavigationClick(title, address, orgid) {
325
     NavigationClick(title, address, orgid) {
325
       console.log("orgid", orgid);
326
       console.log("orgid", orgid);
326
       //  debugger
327
       //  debugger
327
-      if(title == "加入会员"){
328
-        window.location.href = "http://wx.kuyicloud.com/weixin/membershipagree/"+orgid;
329
-      }else if(title == "联系我们"){
330
-          this.$router.push({
328
+      if (title == "加入会员") {
329
+        window.location.href =
330
+          "http://wx.kuyicloud.com/weixin/membershipagree/" + orgid;
331
+      } else if (title == "联系我们") {
332
+        this.$router.push({
331
           path: "/contact",
333
           path: "/contact",
332
           query: {
334
           query: {
333
             orgid: orgid
335
             orgid: orgid
334
           }
336
           }
335
-         });
336
-      }else if(title =="咨询客服"){
337
-         window.location.href = "http://wx.kuyicloud.com/weixin/im/"+orgid;
338
-      }else{
337
+        });
338
+      } else if (title == "咨询客服") {
339
+        window.location.href = "http://wx.kuyicloud.com/weixin/im/" + orgid;
340
+      } else {
339
         window.location.href = address;
341
         window.location.href = address;
340
       }
342
       }
341
     },
343
     },
363
   created() {
365
   created() {
364
     const orgid = this.$route.query.orgid;
366
     const orgid = this.$route.query.orgid;
365
     console.log("机构id是什么", orgid);
367
     console.log("机构id是什么", orgid);
366
-    this.getHospitaldata(orgid);
368
+    // this.getHospitaldata(orgid);
367
     this.getArticlelist(orgid);
369
     this.getArticlelist(orgid);
368
     this.getActivities(orgid);
370
     this.getActivities(orgid);
369
     this.getDefalutNavigationData(orgid);
371
     this.getDefalutNavigationData(orgid);
370
-    // this.getData(orgid);
372
+    this.getData(orgid);
371
   },
373
   },
372
   mounted() {
374
   mounted() {
373
     this.initSwiper();
375
     this.initSwiper();
565
     margin: auto;
567
     margin: auto;
566
     margin-top: 1.25rem;
568
     margin-top: 1.25rem;
567
     width: 20.875rem;
569
     width: 20.875rem;
568
-    height: 20.3125rem;
570
+    // height: 20.3125rem;
569
     background: rgba(255, 255, 255, 1);
571
     background: rgba(255, 255, 255, 1);
570
     box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
572
     box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
571
     border-radius: 16px;
573
     border-radius: 16px;
572
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
574
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
573
     overflow: hidden;
575
     overflow: hidden;
574
     text-overflow: ellipsis;
576
     text-overflow: ellipsis;
577
+    border: 1px solid #000;
575
   }
578
   }
576
   .commonImg {
579
   .commonImg {
577
     width: 18.4375rem;
580
     width: 18.4375rem;
581
   .commonMessage {
584
   .commonMessage {
582
     // margin-top: 1.375rem;
585
     // margin-top: 1.375rem;
583
     width: 17.75rem;
586
     width: 17.75rem;
584
-    height: 14.625rem;
587
+    height: 16.25rem;
585
     font-size: 0.875rem;
588
     font-size: 0.875rem;
586
     color: rgba(60, 60, 60, 1);
589
     color: rgba(60, 60, 60, 1);
587
     line-height: 1.375rem;
590
     line-height: 1.375rem;
588
     overflow: hidden;
591
     overflow: hidden;
589
-    // border: solid 1px red;
592
+    border: solid 1px red;
590
     display: -webkit-box;
593
     display: -webkit-box;
591
     -webkit-line-clamp: 8;
594
     -webkit-line-clamp: 8;
592
     -webkit-box-orient: vertical;
595
     -webkit-box-orient: vertical;