Browse Source

调整序号对应

wangxy 6 months ago
parent
commit
32f0e9e1a3
3 changed files with 6 additions and 8 deletions
  1. 4 6
      pages/selectGradesTerms/index.vue
  2. 1 1
      pages/unitTest/useUnit.js
  3. 1 1
      pages/wrong/index.vue

+ 4 - 6
pages/selectGradesTerms/index.vue

@@ -63,24 +63,22 @@
 
 		// 选择 年级+学期
 		function handleConfirm() {
-			if (!data.activeNianji) {
+			if (!data.activeXueke) {
 				uni.showToast({
-					title: "请选择年级",
+					title: "请选择学科",
 					duration: 2000,
 					icon: 'error'
 				});
 				return;
 			}
-
-			if (!data.activeXueke) {
+			if (!data.activeNianji) {
 				uni.showToast({
-					title: "请选择学科",
+					title: "请选择年级",
 					duration: 2000,
 					icon: 'error'
 				});
 				return;
 			}
-
 			goDAOToStudy();
 		}
 

+ 1 - 1
pages/unitTest/useUnit.js

@@ -123,7 +123,7 @@ export function useExam() {
 			item.reply = null;
 			if (item.type == 3) {
 				item.result = JSON.parse(item.result);
-				item.placeholders = item.result.map((item, cindex) => `[bank${cindex}]`)
+				item.placeholders = item.result.map((item, cindex) => `[bank${cindex+1}]`)
 				item.reply = item.reply ? JSON.parse(item.reply): item.result.map(() => '');
 			}
 		})

+ 1 - 1
pages/wrong/index.vue

@@ -276,7 +276,7 @@
 			item.mta_show = false;
 			if (item.type == 3) {
 				item.result = JSON.parse(item.result);
-				item.placeholders = item.result.map((item, cindex) => `[bank${cindex}]`)
+				item.placeholders = item.result.map((item, cindex) => `[bank${cindex+1}]`)
 				item.reply = item.reply ? JSON.parse(item.reply) : item.result.map(() => '');
 			}
 		})