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:
@@ -9,7 +9,10 @@
|
|||||||
<div class="flex-between" @click="jump(item)">
|
<div class="flex-between" @click="jump(item)">
|
||||||
<div class="uc-course-name ">
|
<div class="uc-course-name ">
|
||||||
<div class="uc-coures-name-left one-line-ellipsis">
|
<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>
|
||||||
<div class="canfavo">
|
<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;">
|
<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>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uc-bpttom">
|
<div class="uc-bpttom">
|
||||||
<div class="uc-course-text"> <i class="el-icon-time"></i> 收藏时间:{{ item.time || item.favoritesTime}}</div>
|
<div class="uc-course-text"> <i class="el-icon-time"></i> 收藏时间:{{ item.time || item.favoritesTime}}</div>
|
||||||
<div class="uc-coures-button">
|
<div class="uc-coures-button">
|
||||||
@@ -33,6 +36,7 @@
|
|||||||
<script>
|
<script>
|
||||||
// import interactBar from '@/components/Portal/interactBar.vue';
|
// import interactBar from '@/components/Portal/interactBar.vue';
|
||||||
import courseImage from '@/components/Course/courseImage.vue';
|
import courseImage from '@/components/Course/courseImage.vue';
|
||||||
|
import { toScore} from '@/utils/tools.js';
|
||||||
export default {
|
export default {
|
||||||
name: 'comStudyItem',
|
name: 'comStudyItem',
|
||||||
props: {
|
props: {
|
||||||
@@ -53,6 +57,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isShow: false,
|
isShow: false,
|
||||||
|
toScore,
|
||||||
oData: {
|
oData: {
|
||||||
comments: '100',
|
comments: '100',
|
||||||
favorites: '20',
|
favorites: '20',
|
||||||
@@ -76,7 +81,7 @@ export default {
|
|||||||
// } else {
|
// } else {
|
||||||
// this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
// this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||||
// }
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
delItem(item) {
|
delItem(item) {
|
||||||
this.$confirm('您确定要删除所选收藏吗?', '删除提示', {
|
this.$confirm('您确定要删除所选收藏吗?', '删除提示', {
|
||||||
@@ -148,7 +153,7 @@ export default {
|
|||||||
.uc-bpttom{
|
.uc-bpttom{
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.uc-coures-button{
|
.uc-coures-button{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
@@ -204,7 +209,7 @@ export default {
|
|||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
|
|
||||||
.uc-course-img {
|
.uc-course-img {
|
||||||
position: relative;
|
position: relative;
|
||||||
::v-deep img {
|
::v-deep img {
|
||||||
@@ -212,7 +217,7 @@ export default {
|
|||||||
height: 119px;
|
height: 119px;
|
||||||
border: 1px solid #f4f4f5;
|
border: 1px solid #f4f4f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.flex-between{
|
.flex-between{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user