See999 5 년 전
부모
커밋
16cb21139e
2개의 변경된 파일95개의 추가작업 그리고 77개의 파일을 삭제
  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 파일 보기

@@ -1,36 +1,37 @@
1 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 10
           </div>
11
+          <!-- 如果需要分页器 -->
12
+          <div class="swiper-pagination"></div>
10 13
         </div>
11
-        <!-- 如果需要分页器 -->
12
-        <div class="swiper-pagination"></div>
13 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 35
     </div>
35 36
   </div>
36 37
 </template>
@@ -95,44 +96,58 @@ export default {
95 96
 </script>
96 97
 
97 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 153
 </style>

+ 17 - 14
src/scrm_pages/microHome/microHome.vue 파일 보기

@@ -194,7 +194,8 @@
194 194
           class="tabOne"
195 195
           v-for="item in this.navigationdata"
196 196
           :key="item.id"
197
-          @click="CallPhone(item.linktype,item.navaddress)">
197
+          @click="CallPhone(item.linktype,item.navaddress)"
198
+        >
198 199
           <img :src="item.navimages" alt />
199 200
           <span>{{item.navtitle}}</span>
200 201
         </li>
@@ -324,18 +325,19 @@ export default {
324 325
     NavigationClick(title, address, orgid) {
325 326
       console.log("orgid", orgid);
326 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 333
           path: "/contact",
332 334
           query: {
333 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 341
         window.location.href = address;
340 342
       }
341 343
     },
@@ -363,11 +365,11 @@ export default {
363 365
   created() {
364 366
     const orgid = this.$route.query.orgid;
365 367
     console.log("机构id是什么", orgid);
366
-    this.getHospitaldata(orgid);
368
+    // this.getHospitaldata(orgid);
367 369
     this.getArticlelist(orgid);
368 370
     this.getActivities(orgid);
369 371
     this.getDefalutNavigationData(orgid);
370
-    // this.getData(orgid);
372
+    this.getData(orgid);
371 373
   },
372 374
   mounted() {
373 375
     this.initSwiper();
@@ -565,13 +567,14 @@ export default {
565 567
     margin: auto;
566 568
     margin-top: 1.25rem;
567 569
     width: 20.875rem;
568
-    height: 20.3125rem;
570
+    // height: 20.3125rem;
569 571
     background: rgba(255, 255, 255, 1);
570 572
     box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
571 573
     border-radius: 16px;
572 574
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
573 575
     overflow: hidden;
574 576
     text-overflow: ellipsis;
577
+    border: 1px solid #000;
575 578
   }
576 579
   .commonImg {
577 580
     width: 18.4375rem;
@@ -581,12 +584,12 @@ export default {
581 584
   .commonMessage {
582 585
     // margin-top: 1.375rem;
583 586
     width: 17.75rem;
584
-    height: 14.625rem;
587
+    height: 16.25rem;
585 588
     font-size: 0.875rem;
586 589
     color: rgba(60, 60, 60, 1);
587 590
     line-height: 1.375rem;
588 591
     overflow: hidden;
589
-    // border: solid 1px red;
592
+    border: solid 1px red;
590 593
     display: -webkit-box;
591 594
     -webkit-line-clamp: 8;
592 595
     -webkit-box-orient: vertical;