mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交
This commit is contained in:
@@ -15,7 +15,12 @@
|
||||
<course-image width="254px" height="144px" :course="item.info"></course-image>
|
||||
</div>
|
||||
<div class="data-cen pointer" @click="jumpDetail(item)">
|
||||
<h6 class="course-tit portal-title-tow">{{item.info.courseName || item.contentInfo}} <span class="score-info" v-if="toScore(item.info.lastScore) > 0">{{toScore(item.info.lastScore)}}分</span> </h6>
|
||||
<h6 class="course-tit portal-title-tow">{{item.info.courseName || item.contentInfo}}
|
||||
<span class="sysType-name" v-if="item.info.sysType1 !='' && item.info.sysType1 != 0">{{sysTypeName(item.info.sysType1)}}</span>
|
||||
<span class="sysType-name" v-if="item.info.sysType2 !='' && item.info.sysType2 != 0">{{sysTypeName(item.info.sysType2)}}</span>
|
||||
<span class="sysType-name" v-if="item.info.sysType3 !='' && item.info.sysType3 != 0">{{sysTypeName(item.info.sysType3)}}</span>
|
||||
<span class="score-info" v-if="toScore(item.info.lastScore) > 0">{{toScore(item.info.lastScore)}}分</span>
|
||||
</h6>
|
||||
<p class="title-info">{{item.info.summary}}</p>
|
||||
<div class="pro-line"> <div>当前进度:</div> <div style="width:200px"><el-progress :percentage="item.info.progress"></el-progress></div></div>
|
||||
<p class="portal-time">最新一次学习时间:{{item.eventTime}}</p>
|
||||
@@ -55,7 +60,7 @@
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
...mapGetters(['curIdentity','identity','userInfo']),
|
||||
...mapGetters(['curIdentity','identity','userInfo','sysTypeMap']),
|
||||
},
|
||||
components: {
|
||||
courseImage,
|
||||
@@ -82,6 +87,10 @@
|
||||
this.pageId = this.$xpage.getHomeId(this.$route);
|
||||
},
|
||||
methods:{
|
||||
sysTypeName(code){
|
||||
if(code==''){return '';}
|
||||
return this.sysTypeMap.get(code);
|
||||
},
|
||||
emitHide(id) {
|
||||
this.$emit('hideIndex',id)
|
||||
},
|
||||
@@ -111,6 +120,18 @@
|
||||
margin: 0;
|
||||
font-size: 18px !important;
|
||||
line-height: 25px;
|
||||
.sysType-name{
|
||||
display: inline-block;
|
||||
padding:0px 8px;
|
||||
margin-top: 5px;
|
||||
line-height: 24px;
|
||||
font-size: 12px;
|
||||
border-radius:2px;
|
||||
margin-right: 8px;
|
||||
color: #2C68FF;
|
||||
height: 24px;
|
||||
background: rgba(44,104,255,0.06);
|
||||
}
|
||||
}
|
||||
.title-info{
|
||||
font-size: 14px;
|
||||
|
||||
Reference in New Issue
Block a user