|
@@ -21,7 +21,7 @@
|
|
|
contentItemTopRowChild: true,
|
|
|
contentItemTopRowOne: index === 0,
|
|
|
contentItemTopRowTwo: index === 1,
|
|
|
- contentItemTopRowThree: index === 2
|
|
|
+ contentItemTopRowThree: index === 2,
|
|
|
}"
|
|
|
v-for="(item, index) in rankListTopThree"
|
|
|
:key="index"
|
|
@@ -108,19 +108,15 @@ export default {
|
|
|
// 查询:排行榜信息
|
|
|
getRankListFun() {
|
|
|
this.$store.commit("toggleLoading", true);
|
|
|
- let path = {
|
|
|
- userName: this.user.userInfo.userName
|
|
|
+ let params = {
|
|
|
+ type: "ZongBang"
|
|
|
};
|
|
|
this.$_http
|
|
|
- .get(this.$pathParams(this.$_API.JTXT_GET_USER_FAVORITES, path))
|
|
|
+ .get(this.$_API.JTXT_GET_LEADERBOARD, { params })
|
|
|
.then(res => {
|
|
|
- res.data.materials.forEach((item, index) => {
|
|
|
- this.getFavoritesItemDeitalFun(
|
|
|
- item,
|
|
|
- index,
|
|
|
- index + 1 === res.data.materials.length
|
|
|
- );
|
|
|
- });
|
|
|
+ console.log(res);
|
|
|
+ this.finished = true;
|
|
|
+ this.loading = false;
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$store.commit("toggleLoading", false);
|