|
@@ -1,107 +1,329 @@
|
1
|
1
|
<template>
|
2
|
|
-<div class="feature">
|
3
|
|
- <ul >
|
4
|
|
- <li>
|
|
2
|
+<div class="feature-box">
|
|
3
|
+ <div class="feature ">
|
|
4
|
+ <ul >
|
|
5
|
+ <li @click="dialogVisible = true">
|
|
6
|
+ <span>
|
|
7
|
+ <img :src="new1" alt="">
|
|
8
|
+ <p>轮播图</p>
|
|
9
|
+ </span>
|
|
10
|
+ </li>
|
|
11
|
+ <li @click="two = true">
|
5
|
12
|
<span>
|
6
|
|
- <img :src="new1" alt="">
|
7
|
|
- <p>轮播图</p>
|
8
|
|
- </span>
|
9
|
|
- </li>
|
10
|
|
- <li>
|
11
|
|
- <span>
|
12
|
|
- <img :src="new1" alt="">
|
13
|
|
- <p>轮播图</p>
|
14
|
|
- </span>
|
15
|
|
- </li>
|
16
|
|
- <li>
|
17
|
|
- <span>
|
18
|
|
- <img :src="new1" alt="">
|
19
|
|
- <p>轮播图</p>
|
20
|
|
- </span>
|
21
|
|
- </li>
|
22
|
|
- <li>
|
23
|
|
- <span>
|
24
|
|
- <img :src="new1" alt="">
|
25
|
|
- <p>轮播图</p>
|
26
|
|
- </span>
|
27
|
|
- </li>
|
28
|
|
- <li>
|
29
|
|
- <span>
|
30
|
|
- <img :src="new1" alt="">
|
31
|
|
- <p class="title">轮播图</p>
|
32
|
|
- </span>
|
33
|
|
- </li>
|
34
|
|
- </ul>
|
35
|
|
- <!-- <el-row :gutter="21" type="flex" justify="space-around">
|
36
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>轮播图</p></div></el-col>
|
37
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>医院介绍</p></div></el-col>
|
38
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>科室介绍</p></div></el-col>
|
39
|
|
- </el-row>
|
40
|
|
- <el-row :gutter="21" type="flex" justify="space-around">
|
41
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>轮播图</p></div></el-col>
|
42
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>医院介绍</p></div></el-col>
|
43
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>科室介绍</p></div></el-col>
|
44
|
|
- </el-row>
|
45
|
|
- <el-row :gutter="21" type="flex" justify="space-around">
|
46
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>轮播图</p></div></el-col>
|
47
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>医院介绍</p></div></el-col>
|
48
|
|
- <el-col :span="5"><div class="grid-content "><img :src="new1" alt=""><p>科室介绍</p></div></el-col>
|
49
|
|
- </el-row> -->
|
50
|
|
-</div>
|
51
|
|
-</template>
|
|
13
|
+ <img :src="new1" alt="">
|
|
14
|
+ <p>医院介绍</p>
|
|
15
|
+ </span>
|
|
16
|
+ </li>
|
|
17
|
+ <li @click="three = true">
|
|
18
|
+ <span>
|
|
19
|
+ <img :src="new1" alt="">
|
|
20
|
+ <p>科室介绍</p>
|
|
21
|
+ </span>
|
|
22
|
+ </li>
|
|
23
|
+ <li @click="four = true">
|
|
24
|
+ <span>
|
|
25
|
+ <img :src="new1" alt="">
|
|
26
|
+ <p>名医介绍</p>
|
|
27
|
+ </span>
|
|
28
|
+ </li>
|
|
29
|
+ <li @click="five = true">
|
|
30
|
+ <span>
|
|
31
|
+ <img :src="new1" alt="">
|
|
32
|
+ <p class="title">科室环境</p>
|
|
33
|
+ </span>
|
|
34
|
+ </li>
|
|
35
|
+ <li @click="six = true">
|
|
36
|
+ <span>
|
|
37
|
+ <img :src="new1" alt="">
|
|
38
|
+ <p class="title">文章列表</p>
|
|
39
|
+ </span>
|
|
40
|
+ </li>
|
|
41
|
+ <li @click="seven = true">
|
|
42
|
+ <span>
|
|
43
|
+ <img :src="new1" alt="">
|
|
44
|
+ <p class="title">活动列表</p>
|
|
45
|
+ </span>
|
|
46
|
+ </li>
|
|
47
|
+ <li @click="eight = true">
|
|
48
|
+ <span>
|
|
49
|
+ <img :src="new1" alt="">
|
|
50
|
+ <p class="title">魔方导航</p>
|
|
51
|
+ </span>
|
|
52
|
+ </li>
|
|
53
|
+ </ul>
|
|
54
|
+ </div>
|
|
55
|
+ <div class="clear"></div>
|
|
56
|
+
|
|
57
|
+ <!-- 新增轮播图 -->
|
|
58
|
+ <el-dialog
|
|
59
|
+ title="新增轮播图"
|
|
60
|
+ :visible.sync="dialogVisible"
|
|
61
|
+ width="550px"
|
|
62
|
+ :before-close="handleClose">
|
|
63
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
64
|
+ <el-form-item label="模块标题: ">
|
|
65
|
+ <el-input v-model="form.name"></el-input>
|
|
66
|
+ </el-form-item>
|
|
67
|
+ <el-form-item label="排序值: ">
|
|
68
|
+ <el-input v-model="form.name"></el-input>
|
|
69
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
70
|
+ </el-form-item>
|
|
71
|
+ <el-form-item label="添加图片: ">
|
|
72
|
+ <el-upload
|
|
73
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
74
|
+ list-type="picture-card"
|
|
75
|
+ :on-preview="handlePictureCardPreview"
|
|
76
|
+ :on-remove="handleRemove">
|
|
77
|
+ <i class="el-icon-plus"></i>
|
|
78
|
+ </el-upload>
|
|
79
|
+ </el-form-item>
|
|
80
|
+ </el-form>
|
|
81
|
+ <span slot="footer" class="dialog-footer">
|
|
82
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
83
|
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
84
|
+ </span>
|
|
85
|
+ </el-dialog>
|
|
86
|
+ <!-- 新增医院介绍 -->
|
|
87
|
+ <el-dialog
|
|
88
|
+ title="新增医院介绍"
|
|
89
|
+ :visible.sync="two"
|
|
90
|
+ width="550px"
|
|
91
|
+ :before-close="handleClose">
|
|
92
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
93
|
+ <el-form-item label="模块标题: ">
|
|
94
|
+ <el-input v-model="form.name"></el-input>
|
|
95
|
+ </el-form-item>
|
|
96
|
+ <el-form-item label="排序值: ">
|
|
97
|
+ <el-input v-model="form.name"></el-input>
|
|
98
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
99
|
+ </el-form-item>
|
|
100
|
+ <el-form-item label="医院介绍: ">
|
|
101
|
+ <el-input
|
|
102
|
+ type="textarea"
|
|
103
|
+ :rows="6"
|
|
104
|
+ placeholder="请输入内容"
|
|
105
|
+ v-model="textarea">
|
|
106
|
+ </el-input>
|
|
107
|
+ </el-form-item>
|
|
108
|
+ </el-form>
|
|
109
|
+ <span slot="footer" class="dialog-footer">
|
|
110
|
+ <el-button @click="two = false">取 消</el-button>
|
|
111
|
+ <el-button type="primary" @click="two = false">确 定</el-button>
|
|
112
|
+ </span>
|
|
113
|
+ </el-dialog>
|
|
114
|
+ <!-- 新增科室介绍 -->
|
|
115
|
+ <el-dialog
|
|
116
|
+ title="新增科室介绍"
|
|
117
|
+ :visible.sync="three"
|
|
118
|
+ width="550px"
|
|
119
|
+ :before-close="handleClose">
|
|
120
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
121
|
+ <el-form-item label="模块标题: ">
|
|
122
|
+ <el-input v-model="form.name"></el-input>
|
|
123
|
+ </el-form-item>
|
|
124
|
+ <el-form-item label="排序值: ">
|
|
125
|
+ <el-input v-model="form.name"></el-input>
|
|
126
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
127
|
+ </el-form-item>
|
|
128
|
+ <el-form-item label="科室介绍: ">
|
|
129
|
+ <el-input
|
|
130
|
+ type="textarea"
|
|
131
|
+ :rows="6"
|
|
132
|
+ placeholder="请输入内容"
|
|
133
|
+ v-model="textarea">
|
|
134
|
+ </el-input>
|
|
135
|
+ </el-form-item>
|
|
136
|
+ </el-form>
|
|
137
|
+ <span slot="footer" class="dialog-footer">
|
|
138
|
+ <el-button @click="three = false">取 消</el-button>
|
|
139
|
+ <el-button type="primary" @click="three = false">确 定</el-button>
|
|
140
|
+ </span>
|
|
141
|
+ </el-dialog>
|
|
142
|
+
|
|
143
|
+ <!-- 新增名医介绍 -->
|
|
144
|
+ <el-dialog
|
|
145
|
+ title="新增名医介绍"
|
|
146
|
+ :visible.sync="four"
|
|
147
|
+ width="550px"
|
|
148
|
+ :before-close="handleClose">
|
|
149
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
150
|
+ <el-form-item label="模块标题: ">
|
|
151
|
+ <el-input v-model="form.name"></el-input>
|
|
152
|
+ </el-form-item>
|
|
153
|
+ <el-form-item label="排序值: ">
|
|
154
|
+ <el-input v-model="form.name"></el-input>
|
|
155
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
156
|
+ </el-form-item>
|
|
157
|
+ <el-form-item label="新增名医: ">
|
|
158
|
+ <el-upload
|
|
159
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
160
|
+ list-type="picture-card"
|
|
161
|
+ :on-preview="handlePictureCardPreview"
|
|
162
|
+ :on-remove="handleRemove">
|
|
163
|
+ <i class="el-icon-plus"></i>
|
|
164
|
+ </el-upload>
|
|
165
|
+ </el-form-item>
|
|
166
|
+ </el-form>
|
|
167
|
+ <span slot="footer" class="dialog-footer">
|
|
168
|
+ <el-button @click="four = false">取 消</el-button>
|
|
169
|
+ <el-button type="primary" @click="four = false">确 定</el-button>
|
|
170
|
+ </span>
|
|
171
|
+ </el-dialog>
|
|
172
|
+ <!-- 新增科室环境 -->
|
|
173
|
+ <el-dialog
|
|
174
|
+ title="新增科室环境"
|
|
175
|
+ :visible.sync="five"
|
|
176
|
+ width="550px"
|
|
177
|
+ :before-close="handleClose">
|
|
178
|
+ <el-form ref="form" :model="form" label-width="100px">
|
|
179
|
+ <el-form-item label="模块标题: ">
|
|
180
|
+ <el-input v-model="form.name"></el-input>
|
|
181
|
+ </el-form-item>
|
|
182
|
+ <el-form-item label="排序值: ">
|
|
183
|
+ <el-input v-model="form.name"></el-input>
|
|
184
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
185
|
+ </el-form-item>
|
|
186
|
+ <el-form-item label="新增科室环境: ">
|
|
187
|
+ <el-upload
|
|
188
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
189
|
+ list-type="picture-card"
|
|
190
|
+ :on-preview="handlePictureCardPreview"
|
|
191
|
+ :on-remove="handleRemove">
|
|
192
|
+ <i class="el-icon-plus"></i>
|
|
193
|
+ </el-upload>
|
|
194
|
+ </el-form-item>
|
|
195
|
+ </el-form>
|
|
196
|
+ <span slot="footer" class="dialog-footer">
|
|
197
|
+ <el-button @click="five = false">取 消</el-button>
|
|
198
|
+ <el-button type="primary" @click="five = false">确 定</el-button>
|
|
199
|
+ </span>
|
|
200
|
+ </el-dialog>
|
|
201
|
+ <!-- 新增文章列表 -->
|
|
202
|
+ <el-dialog
|
|
203
|
+ title="新增文章列表"
|
|
204
|
+ :visible.sync="six"
|
|
205
|
+ width="550px"
|
|
206
|
+ :before-close="handleClose">
|
|
207
|
+ <el-form ref="form" :model="form" label-width="100px">
|
|
208
|
+ <el-form-item label="模块标题: ">
|
|
209
|
+ <el-input v-model="form.name"></el-input>
|
|
210
|
+ </el-form-item>
|
|
211
|
+ <el-form-item label="排序值: ">
|
|
212
|
+ <el-input v-model="form.name"></el-input>
|
|
213
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
214
|
+ </el-form-item>
|
|
215
|
+ <el-form-item label="文章分类: ">
|
|
216
|
+ <el-select v-model="form.region" placeholder="请选择活动区域" style="width:49%;float:left;">
|
|
217
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
218
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
219
|
+ </el-select>
|
|
220
|
+ <el-select v-model="form.region" placeholder="请选择活动区域" style="width:49%;float:right;">
|
|
221
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
222
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
223
|
+ </el-select>
|
|
224
|
+ </el-form-item>
|
|
225
|
+ <el-form-item label="首页展示条数: ">
|
|
226
|
+ <el-input v-model="form.name"></el-input>
|
|
227
|
+ </el-form-item>
|
|
228
|
+ </el-form>
|
|
229
|
+ <span slot="footer" class="dialog-footer">
|
|
230
|
+ <el-button @click="six = false">取 消</el-button>
|
|
231
|
+ <el-button type="primary" @click="six = false">确 定</el-button>
|
|
232
|
+ </span>
|
|
233
|
+ </el-dialog>
|
|
234
|
+ <!-- 新增活动列表 -->
|
|
235
|
+ <el-dialog
|
|
236
|
+ title="新增活动列表"
|
|
237
|
+ :visible.sync="seven"
|
|
238
|
+ width="550px"
|
|
239
|
+ :before-close="handleClose">
|
|
240
|
+ <el-form ref="form" :model="form" label-width="100px">
|
|
241
|
+ <el-form-item label="模块标题: ">
|
|
242
|
+ <el-input v-model="form.name"></el-input>
|
|
243
|
+ </el-form-item>
|
|
244
|
+ <el-form-item label="排序值: ">
|
|
245
|
+ <el-input v-model="form.name"></el-input>
|
|
246
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
247
|
+ </el-form-item>
|
|
248
|
+
|
|
249
|
+ <el-form-item label="首页展示条数: ">
|
|
250
|
+ <el-input v-model="form.name"></el-input>
|
|
251
|
+ </el-form-item>
|
|
252
|
+ </el-form>
|
|
253
|
+ <span slot="footer" class="dialog-footer">
|
|
254
|
+ <el-button @click="seven = false">取 消</el-button>
|
|
255
|
+ <el-button type="primary" @click="seven = false">确 定</el-button>
|
|
256
|
+ </span>
|
|
257
|
+ </el-dialog>
|
|
258
|
+ <!-- 新增魔方导航 -->
|
|
259
|
+ <el-dialog
|
|
260
|
+ title="新增魔方导航"
|
|
261
|
+ :visible.sync="eight"
|
|
262
|
+ width="550px"
|
|
263
|
+ :before-close="handleClose">
|
|
264
|
+ <el-form ref="form" :model="form" label-width="100px">
|
|
265
|
+ <el-form-item label="模块标题: ">
|
|
266
|
+ <el-input v-model="form.name"></el-input>
|
|
267
|
+ </el-form-item>
|
|
268
|
+ <el-form-item label="排序值: ">
|
|
269
|
+ <el-input v-model="form.name"></el-input>
|
|
270
|
+ <p class="tips">请输入1-99的整数,数值越小,模块排序越靠前</p>
|
|
271
|
+ </el-form-item>
|
|
272
|
+ <el-form-item label="新增科室环境: ">
|
|
273
|
+ <el-upload
|
|
274
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
275
|
+ list-type="picture-card"
|
|
276
|
+ :on-preview="handlePictureCardPreview"
|
|
277
|
+ :on-remove="handleRemove">
|
|
278
|
+ <i class="el-icon-plus"></i>
|
|
279
|
+ </el-upload>
|
|
280
|
+ </el-form-item>
|
|
281
|
+ </el-form>
|
|
282
|
+ <span slot="footer" class="dialog-footer">
|
|
283
|
+ <el-button @click="eight = false">取 消</el-button>
|
|
284
|
+ <el-button type="primary" @click="eight = false">确 定</el-button>
|
|
285
|
+ </span>
|
|
286
|
+ </el-dialog>
|
52
|
287
|
|
53
|
288
|
|
|
289
|
+</div>
|
|
290
|
+</template>
|
|
291
|
+
|
54
|
292
|
<script>
|
55
|
293
|
export default {
|
56
|
294
|
name: "newfeature",
|
57
|
295
|
data() {
|
58
|
296
|
return {
|
59
|
|
- new1: require("../../../assets/preview/new-1.png")
|
|
297
|
+ new1: require("../../../assets/preview/new-1.png"),
|
|
298
|
+ dialogVisible: false,
|
|
299
|
+ two: false,
|
|
300
|
+ three: false,
|
|
301
|
+ four: false,
|
|
302
|
+ five: false,
|
|
303
|
+ six: false,
|
|
304
|
+ seven: false,
|
|
305
|
+ eight: false,
|
|
306
|
+ form: {
|
|
307
|
+ name: ""
|
|
308
|
+ }
|
60
|
309
|
};
|
61
|
310
|
}
|
62
|
311
|
};
|
63
|
312
|
</script>
|
64
|
313
|
|
65
|
314
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
66
|
|
-.feature {
|
67
|
|
- ul {
|
68
|
|
- border: 1px solid #eaeefb;
|
69
|
|
- float: left;
|
70
|
|
- width: 100%;
|
71
|
|
- li {
|
72
|
|
- width: 33.3%;
|
73
|
|
- float: left;
|
74
|
|
- text-align: center;
|
75
|
|
- height: 120px;
|
76
|
|
- color: #666;
|
77
|
|
- font-size: 13px;
|
78
|
|
- border-right: 1px solid #eee;
|
79
|
|
- border-bottom: 1px solid #eee;
|
80
|
|
- margin-right: -1px;
|
81
|
|
- margin-bottom: -1px;
|
82
|
|
- span {
|
83
|
|
- vertical-align: middle;
|
84
|
|
- display: flex;
|
85
|
|
- flex-direction: column;
|
86
|
|
- align-items: center;
|
87
|
|
- justify-content: center;
|
88
|
|
- height: 120px;
|
89
|
|
- img {
|
90
|
|
- display: inline-block;
|
91
|
|
- font-size: 32px;
|
92
|
|
- margin-bottom: 15px;
|
93
|
|
- color: #606266;
|
94
|
|
- transition: color 0.15s linear;
|
95
|
|
- vertical-align: middle;
|
96
|
|
- }
|
97
|
|
- .title {
|
98
|
|
- display: inline-block;
|
99
|
|
- padding: 0 3px;
|
100
|
|
- height: 30px;
|
101
|
|
- vertical-align: middle;
|
102
|
|
- }
|
103
|
|
- }
|
104
|
|
- }
|
105
|
|
- }
|
|
315
|
+
|
|
316
|
+.clearfix {
|
|
317
|
+ clear: both;
|
|
318
|
+}
|
|
319
|
+
|
|
320
|
+.el-upload--picture-card {
|
|
321
|
+ width: 80px !important;
|
|
322
|
+ height: 80px !important;
|
|
323
|
+ line-height: 80px !important;
|
|
324
|
+}
|
|
325
|
+.tips {
|
|
326
|
+ font-size: 12px;
|
|
327
|
+ line-height: 18px;
|
106
|
328
|
}
|
107
|
329
|
</style>
|