|
@@ -14,7 +14,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="margin-top-sm bg-white flex justify-around align-end" style="height: 350upx;">
|
|
|
|
|
|
|
+ <view v-if="!$u.test.isEmpty(rankList)" class="margin-top-sm bg-white flex justify-around align-end" style="height: 350upx;">
|
|
|
<view class="second text-center" @click="navWithParm(rankList[1].id)" v-if="!$u.test.isEmpty(rankList[1])">
|
|
<view class="second text-center" @click="navWithParm(rankList[1].id)" v-if="!$u.test.isEmpty(rankList[1])">
|
|
|
<view class="margin-top-sm">
|
|
<view class="margin-top-sm">
|
|
|
<u-avatar :src="rankList[1].avatar" size="120"></u-avatar>
|
|
<u-avatar :src="rankList[1].avatar" size="120"></u-avatar>
|
|
@@ -52,8 +52,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <block v-for="(item, index) in rankList.slice(3, rankList.length + 1)" :key="index">
|
|
|
|
|
- <view class="padding-sm flex justify-between align-center bg-white" @click="navWithParm(item.id)">
|
|
|
|
|
|
|
+ <block v-if="!$u.test.isEmpty(rankList)" >
|
|
|
|
|
+ <view class="padding-sm flex justify-between align-center bg-white" v-for="(item, index) in rankList.slice(3, rankList.length + 1)" :key="index" @click="navWithParm(item.id)">
|
|
|
<view class="flex justify-around align-center">
|
|
<view class="flex justify-around align-center">
|
|
|
<view class="padding-right text-black text-bold">{{item.rank}}</view>
|
|
<view class="padding-right text-black text-bold">{{item.rank}}</view>
|
|
|
<view class="padding-right">
|
|
<view class="padding-right">
|
|
@@ -97,6 +97,12 @@
|
|
|
return []
|
|
return []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ rankList: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default() {
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -108,11 +114,9 @@
|
|
|
{image: '/static/more.png', name: '更多', url: '/pages/activityList/activity/songRank'},
|
|
{image: '/static/more.png', name: '更多', url: '/pages/activityList/activity/songRank'},
|
|
|
],
|
|
],
|
|
|
activity: {},
|
|
activity: {},
|
|
|
- rankList: [],
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.getRankList();
|
|
|
|
|
this.getActivityDetail();
|
|
this.getActivityDetail();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -121,17 +125,6 @@
|
|
|
this.activity = res;
|
|
this.activity = res;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- getRankList() {
|
|
|
|
|
- let params={
|
|
|
|
|
- activityId:this.activityId,
|
|
|
|
|
- type:0,//选手排名
|
|
|
|
|
- current:1,
|
|
|
|
|
- size:20
|
|
|
|
|
- }
|
|
|
|
|
- this.$u.api.activity.rankList(params).then(res => {
|
|
|
|
|
- this.rankList = res.records;
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
navByIcon(path, index) {
|
|
navByIcon(path, index) {
|
|
|
let url;
|
|
let url;
|
|
|
if (index == 0) { //图片 和 活动详情
|
|
if (index == 0) { //图片 和 活动详情
|