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.
144 lines
4.1 KiB
144 lines
4.1 KiB
<template>
|
|
<!-- 模拟器 -->
|
|
<view class="consultItem">
|
|
<view class="top_row">
|
|
<view class="flex">
|
|
<view class="tag" :class="{tag2: info.subject==2,tag3: info.subject==3}">{{info.subject==2?'科目二实操':info.subject==3?'科目三实操':'不限科目'}}</view>
|
|
<view class="schoolName oneRowText">{{info.siteName}}</view>
|
|
</view>
|
|
<!-- <view class="text" v-if="info.loginStatus==9">已取消</view>
|
|
<view class="text" v-else>{{statusTxt[info.loginStatus]}}</view> -->
|
|
</view>
|
|
<view class="target">
|
|
<view class="row">
|
|
<view class="leftLab">
|
|
<view class="icon">
|
|
<image src="@/static/images/car/coachIcon.png" mode="aspectFill"></image>
|
|
</view>
|
|
<view class="lab">预约教练</view>
|
|
</view>
|
|
<view class="name">{{info.coachName}}</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="leftLab">
|
|
<view class="icon">
|
|
<image src="@/static/images/car/ic_chexing.png" mode="aspectFill"></image>
|
|
</view>
|
|
<view class="lab">预约车辆</view>
|
|
</view>
|
|
<view class="name">{{info.carNumber}}</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="leftLab">
|
|
<view class="icon">
|
|
<image src="@/static/images/car/ic_shijian.png" mode="aspectFill"></image>
|
|
</view>
|
|
<view class="lab">预约日期</view>
|
|
</view>
|
|
<view class="name">{{info.classDate}}</view>
|
|
</view>
|
|
<view class="row rowBotton" v-for="(item,index) in info.bookingDetailRespVOS" :key="index" :class="{blue: (item.loginStatus==1||item.loginStatus==1),hui: (item.loginStatus==3||item.loginStatus==9)}">
|
|
<view class="leftLab" v-if="index==0">
|
|
<view class="icon">
|
|
<image src="@/static/images/car/listIcon.png" mode="aspectFill"></image>
|
|
</view>
|
|
<view class="lab">预约时段</view>
|
|
</view>
|
|
<view class="leftLab" v-else></view>
|
|
<view class="classTime" @click="chooseClassTime(item)">
|
|
<view class="radioIcon">
|
|
<view class="radioW" v-if="item.loginStatus==0" >
|
|
<image src="@/static/images/car/check_cli.png" mode="" v-if="ids.indexOf(item.id)!=-1"></image>
|
|
<image src="@/static/images/car/check_nor.png" mode="" v-else></image>
|
|
</view>
|
|
</view>
|
|
<view class="time" :class="{blue: (item.loginStatus==1||item.loginStatus==1),hui: (item.loginStatus==3||item.loginStatus==9)}">{{item.classTime}}</view>
|
|
</view>
|
|
<view class="status">
|
|
<view class="text hui" v-if="item.loginStatus==9">已取消</view>
|
|
<view class="text" v-else >{{statusTxt[item.loginStatus]}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="border_bottom">
|
|
<view class="dateBox">
|
|
<view class="date">提交预约时间:{{$u.timeFormat(info.createTime, 'yyyy-mm-dd hh:MM:ss')}}</view>
|
|
<view class="date" v-if="info.loginStatus==3||info.loginStatus==9"><text>{{ info.loginStatus==3?'过期时间':'取消时间'}}</text> :{{$u.timeFormat(info.updateTime, 'yyyy-mm-dd hh:MM:ss')}}</view>
|
|
<view class="date" v-if="info.signOutTime">完成时间:{{$u.timeFormat(info.signOutTime, 'yyyy-mm-dd hh:MM:ss')}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['info'],
|
|
data() {
|
|
return {
|
|
statusTxt: ['未签到','已签到','已签退','旷课','已取消',''],//0:未签到,1:已签到,2:已签退,3:旷课,9:已取消
|
|
ids: []
|
|
}
|
|
},
|
|
methods: {
|
|
chooseClassTime(item) {
|
|
let index = this.ids.indexOf(item.id)
|
|
if(index==-1) {
|
|
this.ids.push(item.id)
|
|
}else {
|
|
this.ids.splice(index, 1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.rowBotton {
|
|
border-bottom: 1px solid #f8f8f8;
|
|
&.blue {
|
|
.classTime {
|
|
.time {
|
|
color: $themC;
|
|
}
|
|
}
|
|
.status {
|
|
.text {
|
|
color: $themC;
|
|
}
|
|
}
|
|
}
|
|
&.hui {
|
|
.classTime {
|
|
.time {
|
|
color: #ADADAD;
|
|
}
|
|
}
|
|
.status {
|
|
.text {
|
|
color: #ADADAD;
|
|
}
|
|
}
|
|
}
|
|
&:last-child {
|
|
border-bottom: none
|
|
}
|
|
.leftLab {
|
|
width: 160rpx;
|
|
}
|
|
.classTime {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.radioIcon {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
margin-right: 20rpx;
|
|
.radioW {
|
|
width: 100%;
|
|
height: 100%
|
|
}
|
|
}
|
|
}
|
|
@import '../comp/comp.scss';
|
|
|
|
</style>
|