guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 1 | <template> |
| 2 | <view class="queryDate"> |
| 3 | <view class="queryDate-header"> |
| 4 | <u-image src="./images/hospital.png" width="120" mode="widthFix"></u-image> |
| 5 | <view class="queryDate-header-partmsg"> |
| 6 | <text class="queryDate-header-partmsg-title">心内科</text> |
| 7 | <text class="queryDate-header-partmsg-subtitle">大理市第一人民医院(总院)</text> |
| 8 | </view> |
| 9 | </view> |
| 10 | <view class="queryDate-query"> |
| 11 | <text class="queryDate-query-title">排班信息</text> |
| 12 | <u-line margin="30rpx 0 10rpx"/> |
| 13 | <view class="queryDate-query-calendar"> |
| 14 | <my-calendar @change="getDate"></my-calendar> |
| 15 | </view> |
| 16 | <u-line></u-line> |
| 17 | <view class="queryDate-query-cell"> |
| 18 | <text class="queryDate-query-cell-title">就诊时间:上午</text> |
| 19 | <view class="queryDate-query-cell-num"> |
| 20 | <text class="queryDate-query-cell-num-now" :class="isMorFull?'err':'success'">21</text> |
| 21 | <text class="queryDate-query-cell-num-all">/40</text> |
| 22 | </view> |
| 23 | <u-button size="mini" :type="isMorFull?'':'primary'" plain shape="circle" :disabled="isMorFull" |
| 24 | @click="toPath('/pages/sub_medical/confirm')">{{isMorFull?'已约满':'可预约'}}</u-button> |
| 25 | </view> |
| 26 | <u-line></u-line> |
| 27 | <view class="queryDate-query-cell"> |
| 28 | <text class="queryDate-query-cell-title">就诊时间:下午</text> |
| 29 | <view class="queryDate-query-cell-num"> |
| 30 | <text class="queryDate-query-cell-num-now " :class="isAftFull?'err':'success'">21</text> |
| 31 | <text class="queryDate-query-cell-num-all">/40</text> |
| 32 | </view> |
| 33 | <u-button size="mini" :type="isAftFull?'':'primary'" plain shape="circle" :disabled="isAftFull">{{isAftFull?'已约满':'可预约'}}</u-button> |
| 34 | </view> |
| 35 | <u-line></u-line> |
| 36 | <view class="queryDate-query-cell"> |
| 37 | <text class="queryDate-query-cell-title">就诊时间:晚上</text> |
| 38 | <view class="queryDate-query-cell-num"> |
| 39 | <text class="queryDate-query-cell-num-now" :class="isEveFull?'err':'success'">40</text> |
| 40 | <text class="queryDate-query-cell-num-all">/40</text> |
| 41 | </view> |
| 42 | <u-button size="mini" :type="isEveFull?'':'primary'" plain shape="circle" :disabled="isEveFull">{{isEveFull?'已约满':'可预约'}}</u-button> |
| 43 | </view> |
| 44 | </view> |
| 45 | </view> |
| 46 | </template> |
| 47 | |
| 48 | <script> |
| 49 | import myCalendar from './z_components/calendar/calendar.vue' |
| 50 | export default { |
| 51 | components: { |
| 52 | myCalendar, |
| 53 | }, |
| 54 | data() { |
| 55 | return { |
| 56 | isEveFull:true, |
| 57 | isAftFull:false, |
| 58 | isMorFull:false, |
| 59 | } |
| 60 | }, |
| 61 | methods: { |
| 62 | getDate(e){ |
| 63 | console.log(e) |
| 64 | } |
| 65 | }, |
| 66 | onLoad() { |
| 67 | |
| 68 | } |
| 69 | } |
| 70 | </script> |
| 71 | |
| 72 | <style scoped lang="scss"> |
| 73 | /deep/.u-btn--primary--plain{ |
| 74 | background-color: #FFFFFF !important; |
| 75 | } |
| 76 | uni-button{ |
| 77 | margin-left: 0; |
| 78 | margin-right: 0; |
| 79 | } |
| 80 | .err{ |
| 81 | color: #FF5353; |
| 82 | } |
| 83 | .success{ |
| 84 | color: #17C46F; |
| 85 | } |
| 86 | .queryDate { |
| 87 | font-family: "PingFang-SC-Medium"; |
| 88 | |
| 89 | &-header { |
| 90 | padding: 0 30rpx; |
| 91 | background-color: #FFFFFF; |
| 92 | display: flex; |
| 93 | align-items: center; |
| 94 | |
| 95 | &-partmsg { |
| 96 | margin-left: 30rpx; |
| 97 | display: flex; |
| 98 | flex-direction: column; |
| 99 | |
| 100 | &-title { |
| 101 | font-size: 32rpx; |
| 102 | font-weight: bold; |
| 103 | margin-bottom: 6rpx; |
| 104 | } |
| 105 | |
| 106 | &-subtitle { |
| 107 | color: #6A6A6A; |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | &-query{ |
| 112 | margin-top: 10rpx; |
| 113 | background-color: #FFFFFF; |
| 114 | padding: 30rpx; |
| 115 | &-title{ |
| 116 | font-size: 34rpx; |
| 117 | } |
| 118 | &-cell{ |
| 119 | display: flex; |
| 120 | padding: 30rpx 0; |
| 121 | align-items: center; |
| 122 | justify-content: space-between; |
| 123 | } |
| 124 | &-calendar{ |
| 125 | position: relative; |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | </style> |