|
@@ -70,10 +70,10 @@ function initTrialDetailContent(libraryId){
|
|
|
questionNumbers.forEach(questionNumber => {
|
|
|
questionArr[questionNumber] = true;
|
|
|
});
|
|
|
- /* $.get(url, function (result) {
|
|
|
- let questions = JSON.parse(result) || []; */
|
|
|
- var result = '[{"mainNumber": 6,"subNumber": 19,"body": {"sections": [{ "blocks":[{"type": "text","value": "我是题目我是题目我是题目"}]}]},"answer": {"sections": [{"blocks":[{"type": "image","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/20/3_8_20_15748452889591137.jpeg"}]},{"blocks":[{"type": "audio","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/19/3_8_19_15748452552644264.mp3"}]}]},"studentAnswer": {"sections": [{"blocks":[{"type": "image","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/20/3_8_20_15748452889591137.jpeg"},{"type": "image","value": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1582709869784&di=39683b1330bd09bebd93c95fe925ca70&imgtype=0&src=http%3A%2F%2Fn.sinaimg.cn%2Fsinacn10108%2F170%2Fw600h370%2F20190222%2Fd6de-htknpmh2595255.jpg"},{"type": "text","value": "我是答案答案daan"}]}]}}]';
|
|
|
- let questions = JSON.parse(result);
|
|
|
+ $.get(url, function (result) {
|
|
|
+ let questions = JSON.parse(result) || [];
|
|
|
+ //var result = '[{"mainNumber": 6,"subNumber": 19,"body": {"sections": [{ "blocks":[{"type": "text","value": "我是题目我是题目我是题目"}]}]},"answer": {"sections": [{"blocks":[{"type": "image","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/20/3_8_20_15748452889591137.jpeg"}]},{"blocks":[{"type": "audio","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/19/3_8_19_15748452552644264.mp3"}]}]},"studentAnswer": {"sections": [{"blocks":[{"type": "image","value": "https://ecs-test-static.qmth.com.cn/oe-answer-file/3/8/20/3_8_20_15748452889591137.jpeg"},{"type": "image","value": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1582709869784&di=39683b1330bd09bebd93c95fe925ca70&imgtype=0&src=http%3A%2F%2Fn.sinaimg.cn%2Fsinacn10108%2F170%2Fw600h370%2F20190222%2Fd6de-htknpmh2595255.jpg"},{"type": "text","value": "我是答案答案daan"}]}]}}]';
|
|
|
+ //let questions = JSON.parse(result);
|
|
|
|
|
|
questions.forEach(question => {
|
|
|
// 按题号过滤
|
|
@@ -124,9 +124,9 @@ function initTrialDetailContent(libraryId){
|
|
|
trialDetailModal.setContent($('#trial-detail-content'));
|
|
|
}
|
|
|
});
|
|
|
- /* }).error(function () {
|
|
|
+ }).error(function () {
|
|
|
trialDetailModal.setTitle('加载失败')
|
|
|
- }); */
|
|
|
+ });
|
|
|
}
|
|
|
}else {
|
|
|
trialDetailModal.setTitle('加载失败')
|