|
@@ -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,56 +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
|
|
-
|
144
|
153
|
</div>
|
145
|
154
|
</div>
|
146
|
155
|
</div>
|
147
|
|
- </div>
|
148
|
|
-
|
149
|
156
|
|
150
|
|
- <!-- 医院活动 -->
|
151
|
|
- <div class="dynamic bottom" v-if="item.mode_type == 7">
|
152
|
|
- <div class="common_title">
|
153
|
|
- <div class="one"></div>
|
154
|
|
- <div class="dynamicTxt">{{item.title}}</div>
|
155
|
|
- <div class="more" @click="Activitiesmore(item.id,item.user_org_id)">
|
156
|
|
- <p>
|
157
|
|
- 查看更多
|
158
|
|
- <i class="iconfont"></i>
|
159
|
|
- </p>
|
160
|
|
- </div>
|
161
|
|
- </div>
|
162
|
|
- <div class="content" @click="Activitiesmore(item.id,item.user_org_id)">
|
163
|
|
- <div class="contentOne" v-for="it in Activitieslist" :key="it.id">
|
164
|
|
- <div class="img">
|
165
|
|
- <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>
|
166
|
167
|
</div>
|
167
|
|
- <div class="detail">
|
168
|
|
- <p class="detailTitle">{{it.title}}</p>
|
169
|
|
- <!-- <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">
|
170
|
177
|
<div class="activityTime">
|
171
|
178
|
<p>
|
172
|
179
|
7月28日 08:30开始
|
|
@@ -176,13 +183,12 @@
|
176
|
183
|
<div class="people">
|
177
|
184
|
<p>100人已报名</p>
|
178
|
185
|
</div>
|
179
|
|
- </div> -->
|
|
186
|
+ </div>-->
|
|
187
|
+ </div>
|
180
|
188
|
</div>
|
181
|
189
|
</div>
|
182
|
190
|
</div>
|
183
|
191
|
</div>
|
184
|
|
-
|
185
|
|
- </div>
|
186
|
192
|
</div>
|
187
|
193
|
<!-- tab切换 -->
|
188
|
194
|
<div class="tabs">
|
|
@@ -199,14 +205,19 @@
|
199
|
205
|
|
200
|
206
|
<script>
|
201
|
207
|
import Swiper from "swiper";
|
202
|
|
-import { getHospitaldata,getArticlelist,getActivities,getDefalutNavigationData } from '@/api/micro/micro'
|
|
208
|
+import {
|
|
209
|
+ getHospitaldata,
|
|
210
|
+ getArticlelist,
|
|
211
|
+ getActivities,
|
|
212
|
+ getDefalutNavigationData
|
|
213
|
+} from "@/api/micro/micro";
|
203
|
214
|
export default {
|
204
|
215
|
data() {
|
205
|
216
|
return {
|
206
|
217
|
bannerList: [],
|
207
|
|
- patientModels:[],
|
208
|
|
- Articlelist:[],
|
209
|
|
- navigationdata:[],
|
|
218
|
+ patientModels: [],
|
|
219
|
+ Articlelist: [],
|
|
220
|
+ navigationdata: []
|
210
|
221
|
};
|
211
|
222
|
},
|
212
|
223
|
methods: {
|
|
@@ -225,106 +236,110 @@ export default {
|
225
|
236
|
slidesPerView: 2
|
226
|
237
|
});
|
227
|
238
|
},
|
228
|
|
- getHospitaldata(orgid){
|
229
|
|
- getHospitaldata(orgid).then(response=>{
|
230
|
|
- if(response.data.state == 1){
|
231
|
|
- this.patientModels = response.data.data.patientModels;
|
232
|
|
- console.log("数据是什么",this.patientModels)
|
233
|
|
- }
|
234
|
|
- })
|
|
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
|
+ });
|
235
|
255
|
},
|
236
|
|
- getArticlelist(orgid){
|
237
|
|
- getArticlelist(orgid,this.Articlelist).then(response=>{
|
238
|
|
- if(response.data.state ==1){
|
239
|
|
- var articlelist = response.data.data.articlelists;
|
240
|
|
- this.Articlelist = response.data.data.articlelists;
|
241
|
|
- console.log("文章列表",this.Articlelist);
|
242
|
|
- }
|
243
|
|
- })
|
244
|
|
- },
|
245
|
|
- getActivities(orgid){
|
246
|
|
- getActivities(orgid,this.Activitieslist).then(response=>{
|
247
|
|
- if(response.data.state ==1){
|
248
|
|
- var activity = response.data.data.activity;
|
249
|
|
- this.Activitieslist = response.data.data.activity;
|
250
|
|
- console.log("活动列表",activity);
|
251
|
|
- 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);
|
252
|
263
|
}
|
253
|
|
- })
|
254
|
|
- },
|
255
|
|
- hispitalmore(id,orgid){
|
256
|
|
- this.$router.push({
|
257
|
|
- path:'/hospitalIntroduction',
|
258
|
|
- query:{
|
259
|
|
- id:id,
|
260
|
|
- orgid,orgid,
|
261
|
|
- }
|
262
|
|
- })
|
263
|
|
- },
|
|
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
|
+ },
|
264
|
276
|
|
265
|
|
- officemore(id,orgid){
|
266
|
|
- this.$router.push({
|
267
|
|
- path:'/officeIntroduction',
|
268
|
|
- query:{
|
269
|
|
- id:id,
|
270
|
|
- orgid,orgid,
|
271
|
|
- }
|
272
|
|
- })
|
273
|
|
- },
|
274
|
|
- docmore(id,orgid){
|
275
|
|
- this.$router.push({
|
276
|
|
- path:'/medicalTeam',
|
277
|
|
- query:{
|
278
|
|
- id:id,
|
279
|
|
- orgid,orgid,
|
280
|
|
- }
|
281
|
|
- })
|
282
|
|
- },
|
283
|
|
- articlemore(id,orgid){
|
284
|
|
- this.$router.push({
|
285
|
|
- path:'/news',
|
286
|
|
- query:{
|
287
|
|
- id:id,
|
288
|
|
- orgid,orgid,
|
289
|
|
- }
|
290
|
|
- })
|
291
|
|
- },
|
292
|
|
- Activitiesmore(id,orgid){
|
293
|
|
- this.$router.push({
|
294
|
|
- path:'/activity',
|
295
|
|
- query:{
|
296
|
|
- id:id,
|
297
|
|
- orgid,orgid,
|
298
|
|
- }
|
299
|
|
- })
|
300
|
|
- },
|
301
|
|
- getDefalutNavigationData(orgid){
|
302
|
|
- getDefalutNavigationData(orgid).then(response=>{
|
303
|
|
- if(response.data.state == 1){
|
304
|
|
- var navigation = response.data.data.navigation;
|
305
|
|
- // console.log("navigation是什么",navigation)
|
306
|
|
- this.navigationdata = navigation;
|
307
|
|
- }
|
308
|
|
- })
|
309
|
|
- }
|
|
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
|
+ }
|
310
|
326
|
},
|
311
|
|
- created(){
|
312
|
|
- const orgid = this.$route.query.orgid;
|
313
|
|
- console.log("机构id是",orgid);
|
314
|
|
- this.getHospitaldata(orgid);
|
315
|
|
- this.getArticlelist(orgid);
|
316
|
|
- this.getActivities(orgid);
|
317
|
|
- 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);
|
318
|
334
|
},
|
319
|
335
|
mounted() {
|
320
|
336
|
this.initSwiper();
|
321
|
337
|
},
|
322
|
338
|
|
323
|
|
-
|
324
|
339
|
updated() {
|
325
|
340
|
this.initSwiper();
|
|
341
|
+ this.$previewRefresh();
|
326
|
342
|
}
|
327
|
|
-
|
328
|
343
|
};
|
329
|
344
|
</script>
|
330
|
345
|
|
|
@@ -364,9 +379,9 @@ export default {
|
364
|
379
|
width: 100px;
|
365
|
380
|
height: 100px;
|
366
|
381
|
}
|
367
|
|
-.imgtwo{
|
|
382
|
+.imgtwo {
|
368
|
383
|
width: 100%;
|
369
|
|
- height: 100%
|
|
384
|
+ height: 100%;
|
370
|
385
|
}
|
371
|
386
|
.btnList {
|
372
|
387
|
display: flex;
|
|
@@ -470,34 +485,34 @@ export default {
|
470
|
485
|
font-size: 15px;
|
471
|
486
|
margin-top: 0.5rem;
|
472
|
487
|
width: 12.6875rem;
|
473
|
|
- height: 1.0rem;
|
|
488
|
+ height: 1rem;
|
|
489
|
+ line-height: 1rem;
|
474
|
490
|
font-size: 0.9375rem;
|
475
|
491
|
font-weight: 600;
|
476
|
492
|
color: rgba(7, 18, 40, 1);
|
477
|
493
|
overflow: hidden;
|
478
|
494
|
text-overflow: ellipsis;
|
479
|
|
- display: -webkit-box;
|
|
495
|
+ display: -webkit-box;
|
480
|
496
|
-webkit-line-clamp: 1;
|
481
|
497
|
-webkit-box-orient: vertical;
|
482
|
498
|
}
|
483
|
499
|
.detailMessage {
|
484
|
500
|
margin-top: 0.25rem;
|
485
|
501
|
width: 13.25rem;
|
486
|
|
- height: 3.4rem;
|
|
502
|
+ height: 3.625rem;
|
487
|
503
|
font-size: 0.75rem;
|
488
|
504
|
font-weight: 400;
|
489
|
505
|
color: rgba(155, 155, 155, 1);
|
490
|
506
|
line-height: 1.125rem;
|
491
|
|
- overflow: hidden;
|
492
|
|
- text-overflow: ellipsis;
|
493
|
|
- display: -webkit-box;
|
|
507
|
+ overflow: hidden;
|
|
508
|
+ text-overflow: ellipsis;
|
|
509
|
+ display: -webkit-box;
|
494
|
510
|
-webkit-line-clamp: 1;
|
495
|
511
|
-webkit-box-orient: vertical;
|
496
|
|
- // border: solid 1px red;
|
|
512
|
+ // border: solid 1px red;
|
497
|
513
|
}
|
498
|
|
- // border: solid 1px red;
|
499
|
514
|
}
|
500
|
|
-
|
|
515
|
+ // border: solid 1px red;
|
501
|
516
|
}
|
502
|
517
|
.common {
|
503
|
518
|
margin-top: 1.875rem;
|
|
@@ -505,18 +520,13 @@ export default {
|
505
|
520
|
margin: auto;
|
506
|
521
|
margin-top: 1.25rem;
|
507
|
522
|
width: 20.875rem;
|
508
|
|
- height: 16rem;
|
|
523
|
+ height: 20.3125rem;
|
509
|
524
|
background: rgba(255, 255, 255, 1);
|
510
|
525
|
box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
|
511
|
526
|
border-radius: 16px;
|
512
|
527
|
padding: 1.125rem 1.3125rem 1.3125rem 1.3125rem;
|
513
|
|
- overflow: hidden;
|
|
528
|
+ overflow: hidden;
|
514
|
529
|
text-overflow: ellipsis;
|
515
|
|
- display: -webkit-box;
|
516
|
|
- -webkit-line-clamp: 8;
|
517
|
|
- -webkit-box-orient: vertical;
|
518
|
|
- // border: solid 1px red;
|
519
|
|
-
|
520
|
530
|
}
|
521
|
531
|
.commonImg {
|
522
|
532
|
width: 18.4375rem;
|
|
@@ -531,8 +541,7 @@ export default {
|
531
|
541
|
color: rgba(60, 60, 60, 1);
|
532
|
542
|
line-height: 1.375rem;
|
533
|
543
|
// border: solid 1px red;
|
534
|
|
- overflow: hidden;
|
535
|
|
- text-overflow: ellipsis;
|
|
544
|
+
|
536
|
545
|
display: -webkit-box;
|
537
|
546
|
-webkit-line-clamp: 8;
|
538
|
547
|
-webkit-box-orient: vertical;
|