|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
<text class="title">抢答</text>
|
|
|
|
|
</view>
|
|
|
|
|
<br/>
|
|
|
|
|
<text class="paimin">我的排名: 12</text>
|
|
|
|
|
<text class="paimin">我的排名: {{pm}}</text>
|
|
|
|
|
<transition name="fade-slide">
|
|
|
|
|
<view class="rank-list">
|
|
|
|
|
|
|
|
|
@ -54,6 +54,7 @@ const starttime=ref('123')
|
|
|
|
|
const rankList = ref([
|
|
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
const pm=ref(0)
|
|
|
|
|
onLoad((options) => {
|
|
|
|
|
console.log('load', options)
|
|
|
|
|
if(options) {
|
|
|
|
@ -83,10 +84,11 @@ onLoad((options) => {
|
|
|
|
|
success: (res) => { /* ... */
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
rankList.value=res.data
|
|
|
|
|
let index=res.data.findIndex(item=>item.xuehao==='202413501063');
|
|
|
|
|
let index=res.data.findIndex(item=>item.xuehao==='202413501062');
|
|
|
|
|
if(index!=-1){
|
|
|
|
|
showRankList.value = true; // 显示排行榜
|
|
|
|
|
activityStatus.value = '未在活动中'; // 更新活动状态
|
|
|
|
|
pm.value=index+1
|
|
|
|
|
}
|
|
|
|
|
if(res.data.length>0) {
|
|
|
|
|
|
|
|
|
@ -126,6 +128,9 @@ const handleClick = () => {
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
rankList.value.push(res.data)
|
|
|
|
|
showRankList.value = true; // 显示排行榜
|
|
|
|
|
uni.$emit('finish_ex',{uuid:uid.value,wb:'已完成'}
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
activityStatus.value = '未在活动中'; // 更新活动状态
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|