|
|
|
@ -29,13 +29,13 @@
|
|
|
|
<view class="osname">
|
|
|
|
<view class="osname">
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<text class="txt">课程:{{item.courseName}}</text>
|
|
|
|
<text class="txt">课程:{{item.courseName}}</text>
|
|
|
|
<text class="txt" style="margin-left: 30rpx;">班级:{{item.claName}} </text>
|
|
|
|
<!-- <text class="txt" style="margin-left: 30rpx;">班级:{{item.claName}} </text>-->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<text class="txt">教练:{{item.teacherName }}</text>
|
|
|
|
<text class="txt">教练:{{item.teacherName }}</text>
|
|
|
|
<text class="txt" style="margin-left: 30rpx;">教室:{{item.roomName}}</text>
|
|
|
|
<text class="txt" style="margin-left: 30rpx;">教室:{{item.roomName?item.roomName:'待定'}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<text class="txt">上课时间:{{ item.claDate+' '+item.startTime+(item.endTime?'-'+item.endTime:'')}}</text>
|
|
|
|
<text class="txt">上课时间:{{ item.claDate+' '+formatTime(item.startTime)+(item.endTime?'-'+formatTime(item.endTime):'')}}</text>
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<text class="txt">预约人数:{{item.bookAttendCnt}}</text>
|
|
|
|
<text class="txt">预约人数:{{item.bookAttendCnt}}</text>
|
|
|
|
<text class="txt" style="margin-left: 30rpx;">可容纳人数:{{item.atClassCnt}} </text>
|
|
|
|
<text class="txt" style="margin-left: 30rpx;">可容纳人数:{{item.atClassCnt}} </text>
|
|
|
|
@ -107,6 +107,10 @@
|
|
|
|
},100);
|
|
|
|
},100);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
formatTime(timeStr) {
|
|
|
|
|
|
|
|
// 假设 timeStr 格式为 "HH:MM:SS"
|
|
|
|
|
|
|
|
return timeStr.slice(0, 5); // 取前5位 "HH:MM"
|
|
|
|
|
|
|
|
},
|
|
|
|
getimgRemoteFile(img){
|
|
|
|
getimgRemoteFile(img){
|
|
|
|
if(img){
|
|
|
|
if(img){
|
|
|
|
img=img.split(',')[0];
|
|
|
|
img=img.split(',')[0];
|
|
|
|
|