mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<!-- <img style="width:254px;height:144px" src="/images/list-img.png" alt=""> -->
|
<!-- <img style="width:254px;height:144px" src="/images/list-img.png" alt=""> -->
|
||||||
<div class="data-cen">
|
<div class="data-cen">
|
||||||
<h6 class="course-tit portal-title-tow">{{item.info.name || item.contentInfo}} <span class="score-info">{{item.info.score}}分</span> </h6>
|
<h6 class="course-tit portal-title-tow">{{item.info.name || item.contentInfo}} <span class="score-info">{{toScore(item.info.score)}}分</span> </h6>
|
||||||
<p class="title-info">{{item.info.summary}}</p>
|
<p class="title-info">{{item.info.summary}}</p>
|
||||||
<div class="pro-line"> <div>当前进度:</div> <div style="width:200px"><el-progress :percentage="50"></el-progress></div></div>
|
<div class="pro-line"> <div>当前进度:</div> <div style="width:200px"><el-progress :percentage="50"></el-progress></div></div>
|
||||||
<p class="portal-time">最新一次学习时间:2022-5-28 22:30:28</p>
|
<p class="portal-time">最新一次学习时间:2022-5-28 22:30:28</p>
|
||||||
@@ -41,10 +41,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { toScore} from '@/utils/tools.js';
|
||||||
import courseImage from "@/components/Course/courseImage.vue";
|
import courseImage from "@/components/Course/courseImage.vue";
|
||||||
export default{
|
export default{
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
toScore,
|
||||||
courseList:[]
|
courseList:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -425,7 +425,9 @@ export default {
|
|||||||
this.loading=true;
|
this.loading=true;
|
||||||
if(this.type==1){
|
if(this.type==1){
|
||||||
postData.title=this.data.name;
|
postData.title=this.data.name;
|
||||||
}else{
|
}else if(this.type==60){
|
||||||
|
postData.title=this.data.content;
|
||||||
|
} else {
|
||||||
postData.title=this.data.title;
|
postData.title=this.data.title;
|
||||||
}
|
}
|
||||||
if(this.isFavorite) {// 已经收藏,再次点击取消收藏
|
if(this.isFavorite) {// 已经收藏,再次点击取消收藏
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
<div class="note-all">
|
<div class="note-all">
|
||||||
<div class="note-all-info" v-for="(item,idx) in datalist" :key="idx">
|
<div class="note-all-info" v-for="(item,idx) in datalist" :key="idx">
|
||||||
<div class="all-title">
|
<div class="all-title">
|
||||||
<h3> {{ item.courseName }} </h3>
|
<h3 :class="item.courseId != ''?'pointer':''" @click="routerTo(item)"> {{ item.courseName }} </h3>
|
||||||
<div v-if="item.type==2">导入</div>
|
<div v-if="item.type==2">导入</div>
|
||||||
<div v-if="item.playTime != ''"><img :src="`${webBaseUrl}/images/coteplay.png`" alt=""> {{ getHMS(item.playTime) }} </div>
|
<div v-if="item.playTime != ''"><img :src="`${webBaseUrl}/images/coteplay.png`" alt=""> {{ getHMS(item.playTime) }} </div>
|
||||||
<span style="margin-left:14px">{{item.openType == 9?'公开':'私密'}}</span>
|
<span style="margin-left:14px">{{item.openType == 9?'公开':'私密'}}</span>
|
||||||
@@ -248,6 +248,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
routerTo(item) {
|
||||||
|
if(item.courseId) {
|
||||||
|
this.$router.push('/course/studyindex?id+'+item.courseId);
|
||||||
|
}
|
||||||
|
},
|
||||||
exportCommand(e) {
|
exportCommand(e) {
|
||||||
this.exportType = e;
|
this.exportType = e;
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user