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.
150 lines
3.7 KiB
150 lines
3.7 KiB
<template>
|
|
<!-- 实操 -->
|
|
<view class="consultItem">
|
|
<view class="top_row">
|
|
<view class="flex">
|
|
<view class="schoolName">{{item.studentName}} <text style="margin-left: 6px;">{{ item.studentPhone}}</text></view>
|
|
</view>
|
|
<view class="status" >
|
|
<view class="text">{{loginStatusTxt[item.loginStatus]}}</view>
|
|
<view class="icon" v-if="!item.bookingDetailRespVOS.length">
|
|
<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="target">
|
|
<view class="row">
|
|
<view class="iconImg">
|
|
<image src="@/static/images/index/listIcon.png" mode=""></image>
|
|
</view>
|
|
<view class="name">训练科目:{{ subjectTxt[item.subject] }}</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="iconImg">
|
|
<image src="@/static/images/index/site.png" mode=""></image>
|
|
</view>
|
|
<view class="name">预约场地:{{item.siteName}}</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="iconImg">
|
|
<image src="@/static/images/index/carIcon.png" mode=""></image>
|
|
</view>
|
|
<view class="name">预约车辆:{{item.carNumber}}</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="iconImg">
|
|
<image src="@/static/images/index/timerIcon.png" mode=""></image>
|
|
</view>
|
|
<view class="name">预约时间:{{item.classDate}}</view>
|
|
</view>
|
|
<view class="row" style="align-items: flex-start;" v-if="item.bookingDetailRespVOS&&item.bookingDetailRespVOS.length">
|
|
<view class="leftBox">
|
|
<view class="iconImg">
|
|
<image src="@/static/images/index/timerIcon.png" mode=""></image>
|
|
</view>
|
|
<view class="name">预约时段:</view>
|
|
</view>
|
|
<view class="rightBox" >
|
|
<view class="name" v-for="(item2,index) in item.bookingDetailRespVOS">
|
|
<view class="timer_row " :class="{hui: (item2.loginStatus==9||item2.loginStatus==3), black: item2.loginStatus==0}">
|
|
<view class="time">{{item2.classTime}}</view>
|
|
<view class="status">{{loginStatusTxt[item2.loginStatus]}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['item'],
|
|
data() {
|
|
return {
|
|
subjectTxt: ['不限', '科目二', '科目三'],//:0:不限;2:科目二;3:科目三
|
|
loginStatusTxt: ['未签到', '已签到', '已签退', '已过期', '已取消'],//0:未签到,1:已签到,2:已签退,3:已过期,9:已取消
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.consultItem {
|
|
width: 100%;
|
|
.top_row {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 116rpx;
|
|
border-bottom: 2rpx dashed #E8E9EC;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.tag {
|
|
// width: 176rpx;
|
|
height: 60rpx;
|
|
background: rgba(250, 149, 25, 0.1);
|
|
border-radius: 8rpx;
|
|
text-align: center;
|
|
font-size: 28rpx;
|
|
color: #FA7919;
|
|
margin-right: 24rpx;
|
|
padding: 10rpx 18rpx;
|
|
}
|
|
.schoolName {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-left: 20rpx;
|
|
font-weight: 550;
|
|
}
|
|
.status {
|
|
display: flex;
|
|
align-items: center;
|
|
.text {
|
|
font-size: 28rpx;
|
|
color: $themC;
|
|
}
|
|
}
|
|
}
|
|
.target {
|
|
padding: 20rpx 0;
|
|
}
|
|
.row {
|
|
padding: 16rpx 0;
|
|
display: flex;
|
|
align-items: center;
|
|
.iconImg {
|
|
width: 32rpx;
|
|
height: 28rpx;
|
|
}
|
|
.name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
padding-left: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
.leftBox {
|
|
display: flex;
|
|
align-items: center;
|
|
// width: 200rpx;
|
|
}
|
|
.rightBox {
|
|
flex: 1;
|
|
}
|
|
.timer_row {
|
|
display: flex;
|
|
align-items: center;
|
|
color: $themC;
|
|
margin-bottom: 20rpx;
|
|
&.hui {
|
|
color: #999;
|
|
}
|
|
&.black {
|
|
color: #333;
|
|
}
|
|
.time {
|
|
margin-right: 40rpx;
|
|
}
|
|
}
|
|
</style>
|