授课时间

This commit is contained in:
lmj
2022-12-26 17:28:13 +08:00
parent 26c0946ab5
commit b0b9e51622
2 changed files with 24 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ body {margin: 0px;padding: 0px;}
.course-card-favorite{ .course-card-favorite{
position: absolute; position: absolute;
right:25px; right:25px;
bottom: 72px; bottom: 84px;
} }
// margin-right: 35px; // margin-right: 35px;
@@ -254,7 +254,7 @@ body {margin: 0px;padding: 0px;}
.course-title { .course-title {
height: 44px; height: 44px;
// margin: 10px 0; // margin: 10px 0;
margin: 10px 0 10px 0px; margin: 10px 0 0px 0px;
line-height: 24px; line-height: 24px;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
@@ -383,7 +383,7 @@ body {margin: 0px;padding: 0px;}
.course-card-favorite{ .course-card-favorite{
position: absolute; position: absolute;
right:20px; right:20px;
bottom: 72px; bottom: 84px;
} }
.course-image-box { .course-image-box {
width:218; width:218;

View File

@@ -95,7 +95,12 @@
<span v-if="cinfo.type == 30" class="course-type-left">线下课</span> <span v-if="cinfo.type == 30" class="course-type-left">线下课</span>
<span v-if="cinfo.type == 40" class="course-type-left">学习项目</span> <span v-if="cinfo.type == 40" class="course-type-left">学习项目</span>
</div> </div>
<div style="width:80%" class="course-title two-line-ellipsis" :title="cinfo.title" v-html="cinfo.name"></div> <div style="width:80%" class="course-title two-line-ellipsis" :title="cinfo.title" v-html="cinfo.name">
</div>
<div class="couresstartTime"> <span v-if="startTime">授课时间{{ cinfo.startTime }}</span> </div>
<div class="course-info"> <div class="course-info">
<div class="course-info-user"> <div class="course-info-user">
<!-- <span class="course-info-author" v-if="cinfo.teacher">{{cinfo.teacher=='BOE教师'? '':cinfo.teacher}}</span> --> <!-- <span class="course-info-author" v-if="cinfo.teacher">{{cinfo.teacher=='BOE教师'? '':cinfo.teacher}}</span> -->
@@ -824,6 +829,11 @@ export default {
if (res.status == 200 && res.result.list.length > 0) { if (res.status == 200 && res.result.list.length > 0) {
this.totalPages = res.result.totalPages; this.totalPages = res.result.totalPages;
res.result.list.forEach(item => { res.result.list.forEach(item => {
// item.startTime
if(item.startTime != '') {
let time = item.startTime.split('-');
item.startTime = `${time[0]}${time[1]}${time[2]}`
}
//教师转化 //教师转化
if(item.teacher){ if(item.teacher){
let dotIdx=item.teacher.indexOf(','); let dotIdx=item.teacher.indexOf(',');
@@ -844,7 +854,7 @@ export default {
} }
}); });
this.courseList.push(...res.result.list); this.courseList.push(...res.result.list);
this.moreState = 1; this.moreState = 1;
} else { } else {
@@ -948,6 +958,15 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.couresstartTime{
height: 14px;
font-size: 14px;
color: #666;
// position: absolute;
// right:2px;
// height: 20px;
// bottom: 50px;
}
.interact-bar-value{ .interact-bar-value{
color: #999; color: #999;
} }