|
@@ -1,115 +1,125 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="page_home">
|
3
|
|
-
|
4
|
3
|
<div class="swiper-slide">
|
5
|
|
- <div v-for="item in this.patientModels" :key="item.id">
|
6
|
|
- <!-- 轮播图 -->
|
7
|
|
- <div class="banner" v-if="item.mode_type == 1">
|
8
|
|
- <div class="swiper-container bannerSwiper" >
|
9
|
|
- <div class="swiper-wrapper">
|
10
|
|
- <div class="swiper-slide" v-for="it in item.PatientEditpiclink" :key="it.id">
|
11
|
|
- <img class="imgtwo" :src="it.images" />
|
|
4
|
+ <div v-for="item in this.patientModels" :key="item.id">
|
|
5
|
+ <!-- 轮播图 -->
|
|
6
|
+ <div class="banner" v-if="item.mode_type == 1">
|
|
7
|
+ <div class="swiper-container bannerSwiper">
|
|
8
|
+ <div class="swiper-wrapper">
|
|
9
|
+ <div class="swiper-slide" v-for="it in item.PatientEditpiclink" :key="it.id">
|
|
10
|
+ <img class="imgtwo" :src="it.images" />
|
|
11
|
+ </div>
|
12
|
12
|
</div>
|
|
13
|
+ <!-- 如果需要分页器 -->
|
|
14
|
+ <div class="swiper-pagination"></div>
|
13
|
15
|
</div>
|
14
|
|
- <!-- 如果需要分页器 -->
|
15
|
|
- <div class="swiper-pagination"></div>
|
16
|
16
|
</div>
|
17
|
|
- </div>
|
18
|
17
|
|
19
|
|
- <!-- 魔方导航 -->
|
20
|
|
- <div class="btnList" v-if="item.mode_type== 8" >
|
21
|
|
- <div class="btnOne" v-for="it in item.Editmargin" :key="it.id">
|
22
|
|
- <div>
|
23
|
|
- <img :src="it.margimage" alt />
|
24
|
|
- </div>
|
25
|
|
- <div>
|
26
|
|
- <p class="title">{{it.margtitle}}</p>
|
|
18
|
+ <!-- 魔方导航 -->
|
|
19
|
+ <div class="btnList" v-if="item.mode_type== 8">
|
|
20
|
+ <div class="btnOne" v-for="it in item.Editmargin" :key="it.id">
|
|
21
|
+ <div>
|
|
22
|
+ <img :src="it.margimage" alt />
|
|
23
|
+ </div>
|
|
24
|
+ <div>
|
|
25
|
+ <p class="title">{{it.margtitle}}</p>
|
|
26
|
+ </div>
|
27
|
27
|
</div>
|
28
|
28
|
</div>
|
29
|
|
- </div>
|
30
|
|
-
|
31
|
29
|
|
32
|
|
- <!-- 文章列表 -->
|
33
|
|
- <div class="dynamic" v-if="item.mode_type == 6">
|
34
|
|
- <div class="common_title">
|
35
|
|
- <div class="one"></div>
|
36
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
37
|
|
- <div class="more" @click="articlemore(item.id,item.user_org_id)">
|
38
|
|
- <p>查看更多 <i class="iconfont"></i></p>
|
39
|
|
- </div>
|
40
|
|
- </div>
|
41
|
|
- <div class="content">
|
42
|
|
- <div class="contentOne" v-for="it in Articlelist" :key="it.id">
|
43
|
|
- <div class="img">
|
44
|
|
- <img :src="it.imgs" style="width:100%;height:100%" alt/>
|
|
30
|
+ <!-- 文章列表 -->
|
|
31
|
+ <div class="dynamic" v-if="item.mode_type == 6">
|
|
32
|
+ <div class="common_title">
|
|
33
|
+ <div class="one"></div>
|
|
34
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
35
|
+ <div class="more" @click="articlemore(item.id,item.user_org_id)">
|
|
36
|
+ <p>
|
|
37
|
+ 查看更多
|
|
38
|
+ <i class="iconfont"></i>
|
|
39
|
+ </p>
|
45
|
40
|
</div>
|
46
|
|
- <div class="detail">
|
47
|
|
- <p class="detailTitle">{{it.title}}</p>
|
48
|
|
- <!-- <p class="detailMessage"></p> -->
|
|
41
|
+ </div>
|
|
42
|
+ <div class="content">
|
|
43
|
+ <div class="contentOne" v-for="it in Articlelist" :key="it.id">
|
|
44
|
+ <div class="img">
|
|
45
|
+ <img :src="it.imgs" style="width:100%;height:100%" alt />
|
|
46
|
+ </div>
|
|
47
|
+ <div class="detail">
|
|
48
|
+ <p class="detailTitle">{{it.title}}</p>
|
|
49
|
+ <!-- <p class="detailMessage"></p> -->
|
|
50
|
+ </div>
|
49
|
51
|
</div>
|
50
|
52
|
</div>
|
51
|
53
|
</div>
|
52
|
|
- </div>
|
53
|
54
|
|
54
|
|
-
|
55
|
|
- <!-- 医院介绍 -->
|
56
|
|
- <div class="common" v-if="item.mode_type == 2">
|
57
|
|
- <div class="common_title">
|
58
|
|
- <div class="one"></div>
|
59
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
60
|
|
- <div class="more" @click="hispitalmore(item.id,item.user_org_id)">
|
61
|
|
- <p> 查看更多 <i class="iconfont"></i></p>
|
|
55
|
+ <!-- 医院介绍 -->
|
|
56
|
+ <div class="common" v-if="item.mode_type == 2">
|
|
57
|
+ <div class="common_title">
|
|
58
|
+ <div class="one"></div>
|
|
59
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
60
|
+ <div class="more" @click="hispitalmore(item.id,item.user_org_id)">
|
|
61
|
+ <p>
|
|
62
|
+ 查看更多
|
|
63
|
+ <i class="iconfont"></i>
|
|
64
|
+ </p>
|
|
65
|
+ </div>
|
62
|
66
|
</div>
|
63
|
|
- </div>
|
64
|
|
- <div class="commonBox" v-html="item.Hospitals.introduction">
|
65
|
|
- <!-- <div class="commonImg">
|
|
67
|
+ <div class="commonBox">
|
|
68
|
+ <!-- <div class="commonImg">
|
66
|
69
|
<img src="static\images\img2.png" alt />
|
67
|
|
- </div> -->
|
68
|
|
- <!-- <div class="commonMessage" ></div> -->
|
|
70
|
+ </div>
|
|
71
|
+ <div class="commonMessage">
|
|
72
|
+ 深圳市南山区人民医院(深圳市第六人民医院),坐落于深圳经济特区西部南头半岛中心区,是深圳市第四家三级甲等医院暨南山区区域医疗中心。深圳市第四家三级甲等医院
|
|
73
|
+ 深圳市南山区人民医院(深圳市第六人民医院),坐落于深圳经济特区西部南头半岛中心区,是深圳市第四家三级甲等医院暨南山区区域医疗中心。深圳市第四家三级甲等医院...
|
|
74
|
+ </div>
|
|
75
|
+ </div>-->
|
|
76
|
+ <div class="commonMessage" v-html="item.Hospitals.introduction"></div>
|
|
77
|
+ </div>
|
69
|
78
|
</div>
|
70
|
|
- </div>
|
71
|
|
-
|
72
|
79
|
|
73
|
|
- <!-- 科室介绍 -->
|
74
|
|
- <div class="common" v-if="item.mode_type == 3">
|
75
|
|
- <div class="common_title">
|
76
|
|
- <div class="one"></div>
|
77
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
78
|
|
- <div class="more" @click="officemore(item.id,item.user_org_id)">
|
79
|
|
- <p>查看更多<i class="iconfont"></i> </p>
|
|
80
|
+ <!-- 科室介绍 -->
|
|
81
|
+ <div class="common" v-if="item.mode_type == 3">
|
|
82
|
+ <div class="common_title">
|
|
83
|
+ <div class="one"></div>
|
|
84
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
85
|
+ <div class="more" @click="officemore(item.id,item.user_org_id)">
|
|
86
|
+ <p>
|
|
87
|
+ 查看更多
|
|
88
|
+ <i class="iconfont"></i>
|
|
89
|
+ </p>
|
|
90
|
+ </div>
|
80
|
91
|
</div>
|
81
|
|
- </div>
|
82
|
|
- <div class="commonBox" v-html="item.Offices.introduction">
|
83
|
|
- <!-- <div class="commonImg">
|
|
92
|
+ <div class="commonBox">
|
|
93
|
+ <!-- <div class="commonImg">
|
84
|
94
|
<img src="static\images\img2.png" alt />
|
85
|
|
- </div> -->
|
86
|
|
- <!-- <div class="commonMessage" ></div> -->
|
87
|
|
- </div>
|
88
|
|
- </div>
|
89
|
|
-
|
90
|
|
- <!-- 医护团队 -->
|
91
|
|
- <div class="dynamic" v-if="item.mode_type == 4">
|
92
|
|
- <div class="common_title">
|
93
|
|
- <div class="one"></div>
|
94
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
95
|
|
- <div class="more" @click="docmore(item.id,item.user_org_id)">
|
96
|
|
- <p>
|
97
|
|
- 查看更多
|
98
|
|
- <i class="iconfont"></i>
|
99
|
|
- </p>
|
|
95
|
+ </div>-->
|
|
96
|
+ <div class="commonMessage" v-html="item.Offices.introduction"></div>
|
100
|
97
|
</div>
|
101
|
98
|
</div>
|
102
|
|
- <div class="content" @click="docmore(item.id,item.user_org_id)" >
|
103
|
|
- <div class="contentOne" v-for="doc in item.Editdoctor" :key="doc.id">
|
104
|
|
- <div class="img">
|
105
|
|
- <img :src="doc.dochead" style="width:100%;height:100%" alt />
|
106
|
|
- </div>
|
107
|
|
- <div class="detail">
|
108
|
|
- <p class="detailTitle">{{doc.doc_name}}</p>
|
109
|
|
- <p class="detailMessage" v-html="doc.docintroduction"></p>
|
|
99
|
+
|
|
100
|
+ <!-- 医护团队 -->
|
|
101
|
+ <div class="dynamic" v-if="item.mode_type == 4">
|
|
102
|
+ <div class="common_title">
|
|
103
|
+ <div class="one"></div>
|
|
104
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
105
|
+ <div class="more" @click="docmore(item.id,item.user_org_id)">
|
|
106
|
+ <p>
|
|
107
|
+ 查看更多
|
|
108
|
+ <i class="iconfont"></i>
|
|
109
|
+ </p>
|
110
|
110
|
</div>
|
111
|
111
|
</div>
|
112
|
|
- <!-- <div class="contentOne">
|
|
112
|
+ <div class="content">
|
|
113
|
+ <div class="contentOne" v-for="doc in item.Editdoctor" :key="doc.id">
|
|
114
|
+ <div class="img">
|
|
115
|
+ <img :src="doc.dochead" style="width:100%;height:100%" alt />
|
|
116
|
+ </div>
|
|
117
|
+ <div class="detail">
|
|
118
|
+ <p class="detailTitle">{{doc.doc_name}}</p>
|
|
119
|
+ <p class="detailMessage" v-html="doc.docintroduction"></p>
|
|
120
|
+ </div>
|
|
121
|
+ </div>
|
|
122
|
+ <!-- <div class="contentOne">
|
113
|
123
|
<div class="img">
|
114
|
124
|
<img src="static\images\img1.jpg" alt />
|
115
|
125
|
</div>
|
|
@@ -117,55 +127,53 @@
|
117
|
127
|
<p class="detailTitle">欧巧漫</p>
|
118
|
128
|
<p class="detailMessage">苏安,女,主任医师,教授,妇产科主任,湖南省医学会理事、湖南省肿瘤学会委员瘤学肿瘤学会员......</p>
|
119
|
129
|
</div>
|
120
|
|
- </div> -->
|
|
130
|
+ </div>-->
|
|
131
|
+ </div>
|
121
|
132
|
</div>
|
122
|
|
- </div>
|
123
|
|
-
|
124
|
133
|
|
125
|
|
- <!-- 科室环境 -->
|
126
|
|
- <div class="dynamic" v-if="item.mode_type == 5">
|
127
|
|
- <div class="common_title">
|
128
|
|
- <div class="one"></div>
|
129
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
130
|
|
- <!-- <div class="more">
|
|
134
|
+ <!-- 科室环境 -->
|
|
135
|
+ <div class="dynamic" v-if="item.mode_type == 5">
|
|
136
|
+ <div class="common_title">
|
|
137
|
+ <div class="one"></div>
|
|
138
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
139
|
+ <!-- <div class="more">
|
131
|
140
|
<p>
|
132
|
141
|
查看更多
|
133
|
142
|
<i class="iconfont"></i>
|
134
|
143
|
</p>
|
135
|
|
- </div> -->
|
136
|
|
- </div>
|
137
|
|
- <div class="imgs">
|
138
|
|
- <div class="swiper-container imgSwiper">
|
139
|
|
- <div class="swiper-wrapper">
|
140
|
|
- <div class="swiper-slide carousel" v-for="itms in item.Enviroimages" :key="itms.id">
|
141
|
|
- <img class="img" :src="itms.enviroimages" preview="1" />
|
|
144
|
+ </div>-->
|
|
145
|
+ </div>
|
|
146
|
+ <div class="imgs">
|
|
147
|
+ <div class="swiper-container imgSwiper">
|
|
148
|
+ <div class="swiper-wrapper">
|
|
149
|
+ <div class="swiper-slide carousel" v-for="itms in item.Enviroimages" :key="itms.id">
|
|
150
|
+ <img class="img" :src="itms.enviroimages" :preview="itms.modeid" />
|
|
151
|
+ </div>
|
142
|
152
|
</div>
|
143
|
153
|
</div>
|
144
|
154
|
</div>
|
145
|
155
|
</div>
|
146
|
|
- </div>
|
147
|
|
-
|
148
|
156
|
|
149
|
|
- <!-- 医院活动 -->
|
150
|
|
- <div class="dynamic bottom" v-if="item.mode_type == 7">
|
151
|
|
- <div class="common_title">
|
152
|
|
- <div class="one"></div>
|
153
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
154
|
|
- <div class="more" @click="Activitiesmore(item.id,item.user_org_id)">
|
155
|
|
- <p>
|
156
|
|
- 查看更多
|
157
|
|
- <i class="iconfont"></i>
|
158
|
|
- </p>
|
159
|
|
- </div>
|
160
|
|
- </div>
|
161
|
|
- <div class="content" @click="Activitiesmore(item.id,item.user_org_id)">
|
162
|
|
- <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
|
163
|
|
- <div class="img">
|
164
|
|
- <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
|
|
157
|
+ <!-- 医院活动 -->
|
|
158
|
+ <div class="dynamic bottom" v-if="item.mode_type == 7">
|
|
159
|
+ <div class="common_title">
|
|
160
|
+ <div class="one"></div>
|
|
161
|
+ <div class="dynamicTxt">{{item.title}}</div>
|
|
162
|
+ <div class="more" @click="Activitiesmore(item.id,item.user_org_id)">
|
|
163
|
+ <p>
|
|
164
|
+ 查看更多
|
|
165
|
+ <i class="iconfont"></i>
|
|
166
|
+ </p>
|
165
|
167
|
</div>
|
166
|
|
- <div class="detail">
|
167
|
|
- <p class="detailTitle">{{it.title}}</p>
|
168
|
|
- <!-- <div class="detailBox">
|
|
168
|
+ </div>
|
|
169
|
+ <div class="content">
|
|
170
|
+ <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
|
|
171
|
+ <div class="img">
|
|
172
|
+ <img :src="it.poster_photo" style="widht:100%;height:100%" alt />
|
|
173
|
+ </div>
|
|
174
|
+ <div class="detail">
|
|
175
|
+ <p class="detailTitle">{{it.title}}</p>
|
|
176
|
+ <!-- <div class="detailBox">
|
169
|
177
|
<div class="activityTime">
|
170
|
178
|
<p>
|
171
|
179
|
7月28日 08:30开始
|
|
@@ -175,13 +183,12 @@
|
175
|
183
|
<div class="people">
|
176
|
184
|
<p>100人已报名</p>
|
177
|
185
|
</div>
|
178
|
|
- </div> -->
|
|
186
|
+ </div>-->
|
|
187
|
+ </div>
|
179
|
188
|
</div>
|
180
|
189
|
</div>
|
181
|
190
|
</div>
|
182
|
191
|
</div>
|
183
|
|
-
|
184
|
|
- </div>
|
185
|
192
|
</div>
|
186
|
193
|
<!-- tab切换 -->
|
187
|
194
|
<div class="tabs">
|
|
@@ -198,14 +205,19 @@
|
198
|
205
|
|
199
|
206
|
<script>
|
200
|
207
|
import Swiper from "swiper";
|
201
|
|
-import { getHospitaldata,getArticlelist,getActivities,getDefalutNavigationData } from '@/api/micro/micro'
|
|
208
|
+import {
|
|
209
|
+ getHospitaldata,
|
|
210
|
+ getArticlelist,
|
|
211
|
+ getActivities,
|
|
212
|
+ getDefalutNavigationData
|
|
213
|
+} from "@/api/micro/micro";
|
202
|
214
|
export default {
|
203
|
215
|
data() {
|
204
|
216
|
return {
|
205
|
217
|
bannerList: [],
|
206
|
|
- patientModels:[],
|
207
|
|
- Articlelist:[],
|
208
|
|
- navigationdata:[],
|
|
218
|
+ patientModels: [],
|
|
219
|
+ Articlelist: [],
|
|
220
|
+ navigationdata: []
|
209
|
221
|
};
|
210
|
222
|
},
|
211
|
223
|
methods: {
|
|
@@ -224,106 +236,110 @@ export default {
|
224
|
236
|
slidesPerView: 2
|
225
|
237
|
});
|
226
|
238
|
},
|
227
|
|
- getHospitaldata(orgid){
|
228
|
|
- getHospitaldata(orgid).then(response=>{
|
229
|
|
- if(response.data.state == 1){
|
230
|
|
- this.patientModels = response.data.data.patientModels;
|
231
|
|
- console.log("数据是什么",this.patientModels)
|
232
|
|
- }
|
233
|
|
- })
|
|
239
|
+ getHospitaldata(orgid) {
|
|
240
|
+ getHospitaldata(orgid).then(response => {
|
|
241
|
+ if (response.data.state == 1) {
|
|
242
|
+ this.patientModels = response.data.data.patientModels;
|
|
243
|
+ console.log("数据是什么", this.patientModels);
|
|
244
|
+ }
|
|
245
|
+ });
|
|
246
|
+ },
|
|
247
|
+ getArticlelist(orgid) {
|
|
248
|
+ getArticlelist(orgid, this.Articlelist).then(response => {
|
|
249
|
+ if (response.data.state == 1) {
|
|
250
|
+ var articlelist = response.data.data.articlelists;
|
|
251
|
+ this.Articlelist = response.data.data.articlelists;
|
|
252
|
+ console.log("文章列表", this.Articlelist);
|
|
253
|
+ }
|
|
254
|
+ });
|
234
|
255
|
},
|
235
|
|
- getArticlelist(orgid){
|
236
|
|
- getArticlelist(orgid,this.Articlelist).then(response=>{
|
237
|
|
- if(response.data.state ==1){
|
238
|
|
- var articlelist = response.data.data.articlelists;
|
239
|
|
- this.Articlelist = response.data.data.articlelists;
|
240
|
|
- console.log("文章列表",this.Articlelist);
|
241
|
|
- }
|
242
|
|
- })
|
243
|
|
- },
|
244
|
|
- getActivities(orgid){
|
245
|
|
- getActivities(orgid,this.Activitieslist).then(response=>{
|
246
|
|
- if(response.data.state ==1){
|
247
|
|
- var activity = response.data.data.activity;
|
248
|
|
- this.Activitieslist = response.data.data.activity;
|
249
|
|
- console.log("活动列表",activity);
|
250
|
|
- console.log(this.Activitieslist)
|
|
256
|
+ getActivities(orgid) {
|
|
257
|
+ getActivities(orgid, this.Activitieslist).then(response => {
|
|
258
|
+ if (response.data.state == 1) {
|
|
259
|
+ var activity = response.data.data.activity;
|
|
260
|
+ this.Activitieslist = response.data.data.activity;
|
|
261
|
+ console.log("活动列表", activity);
|
|
262
|
+ console.log(this.Activitieslist);
|
251
|
263
|
}
|
252
|
|
- })
|
253
|
|
- },
|
254
|
|
- hispitalmore(id,orgid){
|
255
|
|
- this.$router.push({
|
256
|
|
- path:'/hospitalIntroduction',
|
257
|
|
- query:{
|
258
|
|
- id:id,
|
259
|
|
- orgid,orgid,
|
260
|
|
- }
|
261
|
|
- })
|
262
|
|
- },
|
|
264
|
+ });
|
|
265
|
+ },
|
|
266
|
+ hispitalmore(id, orgid) {
|
|
267
|
+ this.$router.push({
|
|
268
|
+ path: "/hospitalIntroduction",
|
|
269
|
+ query: {
|
|
270
|
+ id: id,
|
|
271
|
+ orgid,
|
|
272
|
+ orgid
|
|
273
|
+ }
|
|
274
|
+ });
|
|
275
|
+ },
|
263
|
276
|
|
264
|
|
- officemore(id,orgid){
|
265
|
|
- this.$router.push({
|
266
|
|
- path:'/officeIntroduction',
|
267
|
|
- query:{
|
268
|
|
- id:id,
|
269
|
|
- orgid,orgid,
|
270
|
|
- }
|
271
|
|
- })
|
272
|
|
- },
|
273
|
|
- docmore(id,orgid){
|
274
|
|
- this.$router.push({
|
275
|
|
- path:'/medicalTeam',
|
276
|
|
- query:{
|
277
|
|
- id:id,
|
278
|
|
- orgid,orgid,
|
279
|
|
- }
|
280
|
|
- })
|
281
|
|
- },
|
282
|
|
- articlemore(id,orgid){
|
283
|
|
- this.$router.push({
|
284
|
|
- path:'/news',
|
285
|
|
- query:{
|
286
|
|
- id:id,
|
287
|
|
- orgid,orgid,
|
288
|
|
- }
|
289
|
|
- })
|
290
|
|
- },
|
291
|
|
- Activitiesmore(id,orgid){
|
292
|
|
- this.$router.push({
|
293
|
|
- path:'/activity',
|
294
|
|
- query:{
|
295
|
|
- id:id,
|
296
|
|
- orgid,orgid,
|
297
|
|
- }
|
298
|
|
- })
|
299
|
|
- },
|
300
|
|
- getDefalutNavigationData(orgid){
|
301
|
|
- getDefalutNavigationData(orgid).then(response=>{
|
302
|
|
- if(response.data.state == 1){
|
303
|
|
- var navigation = response.data.data.navigation;
|
304
|
|
- // console.log("navigation是什么",navigation)
|
305
|
|
- this.navigationdata = navigation;
|
306
|
|
- }
|
307
|
|
- })
|
308
|
|
- }
|
|
277
|
+ officemore(id, orgid) {
|
|
278
|
+ this.$router.push({
|
|
279
|
+ path: "/officeIntroduction",
|
|
280
|
+ query: {
|
|
281
|
+ id: id,
|
|
282
|
+ orgid,
|
|
283
|
+ orgid
|
|
284
|
+ }
|
|
285
|
+ });
|
|
286
|
+ },
|
|
287
|
+ docmore(id, orgid) {
|
|
288
|
+ this.$router.push({
|
|
289
|
+ path: "/medicalTeam",
|
|
290
|
+ query: {
|
|
291
|
+ id: id,
|
|
292
|
+ orgid,
|
|
293
|
+ orgid
|
|
294
|
+ }
|
|
295
|
+ });
|
|
296
|
+ },
|
|
297
|
+ articlemore(id, orgid) {
|
|
298
|
+ this.$router.push({
|
|
299
|
+ path: "/news",
|
|
300
|
+ query: {
|
|
301
|
+ id: id,
|
|
302
|
+ orgid,
|
|
303
|
+ orgid
|
|
304
|
+ }
|
|
305
|
+ });
|
|
306
|
+ },
|
|
307
|
+ Activitiesmore(id, orgid) {
|
|
308
|
+ this.$router.push({
|
|
309
|
+ path: "/activity",
|
|
310
|
+ query: {
|
|
311
|
+ id: id,
|
|
312
|
+ orgid,
|
|
313
|
+ orgid
|
|
314
|
+ }
|
|
315
|
+ });
|
|
316
|
+ },
|
|
317
|
+ getDefalutNavigationData(orgid) {
|
|
318
|
+ getDefalutNavigationData(orgid).then(response => {
|
|
319
|
+ if (response.data.state == 1) {
|
|
320
|
+ var navigation = response.data.data.navigation;
|
|
321
|
+ console.log("navigation是什么", navigation);
|
|
322
|
+ this.navigationdata = navigation;
|
|
323
|
+ }
|
|
324
|
+ });
|
|
325
|
+ }
|
309
|
326
|
},
|
310
|
|
- created(){
|
311
|
|
- const orgid = this.$route.query.orgid;
|
312
|
|
- console.log("机构id是",orgid);
|
313
|
|
- this.getHospitaldata(orgid);
|
314
|
|
- this.getArticlelist(orgid);
|
315
|
|
- this.getActivities(orgid);
|
316
|
|
- this.getDefalutNavigationData(orgid);
|
|
327
|
+ created() {
|
|
328
|
+ const orgid = this.$route.query.orgid;
|
|
329
|
+ console.log("机构id是", orgid);
|
|
330
|
+ this.getHospitaldata(orgid);
|
|
331
|
+ this.getArticlelist(orgid);
|
|
332
|
+ this.getActivities(orgid);
|
|
333
|
+ this.getDefalutNavigationData(orgid);
|
317
|
334
|
},
|
318
|
335
|
mounted() {
|
319
|
336
|
this.initSwiper();
|
320
|
337
|
},
|
321
|
338
|
|
322
|
|
-
|
323
|
339
|
updated() {
|
324
|
340
|
this.initSwiper();
|
|
341
|
+ this.$previewRefresh();
|
325
|
342
|
}
|
326
|
|
-
|
327
|
343
|
};
|
328
|
344
|
</script>
|
329
|
345
|
|
|
@@ -363,9 +379,9 @@ export default {
|
363
|
379
|
width: 100px;
|
364
|
380
|
height: 100px;
|
365
|
381
|
}
|
366
|
|
-.imgtwo{
|
|
382
|
+.imgtwo {
|
367
|
383
|
width: 100%;
|
368
|
|
- height: 100%
|
|
384
|
+ height: 100%;
|
369
|
385
|
}
|
370
|
386
|
.btnList {
|
371
|
387
|
display: flex;
|
|
@@ -469,34 +485,34 @@ export default {
|
469
|
485
|
font-size: 15px;
|
470
|
486
|
margin-top: 0.5rem;
|
471
|
487
|
width: 12.6875rem;
|
472
|
|
- height: 1.0rem;
|
|
488
|
+ height: 1rem;
|
|
489
|
+ line-height: 1rem;
|
473
|
490
|
font-size: 0.9375rem;
|
474
|
491
|
font-weight: 600;
|
475
|
492
|
color: rgba(7, 18, 40, 1);
|
476
|
493
|
overflow: hidden;
|
477
|
494
|
text-overflow: ellipsis;
|
478
|
|
- display: -webkit-box;
|
|
495
|
+ display: -webkit-box;
|
479
|
496
|
-webkit-line-clamp: 1;
|
480
|
497
|
-webkit-box-orient: vertical;
|
481
|
498
|
}
|
482
|
499
|
.detailMessage {
|
483
|
500
|
margin-top: 0.25rem;
|
484
|
501
|
width: 13.25rem;
|
485
|
|
- height: 3.4rem;
|
|
502
|
+ height: 3.625rem;
|
486
|
503
|
font-size: 0.75rem;
|
487
|
504
|
font-weight: 400;
|
488
|
505
|
color: rgba(155, 155, 155, 1);
|
489
|
506
|
line-height: 1.125rem;
|
490
|
|
- overflow: hidden;
|
491
|
|
- text-overflow: ellipsis;
|
492
|
|
- display: -webkit-box;
|
|
507
|
+ overflow: hidden;
|
|
508
|
+ text-overflow: ellipsis;
|
|
509
|
+ display: -webkit-box;
|
493
|
510
|
-webkit-line-clamp: 1;
|
494
|
511
|
-webkit-box-orient: vertical;
|
495
|
|
- // border: solid 1px red;
|
|
512
|
+ // border: solid 1px red;
|
496
|
513
|
}
|
497
|
|
- // border: solid 1px red;
|
498
|
514
|
}
|
499
|
|
-
|
|
515
|
+ // border: solid 1px red;
|
500
|
516
|
}
|
501
|
517
|
.common {
|
502
|
518
|
margin-top: 1.875rem;
|
|
@@ -504,18 +520,13 @@ export default {
|
504
|
520
|
margin: auto;
|
505
|
521
|
margin-top: 1.25rem;
|
506
|
522
|
width: 20.875rem;
|
507
|
|
- height: 16rem;
|
|
523
|
+ height: 20.3125rem;
|
508
|
524
|
background: rgba(255, 255, 255, 1);
|
509
|
525
|
box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
|
510
|
526
|
border-radius: 16px;
|
511
|
527
|
padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
|
512
|
|
- overflow: hidden;
|
|
528
|
+ overflow: hidden;
|
513
|
529
|
text-overflow: ellipsis;
|
514
|
|
- display: -webkit-box;
|
515
|
|
- -webkit-line-clamp: 8;
|
516
|
|
- -webkit-box-orient: vertical;
|
517
|
|
- // border: solid 1px red;
|
518
|
|
-
|
519
|
530
|
}
|
520
|
531
|
.commonImg {
|
521
|
532
|
width: 18.4375rem;
|
|
@@ -530,8 +541,7 @@ export default {
|
530
|
541
|
color: rgba(60, 60, 60, 1);
|
531
|
542
|
line-height: 1.375rem;
|
532
|
543
|
// border: solid 1px red;
|
533
|
|
- overflow: hidden;
|
534
|
|
- text-overflow: ellipsis;
|
|
544
|
+
|
535
|
545
|
display: -webkit-box;
|
536
|
546
|
-webkit-line-clamp: 8;
|
537
|
547
|
-webkit-box-orient: vertical;
|