chore: v3.0.0-4030620241128005

main
刘东阳 3 months ago
parent 84e0330d7a
commit 884c890b08

@ -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 = '未在活动中'; //
}
});

@ -80,6 +80,13 @@ const handleRefresh = (newId) => {
kctivityAndPPT.value[index].finish="finish"
}
}
const handleRefresh_ex = (newId) => {
let index=kctivityAndPPT.value.findIndex(item => item.id === newId.uuid);
if(index!==-1){
kctivityAndPPT.value[index].finish="finish"
kctivityAndPPT.value[index].finishwb=newId.wb+"";
}
}
onLoad((options) => {
console.log('load', options)
@ -122,6 +129,7 @@ onLoad((options) => {
})
}
//
uni.$on('finish_ex', handleRefresh_ex)
uni.$on('finish', handleRefresh)
socket.on('connect', () => console.log('Socket 已连接'))
socket.on('server', (data) => {

Loading…
Cancel
Save