Browse Source

微网站

xiaoming_global 5 years ago
parent
commit
c7c3bac03d

+ 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
           <!-- 如果需要分页器 -->

+ 26 - 30
src/scrm_pages/contact/contactus.vue View File

1
 <template>
1
 <template>
2
   <div class="page_home">
2
   <div class="page_home">
3
-         <!-- <iframe  :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
4
-      <div v-for="item in this.ordmodel" :key="item.id">
3
+
4
+      <div v-for="item in this.ordmodel" :key="item.id" class="modeone"> 
5
        <div class="focusImg" v-if="item.mode_type == 1">
5
        <div class="focusImg" v-if="item.mode_type == 1">
6
         <div class="swiper-container">
6
         <div class="swiper-container">
7
           <div class="swiper-wrapper">
7
           <div class="swiper-wrapper">
9
               <img class="imgtwo" :src="it.images" />
9
               <img class="imgtwo" :src="it.images" />
10
             </div>
10
             </div>
11
           </div>
11
           </div>
12
-          <!-- 如果需要分页器 -->
13
-          <div class="swiper-pagination"></div>
12
+  
13
+          <!-- <div class="swiper-pagination"></div> -->
14
         </div>
14
         </div>
15
       </div>
15
       </div>
16
-      <!-- <div class="detail"> -->
17
-      <div class="row one detail" v-if="item.mode_type == 2">
16
+      
17
+      <div class="row" v-if="item.mode_type == 2">
18
         <p class="title">{{item.title}}:</p>
18
         <p class="title">{{item.title}}:</p>
19
         <p class="msg">{{item.Hosaddress.address}}</p>
19
         <p class="msg">{{item.Hosaddress.address}}</p>
20
       </div>
20
       </div>
29
         <p class="title">{{item.title}}:</p>
29
         <p class="title">{{item.title}}:</p>
30
         <p class="msg">{{item.Worktime.worktime}}</p>
30
         <p class="msg">{{item.Worktime.worktime}}</p>
31
       </div>
31
       </div>
32
-      <div class="row one" v-if="item.mode_type == 5">
32
+      <div class="row" v-if="item.mode_type == 5">
33
         <p class="title">{{item.title}}:</p>
33
         <p class="title">{{item.title}}:</p>
34
         <p class="msg">{{item.Rideway.ride_way}}</p>
34
         <p class="msg">{{item.Rideway.ride_way}}</p>
35
       </div>
35
       </div>
160
 
160
 
161
 <style lang="scss" scoped>
161
 <style lang="scss" scoped>
162
 @import "../../assets/styles/mixin.scss";
162
 @import "../../assets/styles/mixin.scss";
163
-
164
-.page_home {
165
-  overflow: hidden;
166
-  display: flex;
167
-  flex-direction: column;
168
-  height: 100%;
169
-  > div:first-child {
170
-    flex: 1;
171
-    overflow: auto;
172
-  }
173
-  > div:first-child::-webkit-scrollbar {
174
-    width: 0;
175
-  }
176
-  // border:solid 1px red;
177
-}
178
-// .bugone{
179
-//   border: solid 1px red;
180
-// }
181
-
182
-
183
 .tabs {
163
 .tabs {
184
   @include border-top;
164
   @include border-top;
185
   width: 100%;
165
   width: 100%;
211
 .page_home {
191
 .page_home {
212
   overflow: hidden;
192
   overflow: hidden;
213
   height: 100%;
193
   height: 100%;
194
+  display:flex;
195
+  flex-direction: column;
196
+  >div:first-child{
197
+    flex: 1;
198
+    overflow: auto;
199
+  }
214
   > div:nth-of-type(2) {
200
   > div:nth-of-type(2) {
215
-    min-height: 5.125rem;
201
+    min-height: 3.0rem;
202
+  }
203
+  > div:nth-of-type(3) {
204
+    min-height: 3.125rem;
205
+  } 
206
+  > div:nth-of-type(4) {
207
+    min-height: 2.9rem;
216
   }
208
   }
217
   .focusImg {
209
   .focusImg {
218
     width: 23.4375rem;
210
     width: 23.4375rem;
238
     width: 21.125rem;
230
     width: 21.125rem;
239
     margin: 0 1.25rem;
231
     margin: 0 1.25rem;
240
     // border: 1px solid #000;
232
     // border: 1px solid #000;
241
-
242
     .title {
233
     .title {
243
       float: left;
234
       float: left;
244
       width: 5rem;
235
       width: 5rem;
254
     }
245
     }
255
   }
246
   }
256
   .one {
247
   .one {
257
-    min-height: 2.375rem;
248
+    min-height: 1.0rem;
258
     // line-height: 3rem;
249
     // line-height: 3rem;
259
   }
250
   }
260
   .detail {
251
   .detail {
261
     width: 21.125rem;
252
     width: 21.125rem;
262
     margin: 1.1875rem 1.25rem 0 1.25rem;
253
     margin: 1.1875rem 1.25rem 0 1.25rem;
254
+
263
   }
255
   }
264
 }
256
 }
257
+.modeone{
258
+  min-height: 210px;
259
+  // border:solid 1px red;
260
+}
265
 </style>
261
 </style>
266
 
262
 

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

3
           <!-- 联系我们页面 -->
3
           <!-- 联系我们页面 -->
4
          <div class="scroll"  style="padding:15px 4%;">
4
          <div class="scroll"  style="padding:15px 4%;">
5
               <div v-for="item in this.ordmodel" :key="item.id">
5
               <div v-for="item in this.ordmodel" :key="item.id">
6
+                
6
                      <div v-if="item.mode_type == 1" class="contractmodeone">
7
                      <div v-if="item.mode_type == 1" class="contractmodeone">
7
                         <mt-swipe :auto="4000" class="swipertwo">
8
                         <mt-swipe :auto="4000" class="swipertwo">
8
                              <mt-swipe-item  v-for="it in item.Conrotation" :key="it.id">
9
                              <mt-swipe-item  v-for="it in item.Conrotation" :key="it.id">

+ 6 - 3
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
             <!-- 如果需要分页器 -->
254
         if (response.data.state == 1) {
256
         if (response.data.state == 1) {
255
           var articlelist = response.data.data.articlelists;
257
           var articlelist = response.data.data.articlelists;
256
           this.Articlelist = response.data.data.articlelists;
258
           this.Articlelist = response.data.data.articlelists;
257
-          console.log("文章列表", this.Articlelist);
259
+          console.log("文章列表", this.Articlelist);  
258
         }
260
         }
259
       });
261
       });
260
     },
262
     },
359
     },
361
     },
360
 
362
 
361
     CallPhone(linktype, address,orgid) {
363
     CallPhone(linktype, address,orgid) {
364
+
362
       if (linktype == "2") {
365
       if (linktype == "2") {
363
         this.$router.push({
366
         this.$router.push({
364
           path:"/contactus",
367
           path:"/contactus",
373
       if (linktype == "4") {
376
       if (linktype == "4") {
374
         // window.location.href = address;
377
         // window.location.href = address;
375
         this.$router.push({
378
         this.$router.push({
376
-          path:"custom",
379
+          path:"/custom",
377
           query:{
380
           query:{
378
             orgid:orgid,
381
             orgid:orgid,
379
           }
382
           }

+ 7 - 1
src/scrm_pages/newsDetail/newsDetail.vue View File

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
      <div class="video" v-show="videoshow">            
5
      <div class="video" v-show="videoshow">            
6
           <video id="example_video_1" class="video-js vjs-default-skin"
6
           <video id="example_video_1" class="video-js vjs-default-skin"
7
-                 controls preload="auto" width="640" height="300"
7
+                 controls preload="auto" width="100%" height="100%"
8
                  poster="http://video-js.zencoder.com/oceans-clip.png"
8
                  poster="http://video-js.zencoder.com/oceans-clip.png"
9
                  data-setup='{"example_option":true}' ref="video">
9
                  data-setup='{"example_option":true}' ref="video">
10
                <source :src="articles.video_url" type='video/mp4' />
10
                <source :src="articles.video_url" type='video/mp4' />
74
   line-height: 1.375rem;
74
   line-height: 1.375rem;
75
   margin: 1.25rem 1.25rem 0 1.125rem;
75
   margin: 1.25rem 1.25rem 0 1.125rem;
76
 }
76
 }
77
+
78
+.video{
79
+  width: 100%;
80
+  height: 250px;
81
+  // border: solid 1px red;
82
+}
77
 </style>
83
 </style>