mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
Merge branch 'zcwyTeacher' into 'master'
主页课程好评榜修改 See merge request !63
This commit is contained in:
@@ -427,7 +427,7 @@
|
||||
<p class="ranking-title">课程好评榜</p>
|
||||
<ul class="xindex-ranking-review" style="overflow: auto;margin: 0;top: 0;">
|
||||
<li
|
||||
@click="jumcasedet(item)"
|
||||
@click="toCourseDetail(item)"
|
||||
class="xindex-ranking-li title-line-ellipsis"
|
||||
v-for="(item, index) in Positive"
|
||||
:key="'bb' + index"
|
||||
@@ -439,7 +439,7 @@
|
||||
<span
|
||||
class="portal-title-desc index-one-line-ellipsis title-line-ellipsis"
|
||||
style="font-size: 14px; color: #04243c; line-height: 26px"
|
||||
>{{ item.title }}</span
|
||||
>{{ item.name }}</span
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -1226,10 +1226,24 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getPositive() {
|
||||
apiCase.queryComments(10).then(res => {
|
||||
// 这个是案例的好评
|
||||
// apiCase.queryComments(10).then(res => {
|
||||
// if (res.status == 200) {
|
||||
// this.Positive = res.result;
|
||||
// console.log(res);
|
||||
// }
|
||||
// });
|
||||
// 修改成课程的好评
|
||||
apiCourse.scorelist(10, 2).then(res => {
|
||||
if (res.status == 200) {
|
||||
res.result.forEach(item => {
|
||||
if (item.publishTime != '') {
|
||||
item.coverImg = item.images;
|
||||
let time = item.publishTime.split('-');
|
||||
item.publishTime = `${time[0]}年${time[1]}月${time[2]}日`
|
||||
}
|
||||
})
|
||||
this.Positive = res.result;
|
||||
console.log(res);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user