Przeglądaj źródła

试题弹窗增加不要积分的

tanxue 4 miesięcy temu
rodzic
commit
0b810ef8c4
2 zmienionych plików z 18 dodań i 3 usunięć
  1. 10 2
      common/styles/global/pages.scss
  2. 8 1
      components/points/uni-points.vue

+ 10 - 2
common/styles/global/pages.scss

@@ -642,8 +642,7 @@
 // 得分页
 .exam-score-dialog{
 	width: 750rpx;height: 1250rpx;margin-bottom: 24%;position: relative;
-	background-image: url("@/static/images/exam/score-bj.png");@include ezy-no-repeat-cover;
-	// -webkit-text-stroke: 0.6rpx #fff;text-stroke: 0.6rpx #fff;
+	@include ezy-no-repeat-cover;
 	.score-content-box{
 		position: absolute;top: 746rpx;left: 200rpx;word-spacing: 18rpx;
 		font-size: 38rpx;font-weight: 800; color: #000;
@@ -661,6 +660,15 @@
 	@media (max-height: 600px) {margin-bottom: 40%;}
 }
 
+.score-study-dialog{
+	background-image: url("@/static/images/exam/score-bj.png");
+	.score-btn-box{bottom: 0;}
+}
+.score-finish-dialog{
+	background-image: url("@/static/images/exam/score-finish-bj.png");
+	.score-btn-box{bottom: 220rpx;}
+}
+
 // 答案解析
 .ezy-dajx-page{
 	width: 100%;height: 100vh;background-color: #0ab2f0;position: relative;

+ 8 - 1
components/points/uni-points.vue

@@ -1,7 +1,7 @@
 <template>
 	<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
 	 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>答对:<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>
@@ -55,6 +55,13 @@
 		popupRef.value.open()
 	}
 
+	function getDialogClass(){
+		if(props.studyFlag === 0){
+			return 'score-study-dialog';
+		}else{
+			return 'score-finish-dialog';
+		}
+	}
 	function closePopup() {
 		popupRef.value.close()
 	}