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;">
|
||||
@@ -17,7 +20,7 @@
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="uc-bpttom">
|
||||
<div class="uc-course-text"> <i class="el-icon-time"></i> 收藏时间:{{ item.time || item.favoritesTime}}</div>
|
||||
<div class="uc-coures-button">
|
||||
@@ -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',
|
||||
@@ -76,7 +81,7 @@ export default {
|
||||
// } else {
|
||||
// this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||
// }
|
||||
|
||||
|
||||
},
|
||||
delItem(item) {
|
||||
this.$confirm('您确定要删除所选收藏吗?', '删除提示', {
|
||||
@@ -148,7 +153,7 @@ export default {
|
||||
.uc-bpttom{
|
||||
display: flex;
|
||||
position: relative;
|
||||
|
||||
|
||||
.uc-coures-button{
|
||||
position: absolute;
|
||||
margin-left: auto;
|
||||
@@ -204,7 +209,7 @@ export default {
|
||||
padding-left: 0px;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 15px;
|
||||
|
||||
|
||||
.uc-course-img {
|
||||
position: relative;
|
||||
::v-deep img {
|
||||
@@ -212,7 +217,7 @@ export default {
|
||||
height: 119px;
|
||||
border: 1px solid #f4f4f5;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.flex-between{
|
||||
flex: 1;
|
||||
|
||||
Reference in New Issue
Block a user