fix: bug
This commit is contained in:
@@ -75,6 +75,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<Feedback ref="feedbackRef" />
|
||||
<badge ref="badgeRef"></badge>
|
||||
<points ref="pointsRef"></points>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -102,6 +104,11 @@
|
||||
import {
|
||||
partnerChatReport
|
||||
} from "@/api/sparring.js"
|
||||
import badge from '@/components/points-and-badge/badge';
|
||||
import points from '@/components/points-and-badge/points';
|
||||
import usePointsAndBadge from '@/components/points-and-badge/usePointsAndBadge';
|
||||
|
||||
const { pointAndBadgesRun, badgeRef, pointsRef } = usePointsAndBadge();
|
||||
const traId = ref('')
|
||||
const execId = ref('')
|
||||
const talkingType = ref('')
|
||||
@@ -240,6 +247,9 @@
|
||||
isLoading.value = false
|
||||
setTimeout(() => {
|
||||
showLoading.value = false
|
||||
if(isPass.value){
|
||||
pointAndBadgesRun(isPreview.value ? '07': '08', '', ()=>{})
|
||||
}
|
||||
}, 800)
|
||||
} else {
|
||||
setTimeout(getData, 2000)
|
||||
|
||||
@@ -423,9 +423,10 @@
|
||||
watchFlag.value = 1;
|
||||
socketStore?.closeSocket();
|
||||
changePlayItemId('')
|
||||
pointAndBadgesRun(talkingType.value === '01'? '07': '08', null, ()=>{
|
||||
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
|
||||
})
|
||||
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
|
||||
// pointAndBadgesRun(talkingType.value === '01'? '07': '08', '', ()=>{
|
||||
// common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
|
||||
// })
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user