xiaoming_global 5 лет назад
Родитель
Сommit
44dba70f9b
2 измененных файлов: 22 добавлений и 15 удалений
  1. 19 12
      src/scrm_pages/microHome/microHome.vue
  2. 3 3
      src/scrm_pages/news/news.vue

+ 19 - 12
src/scrm_pages/microHome/microHome.vue Просмотреть файл

@@ -38,7 +38,7 @@
38 38
             <p>查看更多 <i class="iconfont">&#xe632;</i></p>
39 39
           </div>
40 40
         </div>
41
-        <div class="content">
41
+        <div class="content" @click="articlemore(item.id,item.user_org_id)">
42 42
           <div class="contentOne" v-for="it in Articlelist" :key="it.id">
43 43
             <div class="img">
44 44
               <img :src="it.imgs" style="width:100%;height:100%" alt/>
@@ -61,11 +61,11 @@
61 61
             <p> 查看更多 <i class="iconfont">&#xe632;</i></p>
62 62
           </div>
63 63
         </div>
64
-        <div class="commonBox">
64
+        <div class="commonBox" v-html="item.Hospitals.introduction">
65 65
           <!-- <div class="commonImg">
66 66
             <img src="static\images\img2.png" alt />
67 67
           </div> -->
68
-          <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
68
+          <!-- <div class="commonMessage" ></div> -->
69 69
         </div>
70 70
       </div>
71 71
 
@@ -79,11 +79,11 @@
79 79
             <p>查看更多<i class="iconfont">&#xe632;</i>   </p>
80 80
           </div>
81 81
         </div>
82
-        <div class="commonBox">
82
+        <div class="commonBox" v-html="item.Offices.introduction">
83 83
           <!-- <div class="commonImg">
84 84
             <img src="static\images\img2.png" alt />
85 85
           </div> -->
86
-          <div class="commonMessage"  v-html="item.Offices.introduction"></div>
86
+          <!-- <div class="commonMessage"  ></div> -->
87 87
         </div>
88 88
       </div>
89 89
 
@@ -99,7 +99,7 @@
99 99
             </p>
100 100
           </div>
101 101
         </div>
102
-        <div class="content">
102
+        <div class="content" @click="docmore(item.id,item.user_org_id)" >
103 103
           <div class="contentOne"  v-for="doc in item.Editdoctor" :key="doc.id">
104 104
             <div class="img">
105 105
               <img :src="doc.dochead" style="width:100%;height:100%" alt />
@@ -140,7 +140,6 @@
140 140
               <div class="swiper-slide carousel" v-for="itms in item.Enviroimages" :key="itms.id">
141 141
                 <img class="img" :src="itms.enviroimages" preview="1" />
142 142
               </div>
143
-            
144 143
             </div>
145 144
           </div>
146 145
         </div>
@@ -159,7 +158,7 @@
159 158
             </p>
160 159
           </div>
161 160
         </div>
162
-        <div class="content">
161
+        <div class="content" @click="Activitiesmore(item.id,item.user_org_id)">
163 162
           <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
164 163
             <div class="img">
165 164
               <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
@@ -483,7 +482,7 @@ export default {
483 482
     .detailMessage {
484 483
       margin-top: 0.25rem;
485 484
       width: 13.25rem;
486
-      height: 3.625rem;
485
+      height: 3.3rem;
487 486
       font-size: 0.75rem;
488 487
       font-weight: 400;
489 488
       color: rgba(155, 155, 155, 1);
@@ -493,10 +492,11 @@ export default {
493 492
        display: -webkit-box;
494 493
       -webkit-line-clamp: 1;
495 494
       -webkit-box-orient: vertical;
496
-      // border: solid 1px red;
495
+      //  border: solid 1px red;
497 496
     }
497
+     // border: solid 1px red;
498 498
   }
499
-  // border: solid 1px red;
499
+ 
500 500
 }
501 501
 .common {
502 502
   margin-top: 1.875rem;
@@ -504,11 +504,18 @@ export default {
504 504
     margin: auto;
505 505
     margin-top: 1.25rem;
506 506
     width: 20.875rem;
507
-    height: 20.3125rem;
507
+    height: 16rem;
508 508
     background: rgba(255, 255, 255, 1);
509 509
     box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
510 510
     border-radius: 16px;
511 511
     padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
512
+     overflow: hidden;
513
+    text-overflow: ellipsis;
514
+    display: -webkit-box;
515
+    -webkit-line-clamp: 8;
516
+    -webkit-box-orient: vertical;
517
+    // border: solid 1px red;
518
+
512 519
   }
513 520
   .commonImg {
514 521
     width: 18.4375rem;

+ 3 - 3
src/scrm_pages/news/news.vue Просмотреть файл

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <div class="content">
4 4
 
5
-      <div class="contentOne"  v-for="it in articlelist" :key="it.id" @click="singleArticleInfo(it.id,it.user_org_id)">
5
+      <div class="contentOne"  v-for="it in articlelist" :key="it.id">
6 6
         <div class="img">
7 7
           <img :src="it.imgs" style="width:100%;height:100%" alt />
8 8
         </div>
@@ -34,7 +34,7 @@
34 34
           },
35 35
            singleArticleInfo(id,orgid){
36 36
             this.$router.push({
37
-                path:"/activityDetail",
37
+                path:"",
38 38
                 query:{
39 39
                     id:id,
40 40
                     orgid:orgid,
@@ -77,7 +77,7 @@
77 77
     .detailTitle {
78 78
       margin-top: 0.5rem;
79 79
       width: 12.6875rem;
80
-      height: 1.0625rem;
80
+      height: 1.0rem;
81 81
       font-size: 0.9375rem;
82 82
       font-weight: 600;
83 83
       color: rgba(7, 18, 40, 1);