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:
@@ -9,7 +9,10 @@
|
||||
<div class="flex-between" @click="jump(item)">
|
||||
<div class="uc-course-name ">
|
||||
<div class="uc-coures-name-left one-line-ellipsis">
|
||||
<span >{{ item.title }} <span class="bq-coures" v-if="isAll">#课程#</span> </span>
|
||||
<span >{{ item.title }}
|
||||
<span class="bq-coures" v-if="isAll">#课程# </span>
|
||||
<span class="score-info" v-if="toScore(item.score) > 0"> {{toScore(item.score)}}分</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="canfavo">
|
||||
<el-button v-if="remove" @click.stop="delItem(item)" type="text" icon="el-icon-star-on" style="color:#8590A6;font-size:14px;">
|
||||
@@ -33,6 +36,7 @@
|
||||
<script>
|
||||
// import interactBar from '@/components/Portal/interactBar.vue';
|
||||
import courseImage from '@/components/Course/courseImage.vue';
|
||||
import { toScore} from '@/utils/tools.js';
|
||||
export default {
|
||||
name: 'comStudyItem',
|
||||
props: {
|
||||
@@ -53,6 +57,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isShow: false,
|
||||
toScore,
|
||||
oData: {
|
||||
comments: '100',
|
||||
favorites: '20',
|
||||
|
||||
Reference in New Issue
Block a user