|
|
|
|
@ -1,27 +1,29 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="my_exam"> |
|
|
|
|
<div class="exam_box"> |
|
|
|
|
<div class="time_box">2023-01-08</div> |
|
|
|
|
<div class="pro_box"> |
|
|
|
|
<div class="exam_box" v-for="item in examArr" :key="item.time"> |
|
|
|
|
<div class="time_box">{{item.time}}</div> |
|
|
|
|
<div class="pro_box" v-for="item1 in item.examData" :key="item1.name"> |
|
|
|
|
<div class="pro_top"> |
|
|
|
|
<div class="img_box"> |
|
|
|
|
<img src="~@/assets/image/time.png" alt="" /> |
|
|
|
|
<img v-if="item1.status !== 3" src="~@/assets/image/time.png" alt="" /> |
|
|
|
|
<img v-else src="~@/assets/image/time_gray.png" alt="" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="time_box"> |
|
|
|
|
<div class="time_text">2023-01-08</div> |
|
|
|
|
<div class="date_txt">上午 9:00-9:30</div> |
|
|
|
|
<div class="time_text">{{item1.time}}</div> |
|
|
|
|
<div class="date_txt">{{item1.monment}}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_bottom"> |
|
|
|
|
<div class="pro_left"> |
|
|
|
|
<div class="img_box"> |
|
|
|
|
<img src="~@/assets/image/pro.png" alt="" /> |
|
|
|
|
<img v-if="item1.status !== 3" src="~@/assets/image/pro.png" alt="" /> |
|
|
|
|
<img v-else src="~@/assets/image/pro_gray.png" alt="" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_name">单眼视力</div> |
|
|
|
|
<div class="pro_pos">门诊楼3楼眼科门诊</div> |
|
|
|
|
<div class="pro_name">{{item1.name}}</div> |
|
|
|
|
<div class="pro_pos" :class="item1.status == 1 ? 'tips' : item1.status == 3 ? 'cancel_tip' : ''">{{item1.tip}}</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_right"> |
|
|
|
|
<div class="cancel">取消预约</div> |
|
|
|
|
<div class="cancel" :class="item1.status == 2 ? 'finish' : item1.status == 3 ? 'cancel_item' : ''">{{item1.status == 1 ? '取消预约' : item1.status == 2 ? '已完成' : item1.status == 3 ? '已取消' : ''}}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -30,7 +32,27 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
export default {}; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
examArr:[ |
|
|
|
|
{time:'2023-02-08',examData:[ |
|
|
|
|
{ |
|
|
|
|
name:'单眼视力',monment:'上午 9:00-9:30',time:'2023-01-08',tip:'门诊楼3楼眼科门诊',status:1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name:'听力',monment:'上午 9:00-9:30',time:'2023-01-08',tip:'门诊楼3楼耳科门诊',status:2 |
|
|
|
|
} |
|
|
|
|
]}, |
|
|
|
|
{time:'2022-01-15',examData:[ |
|
|
|
|
{ |
|
|
|
|
name:'单眼视力',monment:'上午 9:00-9:30',time:'2022-01-15',tip:'门诊楼3楼眼科门诊',status:3 |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
@ -38,9 +60,11 @@ export default {}; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
background: #f9f9f9; |
|
|
|
|
position: absolute; |
|
|
|
|
.exam_box { |
|
|
|
|
background: #fff; |
|
|
|
|
padding: 0.5rem 0.24rem 0 0.24rem; |
|
|
|
|
margin-bottom: 0.2rem; |
|
|
|
|
|
|
|
|
|
.time_box { |
|
|
|
|
font-size: 0.3rem; |
|
|
|
|
@ -52,10 +76,10 @@ export default {}; |
|
|
|
|
|
|
|
|
|
.pro_box { |
|
|
|
|
width: 98%; |
|
|
|
|
margin-top: 0.2rem; |
|
|
|
|
margin-top: 0.4rem; |
|
|
|
|
background: #fff; |
|
|
|
|
margin: 0.4rem auto; |
|
|
|
|
margin-bottom: 0.7rem; |
|
|
|
|
// margin: 0.4rem auto; |
|
|
|
|
// margin-bottom: 0.7rem; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.pro_top{ |
|
|
|
|
@ -94,8 +118,7 @@ export default {}; |
|
|
|
|
.pro_bottom{ |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
height: 0.6rem; |
|
|
|
|
margin-top: 0.24rem; |
|
|
|
|
height: 1.2rem; |
|
|
|
|
|
|
|
|
|
.pro_left{ |
|
|
|
|
display: flex; |
|
|
|
|
@ -128,6 +151,13 @@ export default {}; |
|
|
|
|
color: #999; |
|
|
|
|
margin-left: 0.24rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tips{ |
|
|
|
|
color: #00B578; |
|
|
|
|
} |
|
|
|
|
.cancel_tip{ |
|
|
|
|
color: #F93A4A; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.pro_right{ |
|
|
|
|
height: 100%; |
|
|
|
|
@ -144,7 +174,15 @@ export default {}; |
|
|
|
|
justify-content: center; |
|
|
|
|
font-size: 0.24rem; |
|
|
|
|
color: #1677FF; |
|
|
|
|
margin-right: 0.24rem; |
|
|
|
|
} |
|
|
|
|
.finish{ |
|
|
|
|
background: #E5E5E5; |
|
|
|
|
color: #999; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.cancel_item{ |
|
|
|
|
background: rgba(125, 125, 125,.2); |
|
|
|
|
color: #999; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|