mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
授课时间
This commit is contained in:
@@ -95,7 +95,12 @@
|
||||
<span v-if="cinfo.type == 30" class="course-type-left">线下课</span>
|
||||
<span v-if="cinfo.type == 40" class="course-type-left">学习项目</span>
|
||||
</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-user">
|
||||
<!-- <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) {
|
||||
this.totalPages = res.result.totalPages;
|
||||
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){
|
||||
let dotIdx=item.teacher.indexOf(',');
|
||||
@@ -844,7 +854,7 @@ export default {
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
this.courseList.push(...res.result.list);
|
||||
this.moreState = 1;
|
||||
} else {
|
||||
@@ -948,6 +958,15 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.couresstartTime{
|
||||
height: 14px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
// position: absolute;
|
||||
// right:2px;
|
||||
// height: 20px;
|
||||
// bottom: 50px;
|
||||
}
|
||||
.interact-bar-value{
|
||||
color: #999;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user