瀏覽代碼

调整试题

wangxy 4 月之前
父節點
當前提交
0c3cc29397
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      components/question/danxuan.vue
  2. 6 0
      pages/unitTest/useUnit.js

+ 1 - 1
components/question/danxuan.vue

@@ -7,7 +7,7 @@
 		<!-- 选项区域 -->
 		<view v-for="(item,index) in data.contents" class="danxuan-option-box" :class="formatClass(index)" :key="index" @click="onSelect(index)">
 			<text class="option-change">{{item.number}}</text>
-			<rich-text :nodes="item.label" class="option-question"></rich-text>
+			<rich-text :nodes="item.label" class="option-question" @itemclick="onSelect(index)"></rich-text>
 		</view>
 	</view>
 </template>

+ 6 - 0
pages/unitTest/useUnit.js

@@ -196,6 +196,7 @@ export function useExam() {
 
 // 提示信息显示隐藏
 function useTishiLeftRight() {
+	let timer = null;
 	const {
 		updateTishi,
 		getTishi
@@ -205,11 +206,16 @@ function useTishiLeftRight() {
 	function handleCloseTishi() {
 		updateTishi();
 		showTishi.value = false;
+		clearTimeout(timer);
+		timer = null;
 	}
 	// 大鹅显示追加缓存 --- 单独针对当前手机的缓存提示
 	function handleShowTishi() {
 		const isNotShow = Boolean(getTishi());
 		showTishi.value = !isNotShow;
+		timer = setTimeout(() => {
+			handleCloseTishi();
+		},3000)
 	}
 
 	return {