Преглед на файлове

英语题追加音频播放

wangxy преди 4 месеца
родител
ревизия
93a83d8796
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 1 1
      components/question/yingyu/textReplaceIcon.vue
  2. 5 0
      pages/unitTest/useUnit.js

+ 1 - 1
components/question/yingyu/textReplaceIcon.vue

@@ -63,7 +63,7 @@
 					uni.$emit('do-yy-audio-stop', data);
 					return;
 				}
-			
+
 				// 重复播放
 				if (this.isplaying && data.stId == this.isplaying.stId && data.index == this.isplaying.index) {
 					uni.$emit('do-yy-audio-stop', data);

+ 5 - 0
pages/unitTest/useUnit.js

@@ -171,6 +171,11 @@ export function useExam() {
 					reply: item.reply ? JSON.stringify(item.reply) : '',
 					stId: item.stId
 				})
+			} else if (item.type == 4) {
+				result.push({
+					reply: item.reply,
+					stId: item.stId
+				})
 			}
 		
 		})