Ver Fonte

英语题追加音频播放

wangxy há 4 meses atrás
pai
commit
22d85516f0
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      pages/wrong/index.vue

+ 7 - 0
pages/wrong/index.vue

@@ -286,6 +286,13 @@
 				item.placeholders = item.result.map((item, cindex) => `[bank${cindex+1}]`)
 				item.reply = item.reply ? JSON.parse(item.reply) : item.result.map(() => '');
 			}
+
+      if (item.type == 4) {
+        // 特殊题型英语题
+        const audioList = item.audios ? item.audios.split(',') : [];
+        item.placeholders = audioList.map((item, cindex) => `[yingyu${cindex+1}]`)
+        item.audioList = audioList;
+      }
 		})
 	}