|
@@ -8,8 +8,8 @@
|
8
|
8
|
<!-- 轮播图 -->
|
9
|
9
|
<div class="modeone" v-if="item.mode_type == 1" v-show="show">
|
10
|
10
|
<mt-swipe :auto="2000" class="swipertwo">
|
11
|
|
- <mt-swipe-item v-for="it in item.images" :key="it.id">
|
12
|
|
- <img :src="it" style="width:100%;height:230px" >
|
|
11
|
+ <mt-swipe-item v-for="it in item.PatientEditpiclink" :key="it.id">
|
|
12
|
+ <img :src="it.images" style="width:100%;height:230px">
|
13
|
13
|
</mt-swipe-item>
|
14
|
14
|
</mt-swipe>
|
15
|
15
|
</div>
|
|
@@ -17,10 +17,10 @@
|
17
|
17
|
<div class="modetwo" v-if="item.mode_type == 2" v-show="show">
|
18
|
18
|
<img src="static\images\u.png" style="width:5px;height:20px;">
|
19
|
19
|
<div class="kefont"><span >{{item.title}}</span></div>
|
20
|
|
- <div class="more" @click="hispitalmore(item.id)">查看更多</div>
|
|
20
|
+ <div class="more" @click="hispitalmore(item.id,item.user_org_id)">查看更多</div>
|
21
|
21
|
<div class="logo"><img src="static\images\u216.png"></div>
|
22
|
22
|
<div class="hoscontent">
|
23
|
|
- <span v-html="item.Hospitals.introduction" id="content"></span>
|
|
23
|
+ <span v-html="item.Hospitals.introduction" id="content" ></span>
|
24
|
24
|
</div>
|
25
|
25
|
</div>
|
26
|
26
|
|
|
@@ -28,7 +28,7 @@
|
28
|
28
|
<div v-if="item.mode_type == 3" class="modethree" v-show="show">
|
29
|
29
|
<img src="static\images\u.png" style="width:5px;height:20px;">
|
30
|
30
|
<div class="kefont"><span >{{item.title}}</span></div>
|
31
|
|
- <div class="more" @click="officemore(item.id)">查看更多</div>
|
|
31
|
+ <div class="more" @click="officemore(item.id,item.user_org_id)">查看更多</div>
|
32
|
32
|
<div class="logo"><img src="static\images\u216.png"></div>
|
33
|
33
|
<div class="xcontent">
|
34
|
34
|
<span v-html="item.Offices.introduction" id="ycontent"></span>
|
|
@@ -39,7 +39,7 @@
|
39
|
39
|
<div v-if="item.mode_type == 4" class="modefour" v-show="show">
|
40
|
40
|
<img src="static\images\u.png" style="width:5px;height:20px;">
|
41
|
41
|
<div class="kefont"><span >{{item.title}}</span></div>
|
42
|
|
- <div class="more" @click="docmore(item.id)">查看更多</div>
|
|
42
|
+ <div class="more" @click="docmore(item.id,item.user_org_id)">查看更多</div>
|
43
|
43
|
<div class="logo"><img src="static\images\u216.png"></div>
|
44
|
44
|
<div class="docborde">
|
45
|
45
|
<div class="docheart" v-for="doc in item.Editdoctor" :key="doc.id">
|
|
@@ -57,13 +57,13 @@
|
57
|
57
|
<div v-if="item.mode_type == 5" class="modefive" v-show="show">
|
58
|
58
|
<img src="static\images\u.png" style="width:5px;height:20px;">
|
59
|
59
|
<div class="kefont"><span >{{item.title}}</span></div>
|
60
|
|
- <div class="more" @click="kemore(item.id)">查看更多</div>
|
|
60
|
+ <div class="more" @click="kemore(item.id,item.user_org_id)">查看更多</div>
|
61
|
61
|
<div class="logo"><img src="static\images\u216.png"></div>
|
62
|
62
|
<div class="swiperimages">
|
63
|
63
|
<div class="swiper-container swiperthree" >
|
64
|
64
|
<div class="swiper-wrapper" id="wrappertwo" >
|
65
|
|
- <div class="swiper-slide" v-for="it in item.Enviroimages" :key="it.id">
|
66
|
|
- <img :src="it.enviroimages" style="width:150px;height:140px;border-radius:5px;"/>
|
|
65
|
+ <div class="swiper-slide" v-for="itms in item.Enviroimages" :key="itms.id">
|
|
66
|
+ <img :src="itms.enviroimages" style="width:150px;height:140px;border-radius:5px"/>
|
67
|
67
|
</div>
|
68
|
68
|
</div>
|
69
|
69
|
</div>
|
|
@@ -120,7 +120,7 @@
|
120
|
120
|
</div>
|
121
|
121
|
</div>
|
122
|
122
|
</div>
|
123
|
|
- <div class="mtwo" v-show="showtwo"></div>
|
|
123
|
+ <div class="mtwo" v-show="showtwo"></div>
|
124
|
124
|
</div>
|
125
|
125
|
<!--医院介绍详情 -->
|
126
|
126
|
<div class="hosdetail" v-show="showone" v-html="hospitalform.introduction" id="target"></div>
|
|
@@ -184,7 +184,6 @@
|
184
|
184
|
</div>
|
185
|
185
|
</div>
|
186
|
186
|
</div>
|
187
|
|
-
|
188
|
187
|
</div>
|
189
|
188
|
</div>
|
190
|
189
|
</div>
|
|
@@ -207,12 +206,10 @@
|
207
|
206
|
</div>
|
208
|
207
|
</div>
|
209
|
208
|
</div>
|
210
|
|
-
|
211
|
209
|
</template>
|
212
|
210
|
|
213
|
211
|
<script>
|
214
|
|
- import {getHospitaldata,getArticlelist,getActivities,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore} from '@/api/micro/micro'
|
215
|
|
-//import { getHospitaldata, } from '@/api/micro/micro'
|
|
212
|
+import {getHospitaldata,getArticlelist,getActivities,hispitalmore,officemore,docmore,kemore,articlemore,Activitiesmore} from '@/api/micro/micro'
|
216
|
213
|
import Swiper from "swiper";
|
217
|
214
|
import Vue from 'vue';
|
218
|
215
|
import { Swipe, SwipeItem } from 'mint-ui';
|
|
@@ -254,31 +251,17 @@ export default {
|
254
|
251
|
}
|
255
|
252
|
},
|
256
|
253
|
methods: {
|
257
|
|
- getHospitaldata(){
|
258
|
|
- getHospitaldata().then(response=>{
|
259
|
|
- if(response.data.state == 1){
|
260
|
|
- var str = [];
|
261
|
|
- var images = [];
|
262
|
|
- var macimages = [];
|
263
|
|
- var mactitle = [];
|
264
|
|
-
|
|
254
|
+ getHospitaldata(orgid){
|
|
255
|
+ getHospitaldata(orgid).then(response=>{
|
|
256
|
+ if(response.data.state == 1){
|
265
|
257
|
this.patientModels = response.data.data.patientModels;
|
266
|
258
|
console.log("数据是什么",this.patientModels)
|
267
|
|
- for (let index = 0; index < this.patientModels.length; index++) {
|
268
|
|
- if(this.patientModels[index].Rotation.rotation_images!=""){
|
269
|
|
- var strimages = this.patientModels[index].Rotation.rotation_images;
|
270
|
|
- var strimagess = strimages.split(',')
|
271
|
|
- str = strimagess;
|
272
|
|
- console.log("strimages",strimages)
|
273
|
|
- this.patientModels[index]["images"] = str;
|
274
|
|
- }
|
275
|
|
- }
|
276
|
259
|
}
|
277
|
260
|
})
|
278
|
261
|
},
|
279
|
262
|
|
280
|
|
- getArticlelist(){
|
281
|
|
- getArticlelist(this.Articlelist).then(response=>{
|
|
263
|
+ getArticlelist(orgid){
|
|
264
|
+ getArticlelist(orgid,this.Articlelist).then(response=>{
|
282
|
265
|
if(response.data.state ==1){
|
283
|
266
|
var articlelist = response.data.data.articlelists;
|
284
|
267
|
this.Articlelist = response.data.data.articlelists;
|
|
@@ -287,8 +270,8 @@ export default {
|
287
|
270
|
})
|
288
|
271
|
},
|
289
|
272
|
|
290
|
|
- getActivities(){
|
291
|
|
- getActivities(this.Activitieslist).then(response=>{
|
|
273
|
+ getActivities(orgid){
|
|
274
|
+ getActivities(orgid,this.Activitieslist).then(response=>{
|
292
|
275
|
if(response.data.state ==1){
|
293
|
276
|
var activity = response.data.data.activity;
|
294
|
277
|
this.Activitieslist = response.data.data.activity;
|
|
@@ -299,10 +282,11 @@ export default {
|
299
|
282
|
},
|
300
|
283
|
|
301
|
284
|
|
302
|
|
- hispitalmore(id){
|
303
|
|
- hispitalmore(id).then(response=>{
|
|
285
|
+ hispitalmore(id,orgid){
|
|
286
|
+ hispitalmore(id,orgid).then(response=>{
|
304
|
287
|
if(response.data.state ==1){
|
305
|
288
|
var hospital = response.data.data.hospital;
|
|
289
|
+ console.log("hospital",hospital)
|
306
|
290
|
this.hospitalform = response.data.data.hospital;
|
307
|
291
|
this.show = false;
|
308
|
292
|
this.showtwo = false;
|
|
@@ -313,13 +297,13 @@ export default {
|
313
|
297
|
this.showfour = false;
|
314
|
298
|
this.showfive =false;
|
315
|
299
|
this.showsix = false;
|
316
|
|
- this.showseven = false;
|
|
300
|
+ this.showseven = false;
|
317
|
301
|
}
|
318
|
302
|
})
|
319
|
303
|
},
|
320
|
304
|
|
321
|
|
- officemore(id){
|
322
|
|
- officemore(id).then(response=>{
|
|
305
|
+ officemore(id,orgid){
|
|
306
|
+ officemore(id,orgid).then(response=>{
|
323
|
307
|
if(response.data.state == 1){
|
324
|
308
|
var offices = response.data.data.offices;
|
325
|
309
|
this.officeform = response.data.data.offices;
|
|
@@ -337,8 +321,8 @@ export default {
|
337
|
321
|
})
|
338
|
322
|
},
|
339
|
323
|
|
340
|
|
- docmore(id){
|
341
|
|
- docmore(id).then(response=>{
|
|
324
|
+ docmore(id,orgid){
|
|
325
|
+ docmore(id,orgid).then(response=>{
|
342
|
326
|
if(response.data.state == 1){
|
343
|
327
|
var editdoctor = response.data.data.editdoctor;
|
344
|
328
|
this.editdocfrom = editdoctor;
|
|
@@ -356,8 +340,8 @@ export default {
|
356
|
340
|
})
|
357
|
341
|
},
|
358
|
342
|
|
359
|
|
- kemore(id){
|
360
|
|
- kemore(id).then(response=>{
|
|
343
|
+ kemore(id,orgid){
|
|
344
|
+ kemore(id,orgid).then(response=>{
|
361
|
345
|
if(response.data.state == 1){
|
362
|
346
|
var offenvironment = response.data.data.offenvironment;
|
363
|
347
|
this.keEnvironmentImages = offenvironment;
|
|
@@ -458,9 +442,12 @@ export default {
|
458
|
442
|
document.getElementById('target').removeEventListener('scroll', this.scrollToTop)
|
459
|
443
|
},
|
460
|
444
|
created(){
|
461
|
|
- this.getHospitaldata();
|
462
|
|
- this.getArticlelist();
|
463
|
|
- this.getActivities();
|
|
445
|
+ const orgid = this.$route.query.orgid;
|
|
446
|
+ console.log("机构id是",orgid)
|
|
447
|
+ this.getHospitaldata(orgid);
|
|
448
|
+ this.getArticlelist(orgid);
|
|
449
|
+ this.getActivities(orgid);
|
|
450
|
+
|
464
|
451
|
},
|
465
|
452
|
mounted(){
|
466
|
453
|
var swiper = new Swiper('.swiperone', {
|
|
@@ -567,11 +554,11 @@ export default {
|
567
|
554
|
width: 100%;
|
568
|
555
|
height: 860px;
|
569
|
556
|
overflow-y: auto;
|
570
|
|
- border: 1px solid white;
|
571
|
|
- // margin-left: 30px;
|
572
|
|
- // margin-top: 40px;
|
|
557
|
+ // border: 1px solid red;
|
|
558
|
+ // position: relative;
|
|
559
|
+ // z-index: -1;
|
573
|
560
|
}
|
574
|
|
- .yycontent{
|
|
561
|
+ .yycontent{
|
575
|
562
|
overflow: hidden;
|
576
|
563
|
text-overflow: ellipsis;
|
577
|
564
|
display: -webkit-box;
|
|
@@ -579,7 +566,7 @@ export default {
|
579
|
566
|
-webkit-box-orient: vertical
|
580
|
567
|
}
|
581
|
568
|
|
582
|
|
- .zzcontent{
|
|
569
|
+ .zzcontent{
|
583
|
570
|
overflow: hidden;
|
584
|
571
|
text-overflow: ellipsis;
|
585
|
572
|
display: -webkit-box;
|
|
@@ -628,39 +615,40 @@ export default {
|
628
|
615
|
position: absolute;
|
629
|
616
|
font-size: 14px;
|
630
|
617
|
color:black;
|
631
|
|
- margin-left: 275px;
|
|
618
|
+ margin-left: 290px;
|
632
|
619
|
margin-top: -14px;
|
633
|
620
|
}
|
634
|
621
|
.logo{
|
635
|
622
|
position: absolute;
|
636
|
|
- margin-left: 335px;
|
|
623
|
+ margin-left: 350px;
|
637
|
624
|
margin-top: -16px;
|
638
|
625
|
}
|
639
|
626
|
.hoscontent{
|
640
|
|
- height:auto!important;
|
641
|
|
- min-height:200px;
|
642
|
|
- font-size: 14px;
|
643
|
|
- overflow: hidden;
|
644
|
|
- text-overflow: ellipsis;
|
645
|
|
- display: -webkit-box;
|
646
|
|
- -webkit-line-clamp: 6;
|
647
|
|
- -webkit-box-orient: vertical;
|
648
|
|
- margin-top: 5px;
|
649
|
|
- margin-left: 5px;
|
|
627
|
+ height:auto!important;
|
|
628
|
+ min-height:200px;
|
|
629
|
+ font-size: 14px;
|
|
630
|
+ text-overflow: ellipsis;
|
|
631
|
+ display: -webkit-box;
|
|
632
|
+ -webkit-line-clamp: 6;
|
|
633
|
+ -webkit-box-orient: vertical;
|
|
634
|
+ margin-top: 5px;
|
|
635
|
+ margin-left: 5px;
|
|
636
|
+ // border: solid 1px red;
|
|
637
|
+ overflow: hidden;
|
650
|
638
|
}
|
651
|
639
|
|
652
|
|
- .xcontent{
|
653
|
|
- height:auto!important;
|
654
|
|
- min-height:200px;
|
655
|
|
- margin-top: 5px;
|
656
|
|
- margin-left: 5px;
|
657
|
|
- font-size: 14px;
|
658
|
|
- overflow: hidden;
|
659
|
|
- text-overflow: ellipsis;
|
660
|
|
- display: -webkit-box;
|
661
|
|
- -webkit-line-clamp: 6;
|
662
|
|
- -webkit-box-orient: vertical;
|
663
|
|
- }
|
|
640
|
+ .xcontent{
|
|
641
|
+ height:auto!important;
|
|
642
|
+ min-height:200px;
|
|
643
|
+ margin-top: 5px;
|
|
644
|
+ margin-left: 5px;
|
|
645
|
+ font-size: 14px;
|
|
646
|
+ overflow: hidden;
|
|
647
|
+ text-overflow: ellipsis;
|
|
648
|
+ display: -webkit-box;
|
|
649
|
+ -webkit-line-clamp: 6;
|
|
650
|
+ -webkit-box-orient: vertical;
|
|
651
|
+ }
|
664
|
652
|
|
665
|
653
|
|
666
|
654
|
.box{
|
|
@@ -757,6 +745,7 @@ export default {
|
757
|
745
|
height: 90px;
|
758
|
746
|
// border:solid 1px red;
|
759
|
747
|
margin-left: 5px;
|
|
748
|
+ overflow: hidden;
|
760
|
749
|
}
|
761
|
750
|
|
762
|
751
|
.acthead{
|
|
@@ -782,6 +771,10 @@ export default {
|
782
|
771
|
margin-left: 5px;
|
783
|
772
|
margin-top: 10px;
|
784
|
773
|
font-size: 14px;
|
|
774
|
+ text-overflow: ellipsis;
|
|
775
|
+ display: -webkit-box;
|
|
776
|
+ -webkit-line-clamp: 1;
|
|
777
|
+ -webkit-box-orient: vertical;
|
785
|
778
|
}
|
786
|
779
|
.actcomments{
|
787
|
780
|
width: 190px;
|
|
@@ -830,7 +823,7 @@ export default {
|
830
|
823
|
// border:solid 1px red;
|
831
|
824
|
margin-top: 2px;
|
832
|
825
|
margin-bottom: 5px;
|
833
|
|
- margin-left: 4px;
|
|
826
|
+ margin-left: 30px;
|
834
|
827
|
}
|
835
|
828
|
#macimgtwo{
|
836
|
829
|
width:58px;
|
|
@@ -840,7 +833,7 @@ export default {
|
840
|
833
|
// overflow:hidden;
|
841
|
834
|
// border: solid 1px red;
|
842
|
835
|
text-align: center;
|
843
|
|
- margin-left: -1px;
|
|
836
|
+ margin-left: 22px;
|
844
|
837
|
}
|
845
|
838
|
|
846
|
839
|
.mac{
|
|
@@ -1001,7 +994,7 @@ export default {
|
1001
|
994
|
width: 100%;
|
1002
|
995
|
height: 100%;
|
1003
|
996
|
border:solid 1px white;
|
1004
|
|
- }
|
|
997
|
+ }
|
1005
|
998
|
|
1006
|
999
|
.swiperimages{
|
1007
|
1000
|
width: 100%;
|
|
@@ -1139,5 +1132,6 @@ export default {
|
1139
|
1132
|
margin-left: 100px;
|
1140
|
1133
|
margin-top: 70px;
|
1141
|
1134
|
}
|
|
1135
|
+
|
1142
|
1136
|
|
1143
|
1137
|
</style>
|