首页课程排行榜预览

This commit is contained in:
lmj
2022-12-11 15:12:57 +08:00
parent ab7e8546a2
commit e42169429b
3 changed files with 720 additions and 1 deletions

View File

@@ -189,7 +189,9 @@
</div>
</div>
<div class="list-bottom">
<interactBar :type="1" :data="item" :couseViews="false" :shares="false" :views="false"></interactBar>
<couresinteract :type="1" :data="item" ></couresinteract>
<!-- <interactBar :type="1" :data="item" :couseViews="false" :shares="false" :views="false"></interactBar> -->
</div>
</div>
</a>
@@ -467,6 +469,7 @@
import apiUser from '@/api/system/user.js';
import apiCoursePortal from '@/api/modules/coursePortal.js';
import interactBar from '@/components/Portal/interactBar.vue';
import couresinteract from '@/components/Portal/course/couresinteract.vue';
import ad from '@/components/Portal/adFloat.vue';
import courseImage from '@/components/Course/courseImage.vue';
import articleImage from '@/components/Article/articleImage.vue';
@@ -491,6 +494,7 @@
portalFloatTools,
authorInfo,
interactBar,
couresinteract,
courseImage,
InterestCollection,
GuideBox,

View File

@@ -325,6 +325,7 @@ export default {
},
data() {
return {
resonimg:{},
formatDate,
formatNum:formatUserNumber,
@@ -384,6 +385,7 @@ export default {
totalPages: 1
};
},
mounted() {
let screenWidth = window.screen.availWidth;
if (screenWidth < 1280) {
@@ -851,6 +853,7 @@ export default {
}
})
this.scorelist = res.result;
// console.log(this.scorelist)
}
});
},
@@ -905,6 +908,10 @@ export default {
</script>
<style scoped lang="scss">
.interact-bar-value{
color: #999;
}
.couderbox{
// width: 5px;
// padding: 0;