fix: bug
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<view class="result-cont">
|
||||
<view class="sparring-result-loading" v-show="showLoading">
|
||||
<view class="loading-img">
|
||||
</view>
|
||||
</view>
|
||||
<view class="top-box">
|
||||
<view class="top-title">
|
||||
<view class="back-icon" @click="common.navigateBack()"></view>
|
||||
@@ -119,8 +123,10 @@
|
||||
const evalDimens = ref([])
|
||||
const traPartnerExecuteAnswerRecords = ref([])
|
||||
const totalScore = ref(0)
|
||||
const showLoading = ref(true)
|
||||
const getData = () => {
|
||||
// execId=db2f275b-c04a-4572-83dd-74a95ff49d67&traId=PARTNERINFO02501812207220251103160409000007402
|
||||
|
||||
partnerChatReport({
|
||||
// traId: traId.value,
|
||||
// execId: execId.value
|
||||
@@ -130,6 +136,7 @@
|
||||
if(res.body.code === 200){
|
||||
setTimeout(getData, 2000)
|
||||
}else{
|
||||
|
||||
traInfo.value = res.body.traPartnerInfo
|
||||
roleInfo.value = res.body.traPartnerCharacterInfoVo
|
||||
traTm.value = res.body.traTm
|
||||
@@ -142,12 +149,16 @@
|
||||
}
|
||||
})
|
||||
traPartnerExecuteAnswerRecords.value = res.body.traPartnerExecuteAnswerRecords
|
||||
setTimeout(()=>{
|
||||
showLoading.value = false
|
||||
},800)
|
||||
}
|
||||
})
|
||||
}
|
||||
onLoad((params) => {
|
||||
traId.value = params.traId;
|
||||
execId.value = params.execId
|
||||
showLoading.value = true
|
||||
getData()
|
||||
});
|
||||
onMounted(() => {})
|
||||
@@ -168,7 +179,44 @@
|
||||
padding: calc(var(--status-bar-height) + 90rpx) 0 0rpx;
|
||||
// background-image: url(@/static/images/sparring/bg.png);
|
||||
// background-size: cover;
|
||||
|
||||
|
||||
}
|
||||
.sparring-result-loading {
|
||||
position: fixed;
|
||||
z-index: 20;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background-image: url(@/static/images/sparring/bg.png);
|
||||
|
||||
.loading-img {
|
||||
position: absolute;
|
||||
width: 380rpx;
|
||||
height: 540rpx;
|
||||
top: 40%;
|
||||
transform: translateY(-50%) translateX(-50%);
|
||||
left: 50%;
|
||||
padding-top: 540rpx;
|
||||
line-height: 50rpx;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
background-image: url(@/static/images/sparring/waiting.png);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 380rpx 590rpx;
|
||||
&::after{
|
||||
content: '报告生成中,请耐心等待 ~ ';
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0%;
|
||||
width: 100%;
|
||||
bottom: -50rpx;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.top-box {
|
||||
height: 90rpx;
|
||||
|
||||
Reference in New Issue
Block a user