Files
xk-client-wx/subPackages/my/my-department.vue
2026-05-15 16:42:32 +08:00

624 lines
12 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="container safe-area-inset-bottom">
<!-- 全部 号源 -->
<view class="head">
<view class="all_source" :class="{actived_choose:actived==0}">
<text>全部</text>
<text>号源</text>
</view>
<!-- 有号 -->
<view class="week">
<view class="day" :class="{actived_choose:actived==1}">
<text>周日</text>
<text>10/22</text>
<text class="has_source">有号</text>
</view>
<view class="day">
<text>周日</text>
<text>10/22</text>
<text class="has_source active">无号</text>
</view>
<view class="day">
<text>周日</text>
<text>10/22</text>
<text class="has_source">有号</text>
</view>
<view class="day">
<text>周日</text>
<text>10/22</text>
<text class="has_source">有号</text>
</view>
<view class="day">
<text>周日</text>
<text>10/22</text>
<text class="has_source">有号</text>
</view>
</view>
<!-- 选择 日期 -->
<view class="choose_week">
<text>选择</text>
<text>日期</text>
<view class="btn_icon">
<u-icon name="arrow-down" color="#fff" size="14"></u-icon>
</view>
<u-calendar v-model="show" :mode="mode" @change="change"></u-calendar>
</view>
</view>
<!-- 专家号 -->
<view class="contents">
<view class="title">
专家号
</view>
<!-- 专家 -->
<view class="doctor">
<view class="top">
<image src="https://xiaokang88.oss-cn-hangzhou.aliyuncs.com/xk-client-wx/static/logo.png" mode=""></image>
<view class="doctor_info">
<view class="doctor_name">
<view class="name">
<text>王彩华</text>
主任医师
</view>
<view class="appoin">
<text>预约</text>
<u-icon name="arrow-right" color="#CBD5E1" size="28"></u-icon>
</view>
</view>
<view class="doctor_going">
擅长胃肠道胆胰等消化系统疾病的诊治及内镜超声尤其擅长胰腺疾胃肠道胆胰等消化系统疾病的诊
</view>
</view>
</view>
<!-- 挂号 -->
<view class="sour">
<view class="has_sour">
<view class="time">
上午
</view>
<view class="num">
<text>余99</text>
<text class="btn" @click="goConfirm">去挂号</text>
</view>
</view>
<view class="has_sour">
<view class="time">
下午
</view>
<view class="num active">
<text>余0</text>
<text class="btn"> </text>
</view>
</view>
</view>
</view>
</view>
<!-- 普通号 -->
<view class="content">
<view class="title">
普通号
</view>
<view class="doctor">
<view class="top">
<image src="https://xiaokang88.oss-cn-hangzhou.aliyuncs.com/xk-client-wx/static/logo.png" mode=""></image>
<view class="doctor_info">
<view class="doctor_name">
<view class="name">
<text>普通门诊</text>
</view>
<view class="appoin">
<text>预约</text>
<u-icon name="arrow-right" color="#CBD5E1" size="28"></u-icon>
</view>
</view>
</view>
</view>
<view class="sour">
<view class="has_sour">
<view class="time">
上午
</view>
<view class="num">
<text>余99</text>
<text class="btn" @click="goConfirm">去挂号</text>
</view>
</view>
<view class="has_sour">
<view class="time">
下午
</view>
<view class="num">
<text>余99</text>
<text class="btn" @click="goConfirm">去挂号</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
show: false,
mode: 'date',
actived: 1, // 样式
}
},
onLoad() {
},
methods: {
change(e) {
console.log(e);
},
// {
// day: 4, // 选择了哪一天
// days: 30, // 这个月份有多少天
// isToday: true, // 选择的日期是否今天
// month: 6, // 选择的月份
// result: "2020-06-04", // 选择的日期整体值
// week: "星期四", // 选择日期所属的星期数
// year: 2020, // 选择的年份
// }
goConfirm() {
uni.navigateTo({
url: '/pagesA/registration/confirm'
})
}
}
}
</script>
<style lang="scss" scoped>
.container {
width: 100vw;
height: 100vh;
background: #F8FAFC;
padding-bottom: env(safe-area-inset-bottom);
.head {
width: 750rpx;
height: 214rpx;
background: #FFFFFF;
display: flex;
align-items: center;
justify-content: space-around;
padding-left: 20rpx;
.all_source {
width: 88rpx;
height: 174rpx;
background: #fff;
border-radius: 16rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text {
font-size: 28rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #1E293B;
margin-bottom: 5rpx;
}
}
.week {
display: flex;
justify-content: space-around;
flex-wrap: nowrap;
overflow: hidden;
.day {
width: 106rpx;
height: 170rpx;
background: #F8FAFC;
border-radius: 16rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 10rpx;
.has_source {
color: #536DFE;
font-size: 24rpx;
}
.active {
color: #94A3B8;
}
text {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #1E293B;
line-height: 33rpx;
margin: 6rpx 0 0;
}
}
.actived_choose {
background: #536DFE;
.has_source {
color: #fff;
}
.active {
color: #fff;
}
text {
color: #fff;
}
}
}
.choose_week {
width: 78rpx;
height: 214rpx;
background: #FFFFFF;
box-shadow: -4rpx 0rpx 8rpx 0rpx rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text {
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #475569;
margin: 0rpx 0 8rpx;
}
.btn_icon {
width: 36rpx;
height: 36rpx;
text-align: center;
line-height: 22rpx;
border-radius: 50%;
background: #536DFE;
}
}
.actived_choose {
background: #536DFE;
text {
color: #FFFFFF;
}
}
}
.title {
width: 710rpx;
height: 50rpx;
font-size: 36rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #0F172A;
line-height: 42rpx;
margin: 32rpx auto 10rpx;
}
.contents {
width: 710rpx;
margin: 0 auto;
.sour {
width: 710rpx;
margin: 0 auto;
padding: 0 0 32rpx 0;
.has_sour {
display: flex;
justify-content: space-between;
align-items: center;
width: 646rpx;
height: 82rpx;
background: #F8FAFC;
border-radius: 8rpx;
margin: 32rpx auto 16rpx;
padding: 20rpx 32rpx;
.time {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #1E293B;
line-height: 33rpx;
}
.num {
display: flex;
align-items: center;
text {
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #536DFE;
}
.btn {
width: 120rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
background: #536DFE;
border-radius: 64rpx;
font-size: 24rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-left: 16rpx;
}
}
.active {
text {
color: #94A3B8;
}
.btn {
background: #94A3B8;
}
}
}
}
.doctor {
background: #FFFFFF;
border-radius: 8rpx;
margin: 10rpx 0;
.top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 32rpx;
height: 164rpx;
image {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
}
.doctor_info {
width: 514rpx;
height: 88rpx;
.doctor_name {
display: flex;
justify-content: space-between;
align-items: center;
.name {
height: 44rpx;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #1E293B;
text {
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #1E293B;
line-height: 38rpx;
margin-right: 12rpx;
}
}
.appoin {
.u-icon {
color: #CBD5E1;
font-size: 28rpx;
vertical-align: middle;
}
text {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #536DFE;
line-height: 33rpx;
margin-right: 20rpx;
}
}
}
}
.doctor_going {
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #475569;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
margin: 8rpx 0;
}
}
}
}
.content {
width: 750rpx;
padding: 0 20rpx;
margin: 68rpx 0 0rpx 0;
.doctor {
background: #FFFFFF;
border-radius: 8rpx;
margin: 20rpx 0;
.top {
height: 146rpx;
padding: 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
image {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
}
.doctor_info {
width: 514rpx;
.doctor_name {
display: flex;
justify-content: space-between;
align-items: center;
.name {
text {
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600;
color: #1E293B;
line-height: 38rpx;
margin-right: 12rpx;
}
}
.appoin {
.u-icon {
color: #CBD5E1;
font-size: 28rpx;
vertical-align: middle;
}
text {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #536DFE;
line-height: 33rpx;
margin-right: 20rpx;
}
}
}
}
}
.sour {
width: 710rpx;
margin: 0 auto;
padding-bottom: 32rpx;
.has_sour {
display: flex;
justify-content: space-between;
align-items: center;
width: 646rpx;
height: 82rpx;
background: #F8FAFC;
border-radius: 8rpx;
margin: 32rpx auto 16rpx;
padding: 20rpx 32rpx;
.time {
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #1E293B;
line-height: 33rpx;
}
.num {
display: flex;
align-items: center;
text {
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #536DFE;
}
.btn {
width: 120rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
background: #536DFE;
border-radius: 64rpx;
font-size: 24rpx;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-left: 16rpx;
}
}
}
}
}
}
}
</style>