Ver Fonte

文本修改

wangxy há 2 meses atrás
pai
commit
37051f9b21

+ 3 - 0
components/questions/useQuestionTools.js

@@ -30,6 +30,9 @@ export function useQuestionTools() {
 	}
 
 	function checkDanxuanReply(item) {
+		if (item.reply === 0 || item.reply === '0') {
+			return true
+		}
 		if (!item.reply || item.reply === '' || item.reply === [] || item.reply.length === 0) {
 			return false;
 		} else {

+ 30 - 10
components/zhuapaiConfirm/submitScore.vue

@@ -1,12 +1,12 @@
 <template>
 	<uni-popup ref="popupRef" :animation="false" :is-mask-click="false" type="bottom"
-		mask-background-color="rgba(0, 0, 0, 0.4);" >
+		mask-background-color="rgba(0, 0, 0, 0.4);">
 		<view class="exam-score-dialog">
 			<view class="icon-title-bjcolor-navBar-box">
 				<view @click="handleClose" class="nav-bar-icon"></view>
 				<text class="nav-bar-title">{{title}}</text>
 			</view>
-			
+
 			<view class="score-content-box">
 				<view class="score-content-name">{{data.ksName}}</view>
 				<view class="score-content-text">{{labelName}}:{{data.ksScore}}</view>
@@ -15,6 +15,9 @@
 				<view class="score-content-text">试题总数:{{data.shitiTotal}}</view>
 				<view class="score-content-text">用户得分:{{data.userScore}}</view>
 			</view>
+
+			<c-progress-circle :progress='data.userAccuracy/100' color='#3ec3c1' size='200rpx'
+				boderWidth="200rpx"></c-progress-circle>
 			<button type="default" class="phone-green-btn score-dialog-btn" @click="handleCheckSj">查看成绩</button>
 		</view>
 	</uni-popup>
@@ -22,7 +25,8 @@
 
 <script setup>
 	import {
-		ref,reactive
+		ref,
+		reactive
 	} from "vue";
 	const popupRef = ref(null)
 	const data = reactive({
@@ -33,7 +37,7 @@
 		shitiTotal: '',
 		userScore: '',
 	})
-	
+
 	defineProps({
 		title: {
 			type: String,
@@ -42,21 +46,21 @@
 		labelName: {
 			type: String,
 			default: '考试总分'
-		}	
+		}
 	})
-	
+
 	const emits = defineEmits(['confirm', 'close'])
-	
+
 	function handleClose() {
 		emits('close');
 		popupRef.value.close()
 	}
-	
+
 	function handleCheckSj() {
 		emits('confirm', data);
 		popupRef.value.close()
 	}
-	
+
 	function showDialog(options) {
 		data.ksName = options.ksName;
 		data.ksScore = options.ksScore;
@@ -64,11 +68,27 @@
 		data.rightCount = options.rightCount;
 		data.shitiTotal = options.shitiTotal;
 		data.userScore = options.userScore;
+		data.userAccuracy = options.userAccuracy;
 		popupRef.value.open()
 	}
 
 	defineExpose({
 		showDialog
 	})
-	
 </script>
+
+<style lang="scss">
+	 .content{
+	        display: flex;
+	        flex-direction: column;
+	        align-items: center;
+	        padding-top: 20rpx;
+	        font-size: 28rpx;
+	    }
+	    .btnBox{
+	        width: 100%;
+	        display: flex;
+	        align-items: center;
+	        margin-top:30rpx;
+	    }
+</style>

+ 1 - 0
pages/client/Chengji/ksScoreShijuan.vue

@@ -64,6 +64,7 @@
 				<view>
 					<button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn" @click="handlePrev" v-if="!isFistStId">上一题</button>
 					<button type="default" size="mini" hover-class="none"class="phone-green-btn score-answer-btn" @click="handleNext" v-if="!isLastStId">下一题</button>
+					<button type="default" size="mini" hover-class="none"class="phone-green-btn score-answer-btn" @click="handleBack" v-if="isLastStId">完成</button>
 				</view>
 			</view>
 			<!-- 答题卡 -->

+ 2 - 0
pages/client/Chengji/lxScoreShijuan.vue

@@ -68,6 +68,8 @@
 					@click="handlePrev" v-if="!isFistStId">上一题</button>
 				<button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn"
 					@click="handleNext" v-if="!isLastStId">下一题</button>
+				<button type="default" size="mini" hover-class="none" class="phone-green-btn score-answer-btn"
+						@click="handleBack" v-if="isLastStId">完成</button>
 			</view>
 		</view>
 

+ 1 - 1
pages/client/Kaoshi/exam.vue

@@ -331,7 +331,7 @@
 		if (result.count) {
 			// 提示
 			answerQrRef.value.showDialog({
-				answercartsCount: result.count,
+				answercartsCount: result.total - result.count,
 				answercartsTotal: result.total,
 			})
 		} else {

+ 1 - 1
pages/client/Kecheng/study.vue

@@ -199,7 +199,7 @@
 						videoId: data.url,
 						playAuth: res.data,
 						seekTime: '',
-						isPlay: true
+						isPlay: false
 					})
 
 				})

+ 1 - 1
pages/client/Lianxi/exam.vue

@@ -253,7 +253,7 @@
 		if (result.count) {
 			// 提示
 			answerQrRef.value.showDialog({
-				answercartsCount: result.count,
+				answercartsCount: result.total - result.count,
 				answercartsTotal: result.total,
 			})
 		} else {