<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>
|
<<<<<<< HEAD
|
<input type="text" placeholder="搜索医院" placeholder-class="placeholder" v-model="name"/>
|
<view class="search-btn" @click="search">搜索</view>
|
=======
|
<input type="text" placeholder="搜索医院" placeholder-class="placeholder" />
|
<view class="search-btn">搜索</view>
|
>>>>>>> master
|
</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'
|
}
|
],
|
<<<<<<< HEAD
|
name: '',
|
=======
|
>>>>>>> master
|
timeOptions: [
|
'当日可约',
|
'次日可约',
|
'3日内可约',
|
'7日内可约',
|
'15日内可约',
|
'30日内可约'
|
],
|
|
priceOptions: [
|
'0-300元',
|
'300-800元',
|
'800-1500元',
|
'1500-2500元',
|
'2500元以上'
|
],
|
}
|
},
|
//生命周期方法 —— 页面加载时
|
onLoad() {
|
this.getList();
|
},
|
methods: {
|
<<<<<<< HEAD
|
search(){
|
getHospList({
|
hospName:this.name
|
}).then((response) => {
|
this.hosplist = response.data;
|
|
});
|
},
|
=======
|
>>>>>>> master
|
/** 查询院区信息列表 */
|
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>
|