You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.8 KiB
121 lines
2.8 KiB
<template>
|
|
<view class="book-page btPadding">
|
|
<view class="list-box">
|
|
<list-box class="item-wrapper" v-for="(item,key) in list" :key="key" :leftTitle="item.leftTitle" :rightTitle="item.rightTitle?item.rightTitle:''">
|
|
{{item.custom}}
|
|
</list-box>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import listBox from '@/components/listBox.vue';
|
|
export default {
|
|
data() {
|
|
return {
|
|
// data:['status_wait', 'status_out_num', 'status_down', 'status_expire', 'status_ing', 'status_down', 'status_expire', 'status_ing'],
|
|
status:'status_wait',
|
|
list:[
|
|
{'leftTitle':'状态','custom':""},
|
|
{'leftTitle':'就诊人','rightTitle':'上官梓涵'},
|
|
{'leftTitle':'就诊医院','rightTitle':'广安门中医医院西单门诊部'},
|
|
{'leftTitle':'就诊科室','rightTitle':'针灸科'},
|
|
{'leftTitle':'医生','rightTitle':'李静'},
|
|
{'leftTitle':'排队情况','isCustom':true},
|
|
{'leftTitle':'就诊时间','isCustom':true}
|
|
]
|
|
}
|
|
},
|
|
onShow() {
|
|
this.list[0].custom = "<view class='"+this.status+" status'><view class='over'>候诊</view></view>"
|
|
},
|
|
components:{
|
|
listBox
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.book-page{
|
|
height: 100vh;
|
|
width: 100%;
|
|
background: #F6F6F6;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
.item-wrapper{
|
|
.rightBox{
|
|
.status{
|
|
color: red;
|
|
}
|
|
}
|
|
}
|
|
|
|
.list-box{
|
|
width: calc(100% - 34rpx);
|
|
height: auto;
|
|
margin: 0 auto;
|
|
overflow: hidden;
|
|
border-radius: 0 0 8rpx 8rpx;
|
|
.item-wrapper{
|
|
// .rightBox{
|
|
// .status{
|
|
// color: red;
|
|
// display: flex;
|
|
// justify-content: flex-end;
|
|
// view{
|
|
// display: flex;
|
|
// border-radius: 6rpx;
|
|
// font-size: 22rpx;
|
|
// height: 32rpx;
|
|
// line-height: 32rpx;
|
|
// padding: 0 10rpx;
|
|
// box-sizing: border-box;
|
|
// min-width: 90rpx;
|
|
// display: block;
|
|
// text-align: center;
|
|
// }
|
|
// &.status_wait{
|
|
// view{
|
|
// background: #F8FFF7;
|
|
// border: 1rpx solid #5BD07A;
|
|
// color: #58CA7F;
|
|
// }
|
|
// }
|
|
// &.status_out_num{
|
|
// view{
|
|
// background: #FFFAF7;
|
|
// border: 1rpx solid #FE6710;
|
|
// color: #FE6710;
|
|
// }
|
|
// }
|
|
// &.status_down{
|
|
// view{
|
|
// background: #FCFCFC;
|
|
// border: 1rpx solid #AEB0B8;
|
|
// color: #B6B8BF;
|
|
// }
|
|
// }
|
|
// &.status_expire{
|
|
// view{
|
|
// background: #FCFCFC;
|
|
// border: 1rpx solid #AEB0B8;
|
|
// color: #B6B8BF;
|
|
// }
|
|
// }
|
|
// &.status_ing{
|
|
// view{
|
|
// border: 1rpx solid #5FA1CB;
|
|
// background: #F7FCFF;
|
|
// color: #5FA1CB;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|