|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
|
|
<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
|
|
mask-background-color="rgba(255, 255, 255, 0.6);">
|
|
mask-background-color="rgba(255, 255, 255, 0.6);">
|
|
- <view class="exam-score-dialog">
|
|
|
|
|
|
+ <view class="exam-score-dialog" :class="getDialogClass">
|
|
<view class="score-content-box">
|
|
<view class="score-content-box">
|
|
<view>答对:<text class="text-red">{{data.right}}</text>题 答错:<text class="text-red">{{data.wrong}}</text>题</view>
|
|
<view>答对:<text class="text-red">{{data.right}}</text>题 答错:<text class="text-red">{{data.wrong}}</text>题</view>
|
|
<view class="text-score" v-if="!studyFlag">{{data.jifen}}</view>
|
|
<view class="text-score" v-if="!studyFlag">{{data.jifen}}</view>
|
|
@@ -55,6 +55,13 @@
|
|
popupRef.value.open()
|
|
popupRef.value.open()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function getDialogClass(){
|
|
|
|
+ if(props.studyFlag === 0){
|
|
|
|
+ return 'score-study-dialog';
|
|
|
|
+ }else{
|
|
|
|
+ return 'score-finish-dialog';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
function closePopup() {
|
|
function closePopup() {
|
|
popupRef.value.close()
|
|
popupRef.value.close()
|
|
}
|
|
}
|