路泰科技体检小程序UI设计新版本
1
wwl
2025-07-30 61b58bd03d04d2eb50ac2d93a188c819fe67e01e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
<template>
    <view class="page">
        <image class="bg-image" src="/static/images/index/bg.png" mode="scaleToFill"></image>
        <!-- 顶部导航 -->
        <!-- <div class="top">
            <div class="top_s">
                <span class="top_txt">筛选</span>
                <image class="top_img" src="https://ltpeis.xaltjdkj.cn:5502/static/shaixuan.png" mode=""></image>
            </div>
            <div class="top_s">
                <span class="top_txt">搜索</span>
                <image class="top_img" src="https://ltpeis.xaltjdkj.cn:5502/static/sousuo.png" mode=""></image>
            </div>
        </div> -->
        <view class="container">
            <view class="header">
                <view class="search-bar">
                    <uni-icons class="search-icon" type="search" size="18" color="#999"></uni-icons>
                    <input type="text" placeholder="搜索医院" placeholder-class="placeholder" />
                    <view class="search-btn">搜索</view>
                </view>
                <!-- <view class="filter-bar">
                <view class="filter-item">
                    全部县区
                    <uni-icons type="bottom" size="14" color="#666"></uni-icons>
                </view>
                <view class="filter-item">
                    级别优先
                    <uni-icons type="bottom" size="14" color="#666"></uni-icons>
                </view>
                <view class="filter-item active">
                    其他
                    <uni-icons type="bottom" size="14" color="#2979ff"></uni-icons>
                </view>
            </view> -->
                <view class="filter-tabs">
                    <view class="filter-item" v-for="(item, index) in filterOptions" :key="index"
                        :class="{ 'active': currentFilter === index }" @click="selectFilter(index)">
                        <text>{{ item.label }}</text>
                        <uni-icons :type="currentFilter === index ? 'top' : 'bottom'" size="14"
                            :color="currentFilter === index ? '#007AFF' : '#666'" />
                    </view>
                </view>
 
                <uni-popup ref="popup" @close="close" background-color="#fff" style="top:100px">
                    <view>
                        <view class="filter-section">
                            <view class="section-title">可约时间</view>
                            <view class="time-grid">
                                <view class="grid-item" v-for="(item, index) in timeOptions" :key="index">
                                    {{ item }}
                                </view>
                            </view>
                        </view>
 
                        <view class="filter-section">
                            <view class="section-title">套餐价格</view>
                            <view class="price-grid">
                                <view class="grid-item" v-for="(item, index) in priceOptions" :key="index">
                                    {{ item }}
                                </view>
                            </view>
                        </view>
 
                        <view class="filter-section">
                            <view class="section-title">支付方式</view>
                            <view class="payment-options">
                                <view class="payment-item">医保</view>
                                <view class="payment-item">现金</view>
                            </view>
                        </view>
 
                        <view class="button-group">
                            <button class="reset-btn">重置</button>
                            <button class="confirm-btn" type="primary">确定</button>
                        </view>
                    </view>
                </uni-popup>
            </view>
 
            <!-- 分院选项卡 -->
            <!-- <view class="padding-l" v-for="(item,index) in hosplist" :key="index" @click="gohosp">
            <div class="Package">
            <div class="Package_left">
                <img class="Package_left_img" src="https://ltpeis.xaltjdkj.cn:5502/static/images/hosp.png" alt="">
            </div>
            <div class="Package_right">
                <span class="Package_txt">{{item.hospAreaName}}</span>
                
                <div class="Package_t">
                    <span class="Package_txt1">营业时间:周一至周六8:00-12:00,周日休息</span>
                </div>
                
                <div class="Package_right_txt">
                    <div class="Package_txt2">地址:{{item.areaName}}</div>
                    <div class="Package_txt2">联系电话:{{item.phone}}</div>
                </div>
                
            </div>
        </div>
        </view> -->
 
            <scroll-view class="hospital-list" scroll-y>
                <view class="hospital-item" v-for="(hospital, index) in hosplist" :key="index" @click="gohosp">
                    <image src="https://ltpeis.xaltjdkj.cn:5502/static/images/hosp.png" mode="aspectFill"
                        class="hospital-image" />
                    <view class="hospital-info">
                        <view class="hospital-name">{{ hospital.hospAreaName }}</view>
                        <view class="business-info">
                            <text class="status">营业中</text>
                            <text class="time">周一至周六8:00-12:00,周日休息</text>
                        </view>
                        <view class="address">医院地址: {{ hospital.areaName }}</view>
                        <view class="phone">联系电话: {{ hospital.phone }}</view>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>
</template>
 
 
<script>
    import {
        getHospList
    } from "@/api/system/hosp";
    export default {
        data() {
            return {
                hosplist: [],
                currentFilter: null,
                filterOptions: [{
                        label: '全部县区',
                        value: 'area'
                    },
                    {
                        label: '级别优先',
                        value: 'level'
                    },
                    {
                        label: '其他',
                        value: 'other'
                    }
                ],
                timeOptions: [
                    '当日可约',
                    '次日可约',
                    '3日内可约',
                    '7日内可约',
                    '15日内可约',
                    '30日内可约'
                ],
 
                priceOptions: [
                    '0-300元',
                    '300-800元',
                    '800-1500元',
                    '1500-2500元',
                    '2500元以上'
                ],
            }
        },
        //生命周期方法 —— 页面加载时
        onLoad() {
            this.getList();
        },
        methods: {
            /** 查询院区信息列表 */
            getList() {
                getHospList(this.queryParams).then((response) => {
                    this.hosplist = response.data;
 
                });
            },
 
            selectFilter(index) {
                this.currentFilter = this.currentFilter === index ? -1 : index;
                this.$refs.popup.open("top")
            },
 
            close() {
                this.$refs.popup.close()
            },
 
            //跳转页面
            ComparisonReport() {
                uni.navigateTo({
                    url: '/pagesA/ComparisonReport/ComparisonReport'
                })
            },
            ReportDetails() {
                uni.navigateTo({
                    url: '/pagesA/ReportDetails/ReportDetails'
                })
            },
            gohosp() {
                uni.navigateTo({
                    url: '/pagesA/goHosp/goHosp'
                })
            }
 
        },
 
    }
</script>
 
<style lang="scss">
    .uni-popup {
        top: 100px !important;
    }
 
    page {
        height: 100%;
    }
 
    .page {
        display: flex;
        flex-direction: column;
        height: 100%;
        // background-color: #f5f5f5;
    }
 
 
    .bg-image {
        position: absolute;
        top: -10px;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        left: 50%;
        transform: translateX(-50%);
        object-fit: cover;
    }
 
    .header {
        flex-shrink: 0;
        // background-color: #ffffff;
        padding: 20rpx 30rpx;
    }
 
    .search-bar {
        display: flex;
        align-items: center;
        height: 72rpx;
        background-color: #f5f5f5;
        border-radius: 36rpx;
        padding: 0 24rpx;
    }
 
    .search-icon {
        margin-right: 16rpx;
    }
 
    .filter-tabs {
        display: flex;
        padding: 10rpx 30rpx;
        // background: #fff;
        border-bottom: 1px solid #eee;
    }
 
    .filter-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #333;
        padding: 20rpx 0;
        transition: all 0.3s ease;
    }
 
    .filter-item.active {
        color: #007AFF;
    }
 
    .filter-item uni-icons {
        margin-left: 8rpx;
    }
 
    .search-bar input {
        flex: 1;
        height: 72rpx;
        font-size: 14px;
    }
 
    .placeholder {
        color: #999999;
    }
 
    .filter-section {
        margin: 10rpx 30rpx;
        padding: 20rpx;
        background: #fff;
        border-radius: 12rpx;
    }
 
    .section-title {
        font-size: 15px;
        font-weight: 500;
        color: #333;
        margin-bottom: 20rpx;
    }
 
    .time-grid,
    .price-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20rpx;
    }
 
    .grid-item {
        padding: 20rpx 0;
        text-align: center;
        background: #f8f8f8;
        border-radius: 8rpx;
        font-size: 14px;
        color: #666;
    }
 
    .payment-options {
        display: flex;
        gap: 30rpx;
    }
 
    .payment-item {
        padding: 20rpx 60rpx;
        background: #f8f8f8;
        border-radius: 8rpx;
        font-size: 14px;
        color: #666;
        text-align: center;
    }
 
    .button-group {
        display: flex;
        gap: 30rpx;
        padding: 30rpx;
    }
 
    .reset-btn,
    .confirm-btn {
        flex: 1;
        font-size: 16px;
        border-radius: 8rpx;
    }
 
    .reset-btn {
        background: #f8f8f8;
        color: #666;
    }
 
    .confirm-btn {
        background: #007AFF;
    }
 
    .search-btn {
        color: #2979ff;
        font-size: 14px;
        padding-left: 24rpx;
    }
 
    .filter-bar {
        display: flex;
        margin-top: 24rpx;
    }
 
    .filter-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #666666;
    }
 
    .filter-item.active {
        color: #2979ff;
    }
 
    .content {
        flex: 1;
        overflow: auto;
    }
 
    .hospital-list {
        flex: 1;
        overflow: auto;
    }
 
    .hospital-item {
        display: flex;
        padding:20rpx 30rpx;
        margin: 0 0rpx 20rpx;
        // background: #fff;
        border-radius: 12rpx;
    }
 
    .hospital-image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 8rpx;
        margin-right: 20rpx;
    }
 
    .hospital-info {
        flex: 1;
    }
 
    .hospital-name {
        font-size: 16px;
        font-weight: 500;
        color: #333;
        margin-bottom: 16rpx;
    }
 
    .business-info {
        display: flex;
        align-items: center;
        margin-bottom: 16rpx;
    }
 
    .status {
        padding: 4rpx 12rpx;
        background: #e8f3ff;
        color: #007AFF;
        font-size: 12px;
        border-radius: 4rpx;
        margin-right: 16rpx;
    }
 
    .time {
        font-size: 12px;
        color: #666;
    }
 
    .address,
    .phone {
        font-size: 12px;
        color: #999;
        margin-top: 8rpx;
    }
 
    .top_txt {
        font-size: 14px;
        margin-right: 8px;
        color: #fff;
    }
 
    .top_img {
        width: 20px;
        height: 20px;
    }
 
    .Package {
        width: 100%;
        height: 104px;
        display: flex;
        align-items: center;
    }
 
    .Package_left_img {
        width: 185rpx;
        height: 185rpx;
    }
 
    .Package_right {
        width: 290px;
        height: 100px;
    }
 
    .Package_txt {
        font-size: 16px;
        margin-bottom: 10px;
    }
 
    .Package_t {
        margin-bottom: 10px;
    }
 
    .Package_txt1 {
        font-size: 9px;
        margin-right: 10px;
        border-radius: 4px 4px 4px 4px;
        color: #ff4f00;
        background-color: #f4cfb8;
    }
 
    .Package_right_txt {
        justify-content: space-between;
    }
 
    .Package_txt2 {
        color: #ee842f;
        font-size: 12px;
    }
 
 
    .box {
        width: 100%;
        min-height: 1240rpx;
    }
</style>