Commit 50e7b59d authored by 徐一鸣's avatar 徐一鸣

【技术支持-问答中心】贡献榜数量调整

parent e60207ad
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="contributor_info" v-if="contributorQuizList"> <div class="contributor_info" v-if="contributorQuestionList">
<h3 class="contributor_title"> <h3 class="contributor_title">
<span>本月提问贡献榜</span> <span>本月提问贡献榜</span>
</h3> </h3>
<ul class="contributor_list"> <ul class="contributor_list">
<li <li
v-for="(item, index) in contributorQuizList" v-for="(item, index) in contributorQuestionList"
:key="'quiz_' + index" :key="'quiz_' + index"
> >
<span class="list_index" v-text="index + 1"></span> <span class="list_index" v-text="index + 1"></span>
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
return { return {
userInfo: null, userInfo: null,
contributorAnswerList: null, contributorAnswerList: null,
contributorQuizList: null, contributorQuestionList: null,
head_pic: require("../../../assets/imgs/img_head.png"), head_pic: require("../../../assets/imgs/img_head.png"),
}; };
}, },
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
}, },
getAnwerList() { getAnwerList() {
this.$http this.$http
.get("/apaas/support/qa/question/contribution") .get("/apaas/support/qa/answer/contribution")
.then(({ data }) => { .then(({ data }) => {
if (data.success) { if (data.success) {
this.contributorAnswerList = data.data || []; this.contributorAnswerList = data.data || [];
...@@ -95,10 +95,10 @@ export default { ...@@ -95,10 +95,10 @@ export default {
}); });
this.$http this.$http
.get("/apaas/support/qa/answer/contribution") .get("/apaas/support/qa/question/contribution")
.then(({ data }) => { .then(({ data }) => {
if (data.success) { if (data.success) {
this.contributorQuizList = data.data || []; this.contributorQuestionList = data.data || [];
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment