mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
提交
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
</div>
|
||||
<div class="list-text">
|
||||
<h6 class="two-line-ellipsis">{{item.name}}</h6>
|
||||
<span>2022年2月18日</span>
|
||||
<span>{{item.publishTime}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-bottom">
|
||||
@@ -202,7 +202,7 @@
|
||||
</div>
|
||||
<div class="list-text">
|
||||
<h6 class="two-line-ellipsis">{{item.name}}</h6>
|
||||
<span>2022年2月18日</span>
|
||||
<span>{{item.publishTime}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-bottom">
|
||||
@@ -246,7 +246,7 @@
|
||||
</div>
|
||||
<div class="list-text">
|
||||
<h6 class="two-line-ellipsis">{{item.courseName}}</h6>
|
||||
<span>2022年2月18日</span>
|
||||
<span>{{item.publishTime}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-bottom">
|
||||
@@ -743,6 +743,12 @@ export default {
|
||||
getAnkingData() {
|
||||
apiCourse.ranking().then(res => {
|
||||
if (res.status == 200) {
|
||||
res.result.forEach(item=>{
|
||||
if(item.publishTime != '') {
|
||||
let time = item.publishTime.split('-');
|
||||
item.publishTime = `${time[0]}年${time[1]}月${time[2]}日`
|
||||
}
|
||||
})
|
||||
this.ankingList = res.result;
|
||||
}
|
||||
});
|
||||
@@ -750,6 +756,12 @@ export default {
|
||||
getScoreList() {
|
||||
apiCourse.scorelist(5).then(res => {
|
||||
if (res.status == 200) {
|
||||
res.result.forEach(item=>{
|
||||
if(item.publishTime != '') {
|
||||
let time = item.publishTime.split('-');
|
||||
item.publishTime = `${time[0]}年${time[1]}月${time[2]}日`
|
||||
}
|
||||
})
|
||||
this.scorelist = res.result;
|
||||
}
|
||||
});
|
||||
@@ -757,6 +769,12 @@ export default {
|
||||
getHotList() {
|
||||
apiCourse.studyCounts(5).then(res => {
|
||||
if (res.status == 200) {
|
||||
res.result.forEach(item=>{
|
||||
if(item.publishTime != '') {
|
||||
let time = item.publishTime.split('-');
|
||||
item.publishTime = `${time[0]}年${time[1]}月${time[2]}日`
|
||||
}
|
||||
})
|
||||
this.hotList = res.result;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -54,10 +54,8 @@
|
||||
<div style="display: flex;justify-content:space-between;">
|
||||
<div style="width: 120px;">
|
||||
<author :avatar="qa.authorInfo.avatar" :name="qa.authorInfo.name" :sex="qa.authorInfo.sex"></author>
|
||||
<!-- <author :avatar="qa.authorInfo.avatar" :name="qa.authorInfo.name" :info="qa.authorInfo.orgInfo"></author> -->
|
||||
</div>
|
||||
<div><interactBar nodeWidth="60px" :readonly="true" :type="4" :data="qa" @addAnswers="qaAnswer(qa)" :shares="true" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar></div>
|
||||
<!-- <div class="qa-info-re" @click="qaAnswer(qa)">快速回答</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user