@zykjcommon/questions 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zykjcommon-questions.common.js +48 -46
- package/dist/zykjcommon-questions.css +1 -0
- package/dist/zykjcommon-questions.umd.js +48 -46
- package/dist/zykjcommon-questions.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/components/questions/Question_Classify.vue +27 -26
- package/src/components/questions/buildEntry.js +1 -0
- package/src/main.ts +1 -1
- package/src/views/exam/FullScreen.vue +34 -0
|
@@ -16260,70 +16260,70 @@ var index = {
|
|
|
16260
16260
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_66006ba2_render]])
|
|
16261
16261
|
|
|
16262
16262
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
16263
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
16263
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=4e651d25
|
|
16264
16264
|
|
|
16265
|
-
const
|
|
16265
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_1 = {
|
|
16266
16266
|
class: "zykjcommon-question",
|
|
16267
16267
|
style: {
|
|
16268
16268
|
"width": "100%",
|
|
16269
16269
|
"height": "100%"
|
|
16270
16270
|
}
|
|
16271
16271
|
};
|
|
16272
|
-
const
|
|
16272
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_2 = {
|
|
16273
16273
|
class: "box"
|
|
16274
16274
|
};
|
|
16275
|
-
const
|
|
16275
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_3 = {
|
|
16276
16276
|
class: "main-block"
|
|
16277
16277
|
};
|
|
16278
|
-
const
|
|
16279
|
-
const
|
|
16278
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_4 = ["src"];
|
|
16279
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16280
16280
|
class: "main-content"
|
|
16281
16281
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16282
16282
|
class: "main-append"
|
|
16283
16283
|
})], -1);
|
|
16284
|
-
const
|
|
16284
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16285
16285
|
class: "prev"
|
|
16286
16286
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16287
16287
|
class: "prev-main"
|
|
16288
16288
|
})], -1);
|
|
16289
|
-
const
|
|
16289
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16290
16290
|
class: "next"
|
|
16291
16291
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16292
16292
|
class: "next-main"
|
|
16293
16293
|
})], -1);
|
|
16294
|
-
const
|
|
16294
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_8 = {
|
|
16295
16295
|
class: "list"
|
|
16296
16296
|
};
|
|
16297
|
-
const
|
|
16298
|
-
const
|
|
16297
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_9 = ["idx"];
|
|
16298
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_10 = {
|
|
16299
16299
|
class: "list-item-text"
|
|
16300
16300
|
};
|
|
16301
|
-
function
|
|
16302
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
16301
|
+
function Question_Classifyvue_type_template_id_4e651d25_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16302
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16303
16303
|
class: "question-classify",
|
|
16304
16304
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
16305
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16305
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.bigBoxItemList, (item, index) => {
|
|
16306
16306
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
16307
16307
|
class: "box-item",
|
|
16308
16308
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
16309
16309
|
key: index
|
|
16310
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16310
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
16311
16311
|
src: item.imgUrl,
|
|
16312
16312
|
alt: ""
|
|
16313
|
-
}, null, 8,
|
|
16313
|
+
}, null, 8, Question_Classifyvue_type_template_id_4e651d25_hoisted_4)]), Question_Classifyvue_type_template_id_4e651d25_hoisted_5], 4);
|
|
16314
16314
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16315
16315
|
class: "list-outter",
|
|
16316
16316
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
16317
|
-
}, [
|
|
16317
|
+
}, [Question_Classifyvue_type_template_id_4e651d25_hoisted_6, Question_Classifyvue_type_template_id_4e651d25_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_8, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.optionList, (item, index) => {
|
|
16318
16318
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
16319
16319
|
class: "list-item",
|
|
16320
16320
|
idx: item.idx,
|
|
16321
16321
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
16322
16322
|
key: index
|
|
16323
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16323
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 1)], 12, Question_Classifyvue_type_template_id_4e651d25_hoisted_9);
|
|
16324
16324
|
}), 128))])], 4)], 4)]);
|
|
16325
16325
|
}
|
|
16326
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
16326
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=4e651d25
|
|
16327
16327
|
|
|
16328
16328
|
;// CONCATENATED MODULE: ./src/assets/js/rem.js
|
|
16329
16329
|
/**
|
|
@@ -16513,33 +16513,35 @@ let env = js_fun.getDeviceEnv();
|
|
|
16513
16513
|
parseLists(nv) {
|
|
16514
16514
|
this.classify_question_info = nv.classify_question_info;
|
|
16515
16515
|
let exam_options_data = nv.exam_options_data;
|
|
16516
|
-
if (this.classify_question_info
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16516
|
+
if (this.classify_question_info) {
|
|
16517
|
+
if (this.classify_question_info.background_file) {
|
|
16518
|
+
this.bigBgCss = `background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`;
|
|
16519
|
+
}
|
|
16520
|
+
if (this.classify_question_info.bottom_img_file) {
|
|
16521
|
+
this.bottomBgCss = `background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`;
|
|
16522
|
+
}
|
|
16523
|
+
let optionList = [];
|
|
16524
|
+
exam_options_data.forEach(item => {
|
|
16525
|
+
optionList.push({
|
|
16526
|
+
content: item.data.option_content,
|
|
16527
|
+
bgUrlCss: `background: url(${item.data.file_url}) no-repeat center;background-size: 100% 100%`,
|
|
16528
|
+
idx: item.index
|
|
16529
|
+
});
|
|
16528
16530
|
});
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16531
|
+
this.optionList = optionList;
|
|
16532
|
+
this.listItemBgCss = !optionList[0] ? '' : optionList[0].bgUrlCss;
|
|
16533
|
+
let bigBoxItemList = [];
|
|
16534
|
+
let big_type_box_image_list = this.classify_question_info.big_type_box_image_list;
|
|
16535
|
+
let big_type_option_list = this.classify_question_info.big_type_option_list;
|
|
16536
|
+
big_type_box_image_list.forEach((item, index) => {
|
|
16537
|
+
bigBoxItemList.push({
|
|
16538
|
+
imgUrl: big_type_option_list[index].file_url,
|
|
16539
|
+
bgUrl: item.file_url,
|
|
16540
|
+
bgUrlCss: `background: url(${item.file_url}) no-repeat center;background-size: 100% 100%`
|
|
16541
|
+
});
|
|
16540
16542
|
});
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
+
this.bigBoxItemList = bigBoxItemList;
|
|
16544
|
+
}
|
|
16543
16545
|
},
|
|
16544
16546
|
setRootFontSize() {
|
|
16545
16547
|
// setRemFixedHeight(1000,140,1.08)
|
|
@@ -16548,7 +16550,6 @@ let env = js_fun.getDeviceEnv();
|
|
|
16548
16550
|
unmountedDo() {
|
|
16549
16551
|
window.removeEventListener('resize', this.setRootFontSize);
|
|
16550
16552
|
document.removeEventListener('gesturestart', this.gesturestartListener);
|
|
16551
|
-
this.$el;
|
|
16552
16553
|
$(this.$el).find('.question-classify .append-item').off(this.mousedown);
|
|
16553
16554
|
$(this.$el).find('.question-classify .list-item').off(this.mousedown);
|
|
16554
16555
|
$(document).off(this.mouseup);
|
|
@@ -16787,7 +16788,7 @@ let env = js_fun.getDeviceEnv();
|
|
|
16787
16788
|
|
|
16788
16789
|
|
|
16789
16790
|
;
|
|
16790
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
16791
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_4e651d25_render]])
|
|
16791
16792
|
|
|
16792
16793
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
16793
16794
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|
|
@@ -17089,6 +17090,7 @@ const state = {
|
|
|
17089
17090
|
|
|
17090
17091
|
|
|
17091
17092
|
|
|
17093
|
+
|
|
17092
17094
|
/* harmony default export */ function buildEntry(store) {
|
|
17093
17095
|
//动态注册store
|
|
17094
17096
|
store.registerModule('zykjcommonQuestions', questions_store);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zykjcommon-question .editor-content{margin-top:10px;width:100%;overflow:auto}.zykjcommon-question .editor-content.editor-content-bor{height:300px;padding:5px}.zykjcommon-question .editor-content img{display:block;cursor:pointer}.zykjcommon-question .question-type{font-size:18px;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:700;color:#000;margin-bottom:20px}.zykjcommon-question .question-type .score{font-size:14px;color:#666;font-weight:400}.zykjcommon-question .question-box{padding-left:30px}.zykjcommon-question .bcdt-btn{margin-top:30px;padding:8px 11px;border-radius:4px;color:#fff;background:#ffbc00;font-size:12px}.zykjcommon-question .question-option-list{margin-top:30px}.zykjcommon-question .question-option-list .question-option{display:flex;margin-bottom:20px;font-size:14px;color:#000}.zykjcommon-question .question-stem{color:#333}.zykjcommon-question .radio-box{margin-right:2px;position:relative;display:inline-block}.zykjcommon-question .radio-box span{vertical-align:3px;margin-left:5px}.zykjcommon-question .radio-box .radio{position:absolute;left:0;top:0;opacity:0;width:100%;height:18px;cursor:pointer}.zykjcommon-question .radio-box .radio-bg{display:inline-block;width:16px;height:16px;background:url(data:image/png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-question .radio-box.checked .radio-bg{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAxFJREFUWEfNl1lIFVEYx39nvBqa1UPXMGnRjCChUEuTIrCHaCEyoSIQxB5aHyqKHsK6Xm5KQRQVtD8kQdAGYhQWPRiE4VL5EBRFGi2YpD3kiktzYmbuzL1XZ/Ji2DQwL+fb/uf/fec75xNE+Un/ljjUllUINqKqGQhSQP+1rw1JG4ryBsl9lPRa4b87GI1rMZaS9Ockow77gCKknDqWvi4Xogu4ieIJCH9T+59sHAHI8+sm0dleipQHgclRBR6t1IsQZ/AmV4h9NQN2PmwBBHddhZR5EUbeubBwFaTnwbSZMCXJEHd3wM9v0FIPb2uh81NkLCHqUTyFdmyMAiDLshcj1YdIZlleUjJgzQFIy4mOiI9N8PgstL0J6Qu+4olZL3wvX4c7iQBg7HyoyQoe44F1hyF3a3SBR2o13oGaU/Br2JBoIJTYnHAmLADBnD+1aI+fCttOQ9rS8QU3rT6+gFuHoF+rS71A6/Em55s1EQLgywog5TFdSdt58aW/Dx4O4saeMCbEcRFo1k4WOgCd+l9DH6xq33Bk/LQ78aWl48EJU9pLTOx8LRUGAF/WRaTco0u1gtt98+9od7K+XBQqTCEuiUDzXmF0uA8dVpPZfnXsan9ZBa+q4HuLEWpGOmQXwpLCPwPXTsf1nWYtdKHMTxLSl70GqT7SV72psK/K2UlPJ9wrhdZGe515ubC5AhK9zj7Obwr1CaGsFbIs+wKqule3WFkCq/c7G1fucg5uWmkgSq44+3hyDp5VGnJFuSjkscxaIF9fKLkM85bZG2u0Vweiq40Cn3M6Whugcrfp56mQvsx3SBboK/urYfoc+yDXiuFLRBNzBjN7Eey4YS//8RnOFQTrgPcagG4kifrK0ecQF29vWLECBvqiY2BSApTW2esO9kP5chNAzwgAdRCXMMEA+qB8hRmj+z9IgetF6PoxdL0Rud2KtXJ09TLSAfyL67jhNjw8aR6/yOs4yIJ7DxIdgPEMd+9JZqXCrUepmRxXn+UWCGMcsxlMUmFh/sQOJhYIN0ez8OvQteF05J08UeP5b1xfu3oQuQCeAAAAAElFTkSuQmCC) no-repeat 50%;background-size:100% 100%}.zykjcommon-question .checkbox-box{margin-right:2px;position:relative;display:inline-block}.zykjcommon-question .checkbox-box .checkbox{height:18px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.zykjcommon-question .checkbox-box .checkbox-bg{width:16px;height:16px;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAWRJREFUWEftV7FKA0EQfWNhESwSSJMmH6BguOJ+wEJikTZVStlDtBA/RC0U2cXyqmtTGCz8gRTHCfoB16Q5yIEhhUVWJrhyBCQJZ9wUu93szsx7+3YWZggLSyl1oLU+BXAMoAlgb9FnTXsCIAXwTESPQoi3YjwZI4qi3fF4fA3gDMDOmiCrus8APNRqtatut/vJQXMCDJ7n+ZPW+mjVTGX8iOilWq2eMIk5ASnlHYBzk7TRaKDVaqFer6NSqZTBwnQ6RZZlSJIEo9GomOs+CIIL+n7zVyO753nwfb8U6G/Bw+EQcRyb4xkRHZKU8gbAJe/yzTudzkbATdJ+v19U4pYJcFXus0O73UazyYW/uZWmKQaDgQF4ZwIf5qv1er3Sb76MOtdEGIbGbcIEtLGEEMvi/+RcKfWTxxFwCjgFnAJOAaeAU2ArFLDekFhvyew2pdbbcuuDyVaMZoaEteG02Gv/93j+BbOLFDJpvm/4AAAAAElFTkSuQmCC) no-repeat 50%;background-size:100% 100%}.zykjcommon-question .checkbox-box.checked .checkbox-bg{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAs1JREFUWEfdl11IVEEUx3+z64qBYURglH1ASqQhayER9gGSQg8VgRXig5lbYBllQtDXJoJECZrRB8HmIpE9WG+BYSQYSERWEimYWSIZoSGWi5qrO3H35t69LpteV11o3mbmnP//P+fcM/eMYMqQpalJTLhtSJEJcjWS6Kk2huYCF4gehGzAbHEI++s2f38xOZElByLxdFYABUhMhkhmaizwAHcwJZwRJXVjiptXgJd84lM9yPSZYoVmJxoxx+9WRKgC7NabSE74QNdugrRcWJkI0ctC43L9gN52aK6B7rcaluCWKG0tFN6cj7vf+8K+0wbpx0H4shOaAF+OJTTehiaHuqKkI8KSLORlayUeTnsXlZPnOeae3F+E06ZFwsR1Ie0pbUiZ6LXJqYL1O+bmxMFQOl7Ag1N/oyDahbRbh3yldvZZ6DmfTr7yTVzLmEyDS8hLVunzKX03nfvc7NtTfDj/sYCOJnhyRb1q9l6EhDQtevMegc5mqC2CCbdKGhMLxU8XSEBPK9QUgHtUI4xZDsX1CyDg+0eotsHokEZmMsGhctjgd8vPSwoGesCRB64BfaXsuQCpWfo1wwK634AwwRqtfHSIv/pU8sFveqKMk7D9SGDpGhJQXw4va1WQpAzIKgOzRQMdHoR7+dD/WU+0LRcy1Rs+YBgSUJYGv4c1jHVbILsSIhfB2DA4j0GvrseAzfthnz34pWVIgPMofGnRg8VthOwKeHQ+cC9pFxy8qqYs2DAkYKhfLau+Lj1cRCSMe5sabcRvhZwbYI4ITq7sGBKgOIz8hPuF8PVDcOBVyXD4Llii/k0+KwGK09gIPCyCrleBBLHxkF8NUYunJ5+1AMVRuVrrzkH7c41oaRzYnMZ+44ZT4H8u6YGGKmh5DLEJalkuWTGzk09a6QSEvSEJe0sW9qY03G258l2E9WHiFRDup5lPRLgep7oyX+Dn+R++FFtij60edgAAAABJRU5ErkJggg==) no-repeat 50%;background-size:100% 100%}.zykjcommon-question .label-box{word-break:break-all;margin-top:-2px;margin-left:5px;flex:1}.zykjcommon-question .label-box label{cursor:pointer;display:flex}.zykjcommon-question .label-box label .img-box{flex:1;margin-top:2px}.zykjcommon-question .label-box label .img-box img{max-width:100%}.zykjcommon-question .label-box label span{margin-right:5px}.zykjcommon-question .editor-tit{font-size:16px;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:700;color:#000}.zykjcommon-question .editor-output{margin-top:15px;background:#f7f7f7;border-radius:6px;padding:15px;color:#333;font-size:14px}.zykjcommon-question .editor-output .output-main{margin-top:10px}.zykjcommon-question .question-analysis{position:relative;margin-top:16px;border-radius:8px;padding:21px 15px 16px;background:#f7f7f7;width:100%}.zykjcommon-question .question-analysis .question-analysis-item{display:flex;margin-top:16px}.zykjcommon-question .question-analysis .question-analysis-item:nth-child(2){margin-top:0}.zykjcommon-question .question-analysis .txt{vertical-align:top;font-size:16px;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:700;color:#333;width:112px}.zykjcommon-question .question-analysis .img-box{cursor:pointer;display:inline-block;position:relative;width:134px;height:134px}.zykjcommon-question .question-analysis .img-box img{width:100%;height:100%;position:absolute;left:0;top:0}.zykjcommon-question .question-analysis .img-box .mask-text-box{width:100%;height:30px;position:absolute;bottom:0;left:0;z-index:2}.zykjcommon-question .question-analysis .img-box .mask-text-box .mask{background:#000;opacity:.4;width:100%;height:100%;position:absolute;left:0;top:0;z-index:1}.zykjcommon-question .question-analysis .img-box .mask-text-box .mask-text{width:100%;height:100%;position:absolute;left:0;top:0;z-index:2;line-height:30px;color:#fff;text-align:center;font-size:14px}.zykjcommon-question .question-analysis .txt-box{flex:1;display:inline-block}.zykjcommon-question .question-analysis .txt-box span{color:#333}.zykjcommon-question .question-analysis .txt-box .right{color:#44be57}.zykjcommon-question .question-analysis .txt-box .wrong{color:#e02020}.zykjcommon-question .question-analysis .txt-box .analysis-txt{color:#666}.zykjcommon-question .reading-question-item{margin-top:30px;padding:30px;background:#f6f6f6;border-radius:8px}.zykjcommon-question .reading-question-item .question-box{padding-left:0}.zykjcommon-question .reading-question-item .question-option-list{margin-left:25px}.zykjcommon-question .reading-question-item .question-option-list .question-option:last-child{margin-bottom:0}.zykjcommon-question .fill-blank{display:inline;border-bottom:1px solid #ffa833;outline:none;word-break:break-all;min-width:80px;margin-right:5px}.zykjcommon-question .question-tabs{margin-top:20px;display:flex;flex-wrap:wrap;width:100%;margin-bottom:-15px}.zykjcommon-question .question-tabs .question-tab-item{cursor:pointer;border-radius:6px;width:80px;height:36px;line-height:36px;text-align:center;border:1px solid #999;position:relative;margin-right:5px;margin-bottom:10px}.zykjcommon-question .question-tabs .question-tab-item:hover{border:1px solid #ff7d30}.zykjcommon-question .question-tabs .question-tab-item.cur{border:1px solid #ddd;background:#ddd}.zykjcommon-question .question-tabs .question-tab-item.cur:before{content:" ";display:inline-block;border-top:8px solid #ddd;border-left:8px solid transparent;border-right:8px solid transparent;width:0;height:0;position:absolute;bottom:-6px}.zykjcommon-question .question-tabs .question-tab-item.cur:hover{border:1px solid #ddd}.zykjcommon-question .question-tabs .question-tab-item .tab-mark{position:absolute;width:20px;height:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAsCAYAAAAXb/p7AAAAAXNSR0IArs4c6QAAA7tJREFUWEftmWloVFcUx393slhNDLFtgigKar4YUYcGNIHijlQjaCTUhHwIGG3EJFoQm1iYMCStaEFcK+5C3NG6QVBxVxSXaBODSkvaUENLaWtTQgaTTJIrd6bJey86vpl5Wd4H79d37jm/+Z+7nHtGYPMhbM7He0CrGQpaQelOjqUzKh0pZgGTgbFAHDDIKkSP+U0grhDRuU64a342BZQlnyQR1VkMZAMxvQzzLneNRMjUgICyKGkQ8bFlwJdAdD+C6UKJ028FlO7k4XRGnUGK1IEB647a9AagdKVMhPZKEKMGGM4X3gDoU64j6oFd4AyAvjU3LOaGDdJqSFy3gtLl3Ah8ZYe06hl8gP8fJU8HbrcGlsUP6HLuBZbZTT3fGvTdEB3Rf/bLIZwwBqZmg+dfuH0Q2ltNNRGydPISpDhuamnVYHAcFJ2G2I/8nqp+gPPfmHoV0uXcDXxhamnVYH4xpGZpXhqewN5cU68K8B4w1dTSikHiOFh5HByRmpdLm+FOhalXBfgXkGBqacUgdxeM02nw8gXsyIQOr6lXBdjSByWTFnj8LMjeZAQ5shp+umUK59/FLqcMyjIco8ho/8YYNlKbXXcXKgqC9ta3gNOXwWwdTEc7fP85/FPfR4BJaZBeAipQ5Qaofxg4UFwirDoL0YM1m7uH4WKPdJughqbg2ssw9GO/S28rHF0Nv9x/e4jM9TBpnvZNHc5bF0JLc9Dqhb4GS67DkHgtgLcFDhdBfZUx6Ggn5B0AoavmzpXBozMhwYUO6FwAGWXGwG2v4FAB/PajP7iCyj8CI8ZrMH88h905IEPfj6GlWIWcsgTSi42QrR6oWAnqdkjJgIWlGpyC2r8UXlSHrF7oCnaFSMuBz9YYIdXaOrEWMr+FmA81mCcX4NTXYcF1AYZ3UH+aC3PVg083lFr6dafSv20RNKnLKqzRau2qm5YHcwoDR766E26qUjPs8bf1YmHmCpiZ/yZB4++wfTG0t4VNB9zvnXJrdiFMzzOCHFsDz69ZgVNz9/Rewaogpy31r8HaS3CyxCqcqhSyerfkV3XfB0OhoSasM6/HL/IQ0Tbczo+mfaK8erldn51teB0TxIbHdXZ9uH8nyqtVy0/rzdim9SHkPRo9M8T2Ot+b1GbNI9lAhHeKcD9T73TfsFH7TTZAZLoof1Sr3832aGCqtDq8GXrlAirY9aGfWsDqHtzCf82lXWuu5+k+UE10D3AMr2OjOkredeWYAnYrGv7fEGo3NgG/AjUIeQ2Ht1K4nwX1OHkNmNtIDhS+2Z0AAAAASUVORK5CYII=) no-repeat 50%;background-size:100% 100%;right:-3px;top:-5px}.zykjcommon-question .editor-textarea{margin-top:15px;position:relative;display:inline-block;width:100%}.zykjcommon-question .editor-textarea textarea{font-size:14px;min-width:100%;max-width:100%;min-height:107px;padding:15px;outline-color:#ffbc00;border-radius:6px;border:1px solid #dfdfdf;color:#000}.zykjcommon-question .editor-textarea .len{right:10px;bottom:10px;position:absolute;color:#999;font-size:12px}.zykjcommon-question .iframeBox{z-index:100;width:100%;height:100%;position:fixed;left:0;top:0}.zykjcommon-question .iframeBox iframe{width:100%;height:100%}.zykjcommon-question .loading{width:50px;height:50px;display:block;position:fixed;left:50%;top:50%;margin-left:-25px;margin-top:-25px;z-index:99999}.zykjcommon-question .question-classify{margin:0 auto;width:10em;height:100%;position:relative;overflow:auto}.zykjcommon-question .question-classify .box{padding:0 .8em;width:100%;display:flex;justify-content:space-between;margin-top:.72em}.zykjcommon-question .question-classify .box-item{width:4em;height:4.4em;display:flex;flex-direction:column}.zykjcommon-question .question-classify .main-block{margin:.38em auto 0;width:1.1em;height:1.1em;background:#76d2ff;border:1px dashed #fff;border-radius:.11em;flex-shrink:0}.zykjcommon-question .question-classify .main-block img{width:100%;height:100%;border-radius:.11em}.zykjcommon-question .question-classify .main-content{padding:0 .28em .15em .35em;flex:1}.zykjcommon-question .question-classify .main-content .main-append{height:2.9em;overflow:auto;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:start}.zykjcommon-question .question-classify .append-item{width:1.3em;height:1.3em;margin-right:.1em;flex-shrink:0;cursor:move;text-align:center;color:#eefc95;padding:0 .2em;display:flex;justify-content:center;align-items:center;line-height:1.2em}.zykjcommon-question .question-classify .append-item .list-item-text{font-size:.14em;margin-top:.1em;display:inline-block}.zykjcommon-question .question-classify .append-item:nth-child(odd){margin-left:.2em}.zykjcommon-question .question-classify .append-item:nth-child(2n){margin-right:.2em}.zykjcommon-question .question-classify .list-outter{padding:0 .33em;height:1.5em;position:absolute;bottom:.2em;left:50%;margin-left:-4.5em;width:9em}.zykjcommon-question .question-classify .list-outter .list{height:1.5em;display:flex;align-items:center;overflow-x:auto;width:100%}.zykjcommon-question .question-classify .list-outter .next,.zykjcommon-question .question-classify .list-outter .prev{width:.24em;height:100%;display:flex;align-items:center;position:absolute;top:0;cursor:pointer}.zykjcommon-question .question-classify .list-outter .prev{left:5px}.zykjcommon-question .question-classify .list-outter .next{right:5px}.zykjcommon-question .question-classify .list-outter .next-main,.zykjcommon-question .question-classify .list-outter .prev-main{width:.24em;height:.28em;top:50%}.zykjcommon-question .question-classify .list-outter .prev-main{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAwCAYAAABqkJjhAAAAAXNSR0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e7nz9jr6+NxW7g8vl1t3XbHjoupOS4bjfHO0eT9JNuvfie/v3gXwAHgWOwRRdpAAAAAElFTkSuQmCC) no-repeat 50%;background-size:100% 100%}.zykjcommon-question .question-classify .list-outter .next-main{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAwCAYAAABqkJjhAAAAAXNSR0IArs4c6QAABmFJREFUaEPtml2IFWUYx38zcz539+yH6+ZVJELdhARFBV1F3gcVutFFUEI3Ud6GN23QVYWQ0o0p6o0XKQaCCguhkKLmulm5RmWrYpAf68Z6vufMzBvPMzN7ztl23a+zy1noHMZ3z9fMb/7v/32e931eLeZ6GGPN+Gjm65m/NE1vWFbz6zkvtLgP/gtRBw0/O0LYDkTtXOe/Twi4NWqZbqGF8M3AjbACKpC5CDSLxS0s7mKxsYG6HIE9gUH+zkev5QZC+PBGWgRdB54JuwmbcSyK2HRiIcBlbNJY5BvUzmGoYsgS0I/hNwwbMDxGoPAtBg+BZ4O9h00Bmx5s7uPQiU0NmwQWSSwcLAqAhyGj6gYKWSJgioAMAV3Re+MErVK7EdhSv4qyAuvjEESHwQEc4lZg3UjlFAY3+mZVQT0sfD2DHBMEdBIwQNAKtZuBz2BTxpmGdUjgkkTaKgltY2jBkoe8YxMoJPgEePh4ZPH02YtHQW/I1x5YptpWZIe6uuMkSEdwAmtIASl8ktqKKUTtQPWzSBEoZgwrxpFnBpcENYWXZw+enuX+8tSuA8fqTpAgF4EKbI20DjU5PB1yKSwSeDjYWAQYEvgYPGy1g6tP6ZMkVWxcqtToiJQPzRaqLYPyZb1ZHUkLiSYh8BFs9W6srk8KRwEzVMmSIANkO2069z/PK8/08qwB6+IEVz8Y5UIhoKbAFjUChaxgUZn+G1w6I/BYbRmY0iuL9HYdWLpZ0KTjRFkJVHJYdMjlHs/Rd2kLn27IsLkxd9yrcmvnzxza/yc3FDgErWjcSFAGjR/hTWRx1S7Sb2KVeFBuxl9oCAyBz+DoYMtqJ6aoqrId2HRgNDjlzm1h+0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b0X+3m9HQopYW1trlKVVHd9OuYqVU1UufXRqpeq5isGyoaBQ6axGOhBcH6CsR1XuFiWeoIUA2W1K+XtFS8GymBaSrlVakWCObPcKsW/sMawQuVWAY63C6TkOqCrqqResu0K2lpK1k3Eusq9uhETbhEsZstAVmCpld4yaAReyKaMbLVIQaANNmXCSlAj9HzbXrJRIAvzVd/2qqvcDL3UjcUXCKZ3RVdkYzHOBmtq63Y2aHmvrTfHG/Num/73g38BlhTQcvLpk24AAAAASUVORK5CYII=) no-repeat 50%;background-size:100% 100%}.zykjcommon-question .question-classify .list-item{width:1.3em;height:1.3em;margin-right:.1em;flex-shrink:0;cursor:move;text-align:center;color:#eefc95;padding:0 .2em;display:flex;justify-content:center;align-items:center;line-height:1.2em}.zykjcommon-question .question-classify .list-item .list-item-text{font-size:.14em;margin-top:.1em;display:inline-block}.zykjcommon-question .question-classify .append-item.drag,.zykjcommon-question .question-classify .list-item.drag{border:1px dashed #ddd}.zykjcommon-question .question-classify-moveDiv{position:fixed;width:1.3em;height:1.3em;margin-right:.1em;flex-shrink:0;cursor:move;text-align:center;color:#eefc95;padding:0 .2em;display:flex;justify-content:center;align-items:center;line-height:1.2em}.zykjcommon-question .question-classify-moveDiv .list-item-text{font-size:.14em;display:inline-block;margin-top:.1em}.imgLookerDialog .mask{z-index:1001;position:fixed;left:0;top:0;width:100%;height:100%;background:#000;opacity:.6}.imgLookerDialog .next,.imgLookerDialog .prev{position:fixed;z-index:1003;top:50%;width:50px;height:50px;cursor:pointer}.imgLookerDialog .prev{left:10px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAACWCAMAAAB+fv82AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKyUExURQAAAP////////////////////////7+/v////7+/v////7+/v////7+/v7+/v////////////7+/v7+/v////7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v////7+/v////7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+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03tUR5vDE1lKdeBmeGKrqXZnw5O2nmpbJjz1fqLamA7PTbuovo3Dk7uP6vMoPE2PUH0IU6u/qObDVPA31ZswdbpENQ2m7mVUE2C69wpFMAqmB6opkkNgGlxHUTMAppEpiso+MD1LVXYnTFOp/rkdpteozrWFaR7VyRYwfUCxMgFTdBlvsCQGW/xrXlcYQQjSNvCaOQhH5s+86hWEJfs3ksFkhCd3P5NjEaZmfwxHuOL433+FDBG4u0hYwgAAAABJRU5ErkJggg==) no-repeat 50%;background-size:cover}.imgLookerDialog .next{right:10px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAACYCAMAAABAgU57AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALNUExURQAAAP////////////////////////7+/v////7+/v////7+/v////7+/v7+/v////////////7+/v7+/v////7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v////7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v////7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+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oZoKW4sLVONga1dANQK2e4soEgNh61FGEXsctkcqKMoegu3JOEVxZ9iGU11uD9tYqostYZtEdbYxbDOpTt4M23tUR+rAFVpKdSALrsgXVL9Vgyt5HdW2ynBV2ky1MRWuKjuo1kThytxLtSICV81DVItDcNU7RjUXtkanqKbD1vQ81UTY2uRTvQDbXVcoEkNg61ZCEe8P2yyq0myYHq2gSAyCqWcZ1bMw3VdCNQamTkVUE2C68zLVqzC1zqeaCVOz81TzYLrtNNWiEDwNT1J9HIan3lGqzyPw1D5MtSYKz037qTakwJO5m+qHNHiq7KDaXgWetC1Uv1aDJ/U7qn014EleS3WoFjxJX1IdqQtPeBnViQbwhD6g+jcHpvlU55rCNJvqYiuYplEVtINpMtWVjjC9SFXcFaaRVGUPwjQkQVHRB6Yn4hSx/jA9FqNIPA1Tr3Kq4TB1L6UaDVOnIqqXYWp/mWoKTG3yqd6EqXke1VyYGp+hWhiCp1Eu1UdheOofo1oZgSf7MNXXUXiy/qBanwJP5h6qzZXgyfiFals6PJW3Uu2qCk/qRqrfq8OTvI7qYE14klZR/V0HnshyquMN4AktoTp1C0zvU51tAtMcqgstYZpOdaktTJOpCu+GaRxVcReYnqcqfQCmoQmK8t4wPRWniPWDqW+MIj4QpofLKRLDYOpRSjUKps7FVONh6lBINQWm2y9RzYCpRR7V2zA1Pku1IARPo1NUS8Pw1PqHakUEpvBiitVJsIXm8wbfJCMIs3jdpkoIxmu85qfKCMorvGpnBoIzlv/bWx1BGpHggSwEa/Cf2QhaMgLyH5GFkMY7LmqvAAAAAElFTkSuQmCC) no-repeat 50%;background-size:cover}.imgLookerDialog .close{position:fixed;z-index:1003;top:10px;right:30px;color:#fff;cursor:pointer;border-radius:50%;width:50px;height:50px}.imgLookerDialog .close img{width:100%;height:100%}.imgLookerDialog .close:hover{background:rgba(0,0,0,.2)}.imgLookerDialog .imgLooker{width:100%;height:100%;z-index:1002;position:fixed;left:0;top:0;text-align:center;overflow:auto;display:flex;justify-content:center;align-items:center}.imgLookerDialog .imgLooker.out{display:inherit;text-align:center;overflow:auto;cursor:zoom-out}.imgLookerDialog .imgLooker.in{cursor:zoom-in}.imgLooker::-webkit-scrollbar-thumb{border-radius:6px;background-color:#fff}.imgLooker::-webkit-scrollbar-thumb:hover{background-color:#fff}
|
|
@@ -16270,70 +16270,70 @@ var index = {
|
|
|
16270
16270
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_66006ba2_render]])
|
|
16271
16271
|
|
|
16272
16272
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
16273
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
16273
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=4e651d25
|
|
16274
16274
|
|
|
16275
|
-
const
|
|
16275
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_1 = {
|
|
16276
16276
|
class: "zykjcommon-question",
|
|
16277
16277
|
style: {
|
|
16278
16278
|
"width": "100%",
|
|
16279
16279
|
"height": "100%"
|
|
16280
16280
|
}
|
|
16281
16281
|
};
|
|
16282
|
-
const
|
|
16282
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_2 = {
|
|
16283
16283
|
class: "box"
|
|
16284
16284
|
};
|
|
16285
|
-
const
|
|
16285
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_3 = {
|
|
16286
16286
|
class: "main-block"
|
|
16287
16287
|
};
|
|
16288
|
-
const
|
|
16289
|
-
const
|
|
16288
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_4 = ["src"];
|
|
16289
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16290
16290
|
class: "main-content"
|
|
16291
16291
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16292
16292
|
class: "main-append"
|
|
16293
16293
|
})], -1);
|
|
16294
|
-
const
|
|
16294
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16295
16295
|
class: "prev"
|
|
16296
16296
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16297
16297
|
class: "prev-main"
|
|
16298
16298
|
})], -1);
|
|
16299
|
-
const
|
|
16299
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16300
16300
|
class: "next"
|
|
16301
16301
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16302
16302
|
class: "next-main"
|
|
16303
16303
|
})], -1);
|
|
16304
|
-
const
|
|
16304
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_8 = {
|
|
16305
16305
|
class: "list"
|
|
16306
16306
|
};
|
|
16307
|
-
const
|
|
16308
|
-
const
|
|
16307
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_9 = ["idx"];
|
|
16308
|
+
const Question_Classifyvue_type_template_id_4e651d25_hoisted_10 = {
|
|
16309
16309
|
class: "list-item-text"
|
|
16310
16310
|
};
|
|
16311
|
-
function
|
|
16312
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
16311
|
+
function Question_Classifyvue_type_template_id_4e651d25_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16312
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16313
16313
|
class: "question-classify",
|
|
16314
16314
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
16315
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16315
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.bigBoxItemList, (item, index) => {
|
|
16316
16316
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
16317
16317
|
class: "box-item",
|
|
16318
16318
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
16319
16319
|
key: index
|
|
16320
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16320
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
16321
16321
|
src: item.imgUrl,
|
|
16322
16322
|
alt: ""
|
|
16323
|
-
}, null, 8,
|
|
16323
|
+
}, null, 8, Question_Classifyvue_type_template_id_4e651d25_hoisted_4)]), Question_Classifyvue_type_template_id_4e651d25_hoisted_5], 4);
|
|
16324
16324
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16325
16325
|
class: "list-outter",
|
|
16326
16326
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
16327
|
-
}, [
|
|
16327
|
+
}, [Question_Classifyvue_type_template_id_4e651d25_hoisted_6, Question_Classifyvue_type_template_id_4e651d25_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_8, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.optionList, (item, index) => {
|
|
16328
16328
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
16329
16329
|
class: "list-item",
|
|
16330
16330
|
idx: item.idx,
|
|
16331
16331
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
16332
16332
|
key: index
|
|
16333
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
16333
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_4e651d25_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 1)], 12, Question_Classifyvue_type_template_id_4e651d25_hoisted_9);
|
|
16334
16334
|
}), 128))])], 4)], 4)]);
|
|
16335
16335
|
}
|
|
16336
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
16336
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=4e651d25
|
|
16337
16337
|
|
|
16338
16338
|
;// CONCATENATED MODULE: ./src/assets/js/rem.js
|
|
16339
16339
|
/**
|
|
@@ -16523,33 +16523,35 @@ let env = js_fun.getDeviceEnv();
|
|
|
16523
16523
|
parseLists(nv) {
|
|
16524
16524
|
this.classify_question_info = nv.classify_question_info;
|
|
16525
16525
|
let exam_options_data = nv.exam_options_data;
|
|
16526
|
-
if (this.classify_question_info
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16526
|
+
if (this.classify_question_info) {
|
|
16527
|
+
if (this.classify_question_info.background_file) {
|
|
16528
|
+
this.bigBgCss = `background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`;
|
|
16529
|
+
}
|
|
16530
|
+
if (this.classify_question_info.bottom_img_file) {
|
|
16531
|
+
this.bottomBgCss = `background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`;
|
|
16532
|
+
}
|
|
16533
|
+
let optionList = [];
|
|
16534
|
+
exam_options_data.forEach(item => {
|
|
16535
|
+
optionList.push({
|
|
16536
|
+
content: item.data.option_content,
|
|
16537
|
+
bgUrlCss: `background: url(${item.data.file_url}) no-repeat center;background-size: 100% 100%`,
|
|
16538
|
+
idx: item.index
|
|
16539
|
+
});
|
|
16538
16540
|
});
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16541
|
+
this.optionList = optionList;
|
|
16542
|
+
this.listItemBgCss = !optionList[0] ? '' : optionList[0].bgUrlCss;
|
|
16543
|
+
let bigBoxItemList = [];
|
|
16544
|
+
let big_type_box_image_list = this.classify_question_info.big_type_box_image_list;
|
|
16545
|
+
let big_type_option_list = this.classify_question_info.big_type_option_list;
|
|
16546
|
+
big_type_box_image_list.forEach((item, index) => {
|
|
16547
|
+
bigBoxItemList.push({
|
|
16548
|
+
imgUrl: big_type_option_list[index].file_url,
|
|
16549
|
+
bgUrl: item.file_url,
|
|
16550
|
+
bgUrlCss: `background: url(${item.file_url}) no-repeat center;background-size: 100% 100%`
|
|
16551
|
+
});
|
|
16550
16552
|
});
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
+
this.bigBoxItemList = bigBoxItemList;
|
|
16554
|
+
}
|
|
16553
16555
|
},
|
|
16554
16556
|
setRootFontSize() {
|
|
16555
16557
|
// setRemFixedHeight(1000,140,1.08)
|
|
@@ -16558,7 +16560,6 @@ let env = js_fun.getDeviceEnv();
|
|
|
16558
16560
|
unmountedDo() {
|
|
16559
16561
|
window.removeEventListener('resize', this.setRootFontSize);
|
|
16560
16562
|
document.removeEventListener('gesturestart', this.gesturestartListener);
|
|
16561
|
-
this.$el;
|
|
16562
16563
|
$(this.$el).find('.question-classify .append-item').off(this.mousedown);
|
|
16563
16564
|
$(this.$el).find('.question-classify .list-item').off(this.mousedown);
|
|
16564
16565
|
$(document).off(this.mouseup);
|
|
@@ -16797,7 +16798,7 @@ let env = js_fun.getDeviceEnv();
|
|
|
16797
16798
|
|
|
16798
16799
|
|
|
16799
16800
|
;
|
|
16800
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
16801
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_4e651d25_render]])
|
|
16801
16802
|
|
|
16802
16803
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
16803
16804
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|
|
@@ -17099,6 +17100,7 @@ const state = {
|
|
|
17099
17100
|
|
|
17100
17101
|
|
|
17101
17102
|
|
|
17103
|
+
|
|
17102
17104
|
/* harmony default export */ function buildEntry(store) {
|
|
17103
17105
|
//动态注册store
|
|
17104
17106
|
store.registerModule('zykjcommonQuestions', questions_store);
|
|
@@ -24,4 +24,4 @@ return function(t){var n=e,o=n.lib,i=o.WordArray,r=o.Hasher,s=n.algo,a=i.create(
|
|
|
24
24
|
* (c) 2022 Evan You
|
|
25
25
|
* @license MIT
|
|
26
26
|
*/
|
|
27
|
-
var mo="store";function To(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function go(e){return null!==e&&"object"===typeof e}function bo(e){return e&&"function"===typeof e.then}function So(e,t){return function(){return e(t)}}function vo(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Mo(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Bo(e,n,[],e._modules.root,!0),yo(e,n,t)}function yo(e,t,o){var i=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,a={},c={},l=(0,n.effectScope)(!0);l.run((function(){To(s,(function(t,o){a[o]=So(t,e),c[o]=(0,n.computed)((function(){return a[o]()})),Object.defineProperty(e.getters,o,{get:function(){return c[o].value},enumerable:!0})}))})),e._state=(0,n.reactive)({data:t}),e._scope=l,e.strict&&Go(e),i&&o&&e._withCommit((function(){i.data=null})),r&&r.stop()}function Bo(e,t,n,o,i){var r=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!r&&!i){var a=xo(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){a[c]=o.state}))}var l=o.context=Co(e,s,n);o.forEachMutation((function(t,n){var o=s+n;Po(e,o,t,l)})),o.forEachAction((function(t,n){var o=t.root?n:s+n,i=t.handler||t;Eo(e,o,i,l)})),o.forEachGetter((function(t,n){var o=s+n;Io(e,o,t,l)})),o.forEachChild((function(o,r){Bo(e,t,n.concat(r),o,i)}))}function Co(e,t,n){var o=""===t,i={dispatch:o?e.dispatch:function(n,o,i){var r=Do(n,o,i),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:o?e.commit:function(n,o,i){var r=Do(n,o,i),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return wo(e,t)}},state:{get:function(){return xo(e.state,n)}}}),i}function wo(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Po(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,o.state,t)}))}function Eo(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return bo(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function Io(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}function Go(e){(0,n.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function xo(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Do(e,t,n){return go(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var ko="vuex bindings",Ho="vuex:mutations",No="vuex:actions",Oo="vuex",Lo=0;function Vo(e,t){Ao({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ko]},(function(n){n.addTimelineLayer({id:Ho,label:"Vuex Mutations",color:_o}),n.addTimelineLayer({id:No,label:"Vuex Actions",color:_o}),n.addInspector({id:Oo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===Oo)if(n.filter){var o=[];Qo(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[Uo(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===Oo){var o=n.nodeId;wo(t,o),n.state=Xo(Ko(t._modules,o),"root"===o?t.getters:t._makeLocalGettersCache,o)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===Oo){var o=n.nodeId,i=n.path;"root"!==o&&(i=o.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(Oo),n.sendInspectorState(Oo),n.addTimelineEvent({layerId:Ho,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=Lo++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:No,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},i=Date.now()-e._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:No,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var _o=8702998,Fo=6710886,Ro=16777215,qo={label:"namespaced",textColor:Ro,backgroundColor:Fo};function jo(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function Uo(e,t){return{id:t||"root",label:jo(t),tags:e.namespaced?[qo]:[],children:Object.keys(e._children).map((function(n){return Uo(e._children[n],t+n+"/")}))}}function Qo(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[qo]:[]}),Object.keys(t._children).forEach((function(i){Qo(e,t._children[i],n,o+i+"/")}))}function Xo(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var r=Wo(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?jo(e):e,editable:!1,value:zo((function(){return r[e]}))}}))}return i}function Wo(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=zo((function(){return e[n]}))}else t[n]=zo((function(){return e[n]}))})),t}function Ko(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,o,i){var r=e[o];if(!r)throw new Error('Missing module "'+o+'" for path "'+t+'".');return i===n.length-1?r:r._children}),"root"===t?e:e.root._children)}function zo(e){try{return e()}catch(t){return t}}var Yo=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Jo={namespaced:{configurable:!0}};Jo.namespaced.get=function(){return!!this._rawModule.namespaced},Yo.prototype.addChild=function(e,t){this._children[e]=t},Yo.prototype.removeChild=function(e){delete this._children[e]},Yo.prototype.getChild=function(e){return this._children[e]},Yo.prototype.hasChild=function(e){return e in this._children},Yo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Yo.prototype.forEachChild=function(e){To(this._children,e)},Yo.prototype.forEachGetter=function(e){this._rawModule.getters&&To(this._rawModule.getters,e)},Yo.prototype.forEachAction=function(e){this._rawModule.actions&&To(this._rawModule.actions,e)},Yo.prototype.forEachMutation=function(e){this._rawModule.mutations&&To(this._rawModule.mutations,e)},Object.defineProperties(Yo.prototype,Jo);var Zo=function(e){this.register([],e,!1)};function $o(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return void 0;$o(e.concat(o),t.getChild(o),n.modules[o])}}Zo.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Zo.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Zo.prototype.update=function(e){$o([],this.root,e)},Zo.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var i=new Yo(t,n);if(0===e.length)this.root=i;else{var r=this.get(e.slice(0,-1));r.addChild(e[e.length-1],i)}t.modules&&To(t.modules,(function(t,i){o.register(e.concat(i),t,n)}))},Zo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},Zo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ei=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Zo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var r=this,s=this,a=s.dispatch,c=s.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return c.call(r,e,t,n)},this.strict=o;var l=this._modules.root.state;Bo(this,l,[],this._modules.root),yo(this,l),n.forEach((function(e){return e(t)}))},ti={state:{configurable:!0}};ei.prototype.install=function(e,t){e.provide(t||mo,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&Vo(e,this)},ti.state.get=function(){return this._state.data},ti.state.set=function(e){0},ei.prototype.commit=function(e,t,n){var o=this,i=Do(e,t,n),r=i.type,s=i.payload,a=(i.options,{type:r,payload:s}),c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,o.state)})))},ei.prototype.dispatch=function(e,t){var n=this,o=Do(e,t),i=o.type,r=o.payload,s={type:i,payload:r},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(l){0}var c=a.length>1?Promise.all(a.map((function(e){return e(r)}))):a[0](r);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(l){0}t(e)}))}))}},ei.prototype.subscribe=function(e,t){return vo(e,this._subscribers,t)},ei.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return vo(n,this._actionSubscribers,t)},ei.prototype.watch=function(e,t,o){var i=this;return(0,n.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},o))},ei.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ei.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Bo(this,this.state,e,this._modules.get(e),n.preserveState),yo(this,this.state)},ei.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=xo(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),Mo(this)},ei.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ei.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},ei.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ei.prototype,ti);var ni=si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=ai(this.$store,"mapState",e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[o].vuex=!0})),n})),oi=(si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.commit;if(e){var r=ai(this.$store,"mapMutations",e);if(!r)return;o=r.context.commit}return"function"===typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n})),si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;i=e+i,n[o]=function(){if(!e||ai(this.$store,"mapGetters",e))return this.$store.getters[i]},n[o].vuex=!0})),n})),si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var r=ai(this.$store,"mapActions",e);if(!r)return;o=r.context.dispatch}return"function"===typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n})));function ii(e){return ri(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ri(e){return Array.isArray(e)||go(e)}function si(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ai(e,t,n){var o=e._modulesNamespaceMap[n];return o}var ci={name:"Question_Programming",props:{isEnterCodeByInit:{type:Boolean,default:!1},urlQuery:{type:String,default:""},isSub:{type:Boolean,default:!1},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"}},mounted(){H(this),this.$watch("oss_temp_url",(e=>{if(e){let e=this.isAnswered();this.$emit("getIsAnswered",e),"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:this.questionInfo.questionIndex-1,answered:e})}}),{immediate:!0})},created(){this.isEnterCodeByInit&&(this.oss_temp_url?this.startCode("2"):this.startCode("1"))},data(){return{iframe:null,showFrame:!1,analyCorrectAnswer:"",iframeUrl:"",code_file_oss_temp_path:"",oss_temp_url:"",scratch_answer_json:"",loading:!1,enterCode:!1,codeTypeMap:{1:"Scratch",2:"Python",3:"PyGame",4:"C++"},codeTypeImgMap:{1:o(3031),2:o(3843),3:o(6543),4:o(2657)},answerMap:{},...JSON.parse(k)}},watch:{questionInfo:{handler(e,t){if(e){this.answerMap=e.answerMap;let t=e.answerMap;t&&(this.code_file_oss_temp_path=t.code_file_oss_temp_path,this.oss_temp_url=t.oss_temp_url)}},immediate:!0}},computed:{...ni("zykjcommonQuestions",["pythonCodeWebPath","scratchCodeWebPath","cplusCodeWebPath"])},methods:{...oi("zykjcommonQuestions",["getEditorUrlActions"]),getAnswer(){return{code_file_oss_temp_path:this.code_file_oss_temp_path,oss_temp_url:this.oss_temp_url,scratch_answer_json:this.scratch_answer_json}},isAnswered(){let e=""!==this.oss_temp_url;return e},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e},getCodeWebPath(e){this.pythonCodeWebPath||this.scratchCodeWebPath||this.cplusCodeWebPath?e&&e():(this.loading=!0,this.getEditorUrlActions().then((()=>{this.loading=!1,e&&e()}),(()=>{this.loading=!1})))},startCode(e){let t=this;this.loading||(this.getCodeWebPath((function(){let n={1:t.questionInfo.template_file_full_url,2:t.oss_temp_url,3:t.oss_temp_url,4:t.questionInfo.reference_file_full_url},o="",i=t.questionInfo.code_type,r=n[e],s=t.urlQuery+`&codeUrl=${r}`;switch(i){case 1:o=`${t.scratchCodeWebPath}/?${s}`;break;case 2:o=`${t.pythonCodeWebPath}/?${s}`;break;case 3:o=`${t.pythonCodeWebPath}/?${s}&pygame=true`;break;case 4:o=`${t.cplusCodeWebPath}/?${s}`;break}t.iframeUrl=o})),this.showFrame=!0)},getQuestionInfo(){let e=this,t={type:"getQuestionInfo",data:e.questionInfo.htmlContent};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(t),"*")},submitCodeQuestionByTimeover(){let e={type:"submitCodeQuestionByTimeover"};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(e),"*")},iframeLoaded(e){this.iframe=e,this.enterCode=!0,this.bus.$emit("enterCode",!0)},closeIframe(){this.enterCode=!1,this.bus.$emit("enterCode",!1),this.showFrame=!1},closeAndSave(e){this.saveCodeOnly(e),this.isEnterCodeByInit||this.closeIframe(),this.$emit("closeAndSave",e)},saveCodeOnly(e){let t=this;this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("submitQuestion",{saveType:1,submitRequestAutoQuit:!1,needSubmitRequest:!1});let n=this.isAnswered();"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:t.questionInfo.questionIndex-1,answered:n}),this.$emit("saveCodeOnly",e)},uploadCodingFileSuccess(e){this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("uploadCodingFileSuccess")}},components:{IframeComponent:oo,MediaLooker:De,Loading:eo}};const li=(0,Ge.Z)(ci,[["render",Un]]);var ui=li;const di={class:"zykjcommon-question",style:{width:"100%",height:"100%"}},fi={class:"box"},hi={class:"main-block"},pi=["src"],Ai=(0,n.createElementVNode)("div",{class:"main-content"},[(0,n.createElementVNode)("div",{class:"main-append"})],-1),mi=(0,n.createElementVNode)("div",{class:"prev"},[(0,n.createElementVNode)("div",{class:"prev-main"})],-1),Ti=(0,n.createElementVNode)("div",{class:"next"},[(0,n.createElementVNode)("div",{class:"next-main"})],-1),gi={class:"list"},bi=["idx"],Si={class:"list-item-text"};function vi(e,t,o,i,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",di,[(0,n.createElementVNode)("div",{class:"question-classify",style:(0,n.normalizeStyle)(r.bigBgCss)},[(0,n.createElementVNode)("div",fi,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.bigBoxItemList,((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"box-item",style:(0,n.normalizeStyle)(e.bgUrlCss),key:t},[(0,n.createElementVNode)("div",hi,[(0,n.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,pi)]),Ai],4)))),128))]),(0,n.createElementVNode)("div",{class:"list-outter",style:(0,n.normalizeStyle)(r.bottomBgCss)},[mi,Ti,(0,n.createElementVNode)("div",gi,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.optionList,((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"list-item",idx:e.idx,style:(0,n.normalizeStyle)(e.bgUrlCss),key:t},[(0,n.createElementVNode)("div",Si,(0,n.toDisplayString)(e.content),1)],12,bi)))),128))])],4)],4)])}let Mi=function(e=1440,t=0,n=1){let o=100,i=document.documentElement.clientWidth||document.body.clientWidth,r=document.documentElement.clientHeight||document.body.clientHeight;r-=t;let s=document.getElementsByTagName("html")[0],a=4/3,c=a/(i/r),l=parseInt(i*c),u=document.querySelector(".zykjcommon-question");u.style.fontSize=l/e*o*n+"px",console.log(s.style.fontSize)},yi=Ee.getDeviceEnv();var Bi={name:"Question_Classify",props:{questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"},screenRepairH:{type:Number,default:0},screenScale:{type:Number,default:0}},created(){},unmounted(){this.unmountedDo()},destroyed(){this.unmountedDo()},mounted(){this.setRootFontSize(),window.addEventListener("resize",this.setRootFontSize),this.init(),this.$watch("optionList",(e=>{e&&e.length&&this.$nextTick((()=>{this.dothings()}))}),{immediate:!0,deep:!0})},data(){return{animationing:!1,analyCorrectAnswer:"",classify_question_info:{},answerMap:{},optionList:[],bigBoxItemList:[],bigBgCss:"",bottomBgCss:"",listItemBgCss:"",env:yi,p1:{},p2:{},listItem:null,moveDiv:null,timer:null,mousedown:"mobile"===yi?"touchstart":"mousedown",mousemove:"mobile"===yi?"touchmove":"mousemove",mouseup:"mobile"===yi?"touchend":"mouseup",dragWay:"",flag:!1,scrollDistance:3e3}},watch:{questionInfo:{handler(e,t){e&&(console.log(e,33),this.parseLists(e),this.answerMap=e.answerMap,e.answerMap&&this.mode)},immediate:!0}},computed:{},methods:{getAnswer(){let e=[];return $(this.$el).find(".box-item").each((function(t,n){let o=$(this),i=[];o.find(".append-item").each(((e,t)=>{i.push(Number($(t).attr("idx")))})),i=i.sort((function(e,t){return e-t})),console.log(i,345),e.push({big_type_index:t+1,small_type_index_list:i})})),{classify_mapping_list:e}},isAnswered(){let e=$(this.$el).find(".list .list-item").length,t=0===e;return t},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e},parseLists(e){this.classify_question_info=e.classify_question_info;let t=e.exam_options_data;this.classify_question_info.background_file&&(this.bigBgCss=`background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`),this.classify_question_info.bottom_img_file&&(this.bottomBgCss=`background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`);let n=[];t.forEach((e=>{n.push({content:e.data.option_content,bgUrlCss:`background: url(${e.data.file_url}) no-repeat center;background-size: 100% 100%`,idx:e.index})})),this.optionList=n,this.listItemBgCss=n[0]?n[0].bgUrlCss:"";let o=[],i=this.classify_question_info.big_type_box_image_list,r=this.classify_question_info.big_type_option_list;i.forEach(((e,t)=>{o.push({imgUrl:r[t].file_url,bgUrl:e.file_url,bgUrlCss:`background: url(${e.file_url}) no-repeat center;background-size: 100% 100%`})})),this.bigBoxItemList=o},setRootFontSize(){Mi(1e3,this.screenRepairH,this.screenScale)},unmountedDo(){window.removeEventListener("resize",this.setRootFontSize),document.removeEventListener("gesturestart",this.gesturestartListener),this.$el,$(this.$el).find(".question-classify .append-item").off(this.mousedown),$(this.$el).find(".question-classify .list-item").off(this.mousedown),$(document).off(this.mouseup);let e=document.getElementsByTagName("html")[0];e.style.fontSize=""},answeredNotify(){let e=this,t=e.isAnswered();e.$emit("getIsAnswered",t),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:t})},gesturestartListener(e){e.preventDefault()},init(){"mobile"===yi&&document.addEventListener("gesturestart",this.gesturestartListener)},getSpecArr(){let e=this,t=[],n=e.moveDiv.offset().left,o=n+e.moveDiv.width(),i=e.moveDiv.offset().top,r=i+e.moveDiv.height();return $(this.$el).find(".box-item").each(((e,s)=>{let a=$(s),c=a.offset().left,l=c+a.width(),u=a.offset().top,d=u+a.height();n>c&&o<l&&i>u&&r<d&&t.push({dom:a})})),t},bindDragDomEvent(e,t){let n=this;e.on(this.mousedown,(function(e){if(n.moveDiv)return;n.flag=!1,n.dragWay=t,console.log(e),e.stopPropagation(),e.preventDefault(),n.listItem=$(this),n.listItem.addClass("drag"),n.p1.moveX=n.listItem.offset().left,n.p1.moveY=n.listItem.offset().top-30;let o=n.listItem.attr("idx");n.moveDiv=$(`<div class="question-classify-moveDiv" idx="${o}" style="${n.listItemBgCss}"><div class="list-item-text">${n.listItem.find(".list-item-text").text()}</div></div>`),n.moveDiv.css({left:`${n.p1.moveX}px`,top:`${n.p1.moveY}px`}),$(n.$el).append(n.moveDiv),$(document).on(n.mousemove,(function(e){e.stopPropagation(),n.p2.moveX=e.clientX||e.originalEvent.touches&&e.originalEvent.touches[0].clientX,n.p2.moveY=e.clientY||e.originalEvent.touches&&e.originalEvent.touches[0].clientY;let t=n.p2.moveX-n.moveDiv.width()/2,o=n.p2.moveY-n.moveDiv.height()/2;n.moveDiv.css({left:t+"px",top:o+"px"})}))}))},appendMoveDiv(e){let t=this;t.listItem.remove();let n=t.moveDiv.attr("idx"),o=$(`<div class="${e.appendItemClassName}" idx="${n}" style="${t.listItemBgCss}"><div class="list-item-text">${t.moveDiv.find(".list-item-text").text()}</div></div>`);o.css({opacity:0}),e.targetList.append(o),e.targetList[e.scrollDirection](t.scrollDistance);let i=o.offset().left,r=o.offset().top;t.animationing=!0,t.moveDiv.css({transition:"all 0.5s",left:i,top:r}).on("transitionend",(function(){t.flag||(t.moveDiv.remove(),t.moveDiv.off("transitionend"),t.moveDiv=null,o.css({opacity:1}),t.answeredNotify(),t.bindDragDomEvent(o,e.op),t.animationing=!1),t.flag=!0}))},bindNextPrevEvent(e){let t=this;$(this.$el).find(`.question-classify .${e}`).on("click",(function(n){n.stopPropagation(),n.preventDefault();let o=$(t.$el).find(".question-classify .list-item"),i=$(t.$el).find(".question-classify .list"),r=o.outerWidth()*("next"===e?1:-1),s=i.scrollLeft();console.log(s),$(t.$el).find(".question-classify .list").stop(!0).animate({scrollLeft:s+r},500)}))},dothings(){let e=this;this.answerMap&&this.answerMap.classify_mapping_list&&this.answerMap.classify_mapping_list.length&&this.setAnswerDo(),e.bindDragDomEvent($(this.$el).find(".question-classify .list-item"),"go"),$(document).on(e.mouseup,(function(t){if(!e.animationing)if("go"===e.dragWay){if($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv){let t=e.getSpecArr();if(0===t.length)e.moveDiv&&(e.moveDiv.remove(),e.moveDiv=null);else{let n=t[0].dom;e.appendMoveDiv({targetList:n.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"})}}}else if("back"===e.dragWay&&($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv)){let t=e.getSpecArr();if(0===t.length)e.appendMoveDiv({targetList:$(e.$el).find(".question-classify .list"),appendItemClassName:"list-item",op:"go",scrollDirection:"scrollLeft"});else{let n=t[0].dom,o=e.listItem.parents(".question-classify .box-item");n.get(0)===o.get(0)?(console.log("自己"),e.moveDiv.remove(),e.moveDiv=null,e.listItem&&e.listItem.removeClass("drag")):(console.log("不是自己"),e.appendMoveDiv({targetList:n.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"}),console.log("不是自己"))}console.log(t.length)}})),e.bindNextPrevEvent("next"),e.bindNextPrevEvent("prev")},setAnswerDo(){let e=this,t=[];$(this.$el).find(".question-classify .list-item").each(((e,n)=>{t.push(Number($(n).attr("idx")))})),this.answerMap.classify_mapping_list.forEach(((n,o)=>{n.small_type_index_list.forEach((n=>{let i=t.findIndex((e=>e==n));if(i>-1){t.splice(i,1);let n=$(this.$el).find(".question-classify .list-item").eq(i),r=n.attr("idx"),s=$(`<div class="append-item" idx="${r}" style="${e.listItemBgCss}"><div class="list-item-text">${n.find(".list-item-text").text()}</div></div>`);e.bindDragDomEvent(s,"back"),$(this.$el).find(".main-append").eq(o).append(s),n.remove()}}))})),this.answeredNotify()}},components:{}};const Ci=(0,Ge.Z)(Bi,[["render",vi]]);var wi=Ci;let Pi={1:"Question_SingleChoice",2:"Question_MultipleChoice",3:"Question_SingleChoice",7:"Question_BriefAnswer",16:"Question_Programming",11:"Question_Reading",4:"Question_FillBlank",17:"Question_Classify"};var Ei=o(1354),Ii=o(9669),Gi=o.n(Ii),xi=o(7631),Di=o.n(xi);let ki="piw38kulfozrea7ydmjnvbc965q1gt2x",Hi=function(e,t,n,o){void 0!=n&&"undefined"!==typeof n["password"]&&(n["password"]=Di().hex_md5(Di().hex_md5(n["password"]+"FE605C9343A3A47764598FDC184EC66F").toUpperCase()+"FE605C9343A3A47764598FDC184EC66F").toUpperCase());let i=e+"\n/student-web"+t+"\n"+o+"\n"+(n?JSON.stringify(n):""),r=Ei.enc.Base64.stringify((0,Ei.HmacSHA256)(i,ki)),s=function(e){let t=e.replace(/\+/g,"-");t=t.replace(/\//g,"_");let n=t.length%4,o="====";return t+=o.substring(0,n),t};return s(r)};Gi().defaults.baseURL="https://jsl-api.thedeer.cn/student-web/",Gi().defaults.timeout=6e4,Gi().defaults.withCredentials=!0;let Ni=(e,t)=>{if(t&&-1!=t["Content-Type"].indexOf("multipart/form-data")){let t=new FormData;for(let n in e)t.append(n,e[n]);return t}return JSON.stringify(e)},Oi=e=>{e=JSON.parse(e),e.hasOwnProperty("errorCode")&&(e.error_code=e.errorCode);let{error_code:t,message:n}=e;if(t){let e=[39002,39003];if(e.indexOf(t)<=-1){let e=n||"系统异常";Ee.messageTip("warning",e)}}return e};function Li(e,t,n,o,i){let r,s;e=e.toUpperCase(),t+=0===n.indexOf("/")?n.substr(1):n;let a=window.isMock;"undefined"!==typeof i&&"undefined"!==typeof i.isMock&&(a=i.isMock,delete i.isMock),a&&i&&i.onUploadProgress&&delete i.onUploadProgress;let c=n;"/"!==n[0]&&(c="/"+n);let l=(new Date).getTime(),u={ts:l,sign:Hi(e,c,o,l),token:Ee.getToken()};switch(e){case"Get":s=o||{};break;default:case"POST":r=o||{},u["Content-Type"]=i&&i.contentType?i.contentType:"application/json";break}return t instanceof Array?Gi().all([]).then(Gi().spread((function(){}))):Gi()(Object.assign({headers:u,method:e,url:t,data:r,params:s,transformRequest:Ni,transformResponse:Oi},i)).then((e=>e.data)).catch((e=>(console.log("服务端请求/响应错误:",e,e.config),Promise.reject(e))))}const Vi=(e,t,n)=>Li("GET","",e,t,n);let _i={editorUrl:"/open/editor-url"};const Fi={pythonCodeWebPath:"",scratchCodeWebPath:"",cplusCodeWebPath:""};var Ri={namespaced:!0,state:Fi,getters:{},mutations:{setCodeWebPath(e,t){e.pythonCodeWebPath=t.pythonCodeWebPath,e.scratchCodeWebPath=t.scratchCodeWebPath,e.cplusCodeWebPath=t.cplusCodeWebPath}},actions:{getEditorUrlActions({commit:e,dispatch:t}){return new Promise(((t,n)=>{Vi(`${_i.editorUrl}`).then((n=>{let{error_code:o,data:i}=n;if(!o){let{pythonCodeWebPath:t,scratchCodeWebPath:n,cplusCodeWebPath:o}=i;e("setCodeWebPath",{pythonCodeWebPath:t,scratchCodeWebPath:n,cplusCodeWebPath:o})}t(n)}),(e=>{n(e)}))}))}}};function qi(e){return e.registerModule("zykjcommonQuestions",Ri),{install(e){Ee.getVueVersion();e.mixin({methods:{parseQuestionListItem(e,t,n,o=void 0){function i(e,t){e.forEach((e=>{if("img"===e["<>"]&&e.hasOwnProperty("width")){let n=Number(e.width);n>t&&(e.width=Math.floor(t),e.height&&delete e.height)}e.html&&e.html.length&&i(e.html,t)}))}t.forEach(((t,r)=>{if(t.questionComponent=Pi[t.question_type],void 0===o?t.questionIndex=r+1:(t.questionIndex=o+1+"-"+(r+1),t.questionIndex2=r+1),n&&n.hasOwnProperty(t.question_id)){if(t.answerMap=n[t.question_id],"analysis"===e){t.answerMap.user_coding_file&&(t.answerMap.oss_temp_url=t.answerMap.user_coding_file),t.score=t.answerMap.question_max_score;let e=Object.keys(t.answerMap),n=/^user_/gi;e.forEach((e=>{if(n.test(e)){let o=e.replace(n,"");t.answerMap[o]=t.answerMap[e]}}))}}else t.answerMap=null;let s=t.question_type;3==s?t.exam_options_data=[{index:1,data:{name:"正确"}},{index:2,data:{name:"错误"}}]:t.exam_options_data&&t.exam_options_data.length&&t.exam_options_data.forEach(((e,t)=>{e.enIndex=Ee.indexToEnIndex(t+1)}));try{let e=JSON.parse(t.content),n=jQuery(".question-list").width()-30;i(e,n),t.htmlContent=$.json2html({},e)}catch(a){t.htmlContent=t.content}try{t.analysis?t.analysisHtmlContent=$.json2html({},JSON.parse(t.analysis)):t.analysisHtmlContent=""}catch(a){t.analysisHtmlContent=t.analysis}t.sub_questions&&t.sub_questions.length&&this.parseQuestionListItem(e,t.sub_questions,n,r)}))}}}),e.component("Question_SingleChoice",Ne),e.component("Question_MultipleChoice",Tt),e.component("Question_Reading",xt),e.component("Question_BriefAnswer",cn),e.component("Question_FillBlank",bn),e.component("Question_Programming",ui),e.component("Question_Classify",wi)},Question_SingleChoice:Ne,Question_MultipleChoice:Tt,Question_Reading:xt,Question_BriefAnswer:cn,Question_FillBlank:bn,Question_Programming:ui,Question_Classify:wi}}var ji=qi}(),i}()}));
|
|
27
|
+
var mo="store";function To(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function go(e){return null!==e&&"object"===typeof e}function bo(e){return e&&"function"===typeof e.then}function So(e,t){return function(){return e(t)}}function vo(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Mo(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Bo(e,n,[],e._modules.root,!0),yo(e,n,t)}function yo(e,t,o){var i=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,a={},c={},l=(0,n.effectScope)(!0);l.run((function(){To(s,(function(t,o){a[o]=So(t,e),c[o]=(0,n.computed)((function(){return a[o]()})),Object.defineProperty(e.getters,o,{get:function(){return c[o].value},enumerable:!0})}))})),e._state=(0,n.reactive)({data:t}),e._scope=l,e.strict&&Go(e),i&&o&&e._withCommit((function(){i.data=null})),r&&r.stop()}function Bo(e,t,n,o,i){var r=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!r&&!i){var a=xo(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){a[c]=o.state}))}var l=o.context=Co(e,s,n);o.forEachMutation((function(t,n){var o=s+n;Po(e,o,t,l)})),o.forEachAction((function(t,n){var o=t.root?n:s+n,i=t.handler||t;Eo(e,o,i,l)})),o.forEachGetter((function(t,n){var o=s+n;Io(e,o,t,l)})),o.forEachChild((function(o,r){Bo(e,t,n.concat(r),o,i)}))}function Co(e,t,n){var o=""===t,i={dispatch:o?e.dispatch:function(n,o,i){var r=Do(n,o,i),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:o?e.commit:function(n,o,i){var r=Do(n,o,i),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return wo(e,t)}},state:{get:function(){return xo(e.state,n)}}}),i}function wo(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Po(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,o.state,t)}))}function Eo(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return bo(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function Io(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}function Go(e){(0,n.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function xo(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Do(e,t,n){return go(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var ko="vuex bindings",Ho="vuex:mutations",No="vuex:actions",Oo="vuex",Lo=0;function Vo(e,t){Ao({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ko]},(function(n){n.addTimelineLayer({id:Ho,label:"Vuex Mutations",color:_o}),n.addTimelineLayer({id:No,label:"Vuex Actions",color:_o}),n.addInspector({id:Oo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===Oo)if(n.filter){var o=[];Qo(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[Uo(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===Oo){var o=n.nodeId;wo(t,o),n.state=Xo(Ko(t._modules,o),"root"===o?t.getters:t._makeLocalGettersCache,o)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===Oo){var o=n.nodeId,i=n.path;"root"!==o&&(i=o.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(Oo),n.sendInspectorState(Oo),n.addTimelineEvent({layerId:Ho,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=Lo++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:No,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},i=Date.now()-e._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:No,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var _o=8702998,Fo=6710886,Ro=16777215,qo={label:"namespaced",textColor:Ro,backgroundColor:Fo};function jo(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function Uo(e,t){return{id:t||"root",label:jo(t),tags:e.namespaced?[qo]:[],children:Object.keys(e._children).map((function(n){return Uo(e._children[n],t+n+"/")}))}}function Qo(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[qo]:[]}),Object.keys(t._children).forEach((function(i){Qo(e,t._children[i],n,o+i+"/")}))}function Xo(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var r=Wo(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?jo(e):e,editable:!1,value:zo((function(){return r[e]}))}}))}return i}function Wo(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=zo((function(){return e[n]}))}else t[n]=zo((function(){return e[n]}))})),t}function Ko(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,o,i){var r=e[o];if(!r)throw new Error('Missing module "'+o+'" for path "'+t+'".');return i===n.length-1?r:r._children}),"root"===t?e:e.root._children)}function zo(e){try{return e()}catch(t){return t}}var Yo=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Jo={namespaced:{configurable:!0}};Jo.namespaced.get=function(){return!!this._rawModule.namespaced},Yo.prototype.addChild=function(e,t){this._children[e]=t},Yo.prototype.removeChild=function(e){delete this._children[e]},Yo.prototype.getChild=function(e){return this._children[e]},Yo.prototype.hasChild=function(e){return e in this._children},Yo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Yo.prototype.forEachChild=function(e){To(this._children,e)},Yo.prototype.forEachGetter=function(e){this._rawModule.getters&&To(this._rawModule.getters,e)},Yo.prototype.forEachAction=function(e){this._rawModule.actions&&To(this._rawModule.actions,e)},Yo.prototype.forEachMutation=function(e){this._rawModule.mutations&&To(this._rawModule.mutations,e)},Object.defineProperties(Yo.prototype,Jo);var Zo=function(e){this.register([],e,!1)};function $o(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return void 0;$o(e.concat(o),t.getChild(o),n.modules[o])}}Zo.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Zo.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Zo.prototype.update=function(e){$o([],this.root,e)},Zo.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var i=new Yo(t,n);if(0===e.length)this.root=i;else{var r=this.get(e.slice(0,-1));r.addChild(e[e.length-1],i)}t.modules&&To(t.modules,(function(t,i){o.register(e.concat(i),t,n)}))},Zo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},Zo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ei=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Zo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var r=this,s=this,a=s.dispatch,c=s.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return c.call(r,e,t,n)},this.strict=o;var l=this._modules.root.state;Bo(this,l,[],this._modules.root),yo(this,l),n.forEach((function(e){return e(t)}))},ti={state:{configurable:!0}};ei.prototype.install=function(e,t){e.provide(t||mo,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&Vo(e,this)},ti.state.get=function(){return this._state.data},ti.state.set=function(e){0},ei.prototype.commit=function(e,t,n){var o=this,i=Do(e,t,n),r=i.type,s=i.payload,a=(i.options,{type:r,payload:s}),c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,o.state)})))},ei.prototype.dispatch=function(e,t){var n=this,o=Do(e,t),i=o.type,r=o.payload,s={type:i,payload:r},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(l){0}var c=a.length>1?Promise.all(a.map((function(e){return e(r)}))):a[0](r);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(l){0}t(e)}))}))}},ei.prototype.subscribe=function(e,t){return vo(e,this._subscribers,t)},ei.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return vo(n,this._actionSubscribers,t)},ei.prototype.watch=function(e,t,o){var i=this;return(0,n.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},o))},ei.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ei.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Bo(this,this.state,e,this._modules.get(e),n.preserveState),yo(this,this.state)},ei.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=xo(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),Mo(this)},ei.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ei.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},ei.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ei.prototype,ti);var ni=si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=ai(this.$store,"mapState",e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[o].vuex=!0})),n})),oi=(si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.commit;if(e){var r=ai(this.$store,"mapMutations",e);if(!r)return;o=r.context.commit}return"function"===typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n})),si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;i=e+i,n[o]=function(){if(!e||ai(this.$store,"mapGetters",e))return this.$store.getters[i]},n[o].vuex=!0})),n})),si((function(e,t){var n={};return ii(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var r=ai(this.$store,"mapActions",e);if(!r)return;o=r.context.dispatch}return"function"===typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n})));function ii(e){return ri(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ri(e){return Array.isArray(e)||go(e)}function si(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ai(e,t,n){var o=e._modulesNamespaceMap[n];return o}var ci={name:"Question_Programming",props:{isEnterCodeByInit:{type:Boolean,default:!1},urlQuery:{type:String,default:""},isSub:{type:Boolean,default:!1},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"}},mounted(){H(this),this.$watch("oss_temp_url",(e=>{if(e){let e=this.isAnswered();this.$emit("getIsAnswered",e),"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:this.questionInfo.questionIndex-1,answered:e})}}),{immediate:!0})},created(){this.isEnterCodeByInit&&(this.oss_temp_url?this.startCode("2"):this.startCode("1"))},data(){return{iframe:null,showFrame:!1,analyCorrectAnswer:"",iframeUrl:"",code_file_oss_temp_path:"",oss_temp_url:"",scratch_answer_json:"",loading:!1,enterCode:!1,codeTypeMap:{1:"Scratch",2:"Python",3:"PyGame",4:"C++"},codeTypeImgMap:{1:o(3031),2:o(3843),3:o(6543),4:o(2657)},answerMap:{},...JSON.parse(k)}},watch:{questionInfo:{handler(e,t){if(e){this.answerMap=e.answerMap;let t=e.answerMap;t&&(this.code_file_oss_temp_path=t.code_file_oss_temp_path,this.oss_temp_url=t.oss_temp_url)}},immediate:!0}},computed:{...ni("zykjcommonQuestions",["pythonCodeWebPath","scratchCodeWebPath","cplusCodeWebPath"])},methods:{...oi("zykjcommonQuestions",["getEditorUrlActions"]),getAnswer(){return{code_file_oss_temp_path:this.code_file_oss_temp_path,oss_temp_url:this.oss_temp_url,scratch_answer_json:this.scratch_answer_json}},isAnswered(){let e=""!==this.oss_temp_url;return e},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e},getCodeWebPath(e){this.pythonCodeWebPath||this.scratchCodeWebPath||this.cplusCodeWebPath?e&&e():(this.loading=!0,this.getEditorUrlActions().then((()=>{this.loading=!1,e&&e()}),(()=>{this.loading=!1})))},startCode(e){let t=this;this.loading||(this.getCodeWebPath((function(){let n={1:t.questionInfo.template_file_full_url,2:t.oss_temp_url,3:t.oss_temp_url,4:t.questionInfo.reference_file_full_url},o="",i=t.questionInfo.code_type,r=n[e],s=t.urlQuery+`&codeUrl=${r}`;switch(i){case 1:o=`${t.scratchCodeWebPath}/?${s}`;break;case 2:o=`${t.pythonCodeWebPath}/?${s}`;break;case 3:o=`${t.pythonCodeWebPath}/?${s}&pygame=true`;break;case 4:o=`${t.cplusCodeWebPath}/?${s}`;break}t.iframeUrl=o})),this.showFrame=!0)},getQuestionInfo(){let e=this,t={type:"getQuestionInfo",data:e.questionInfo.htmlContent};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(t),"*")},submitCodeQuestionByTimeover(){let e={type:"submitCodeQuestionByTimeover"};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(e),"*")},iframeLoaded(e){this.iframe=e,this.enterCode=!0,this.bus.$emit("enterCode",!0)},closeIframe(){this.enterCode=!1,this.bus.$emit("enterCode",!1),this.showFrame=!1},closeAndSave(e){this.saveCodeOnly(e),this.isEnterCodeByInit||this.closeIframe(),this.$emit("closeAndSave",e)},saveCodeOnly(e){let t=this;this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("submitQuestion",{saveType:1,submitRequestAutoQuit:!1,needSubmitRequest:!1});let n=this.isAnswered();"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:t.questionInfo.questionIndex-1,answered:n}),this.$emit("saveCodeOnly",e)},uploadCodingFileSuccess(e){this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("uploadCodingFileSuccess")}},components:{IframeComponent:oo,MediaLooker:De,Loading:eo}};const li=(0,Ge.Z)(ci,[["render",Un]]);var ui=li;const di={class:"zykjcommon-question",style:{width:"100%",height:"100%"}},fi={class:"box"},hi={class:"main-block"},pi=["src"],Ai=(0,n.createElementVNode)("div",{class:"main-content"},[(0,n.createElementVNode)("div",{class:"main-append"})],-1),mi=(0,n.createElementVNode)("div",{class:"prev"},[(0,n.createElementVNode)("div",{class:"prev-main"})],-1),Ti=(0,n.createElementVNode)("div",{class:"next"},[(0,n.createElementVNode)("div",{class:"next-main"})],-1),gi={class:"list"},bi=["idx"],Si={class:"list-item-text"};function vi(e,t,o,i,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",di,[(0,n.createElementVNode)("div",{class:"question-classify",style:(0,n.normalizeStyle)(r.bigBgCss)},[(0,n.createElementVNode)("div",fi,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.bigBoxItemList,((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"box-item",style:(0,n.normalizeStyle)(e.bgUrlCss),key:t},[(0,n.createElementVNode)("div",hi,[(0,n.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,pi)]),Ai],4)))),128))]),(0,n.createElementVNode)("div",{class:"list-outter",style:(0,n.normalizeStyle)(r.bottomBgCss)},[mi,Ti,(0,n.createElementVNode)("div",gi,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.optionList,((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"list-item",idx:e.idx,style:(0,n.normalizeStyle)(e.bgUrlCss),key:t},[(0,n.createElementVNode)("div",Si,(0,n.toDisplayString)(e.content),1)],12,bi)))),128))])],4)],4)])}let Mi=function(e=1440,t=0,n=1){let o=100,i=document.documentElement.clientWidth||document.body.clientWidth,r=document.documentElement.clientHeight||document.body.clientHeight;r-=t;let s=document.getElementsByTagName("html")[0],a=4/3,c=a/(i/r),l=parseInt(i*c),u=document.querySelector(".zykjcommon-question");u.style.fontSize=l/e*o*n+"px",console.log(s.style.fontSize)},yi=Ee.getDeviceEnv();var Bi={name:"Question_Classify",props:{questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"},screenRepairH:{type:Number,default:0},screenScale:{type:Number,default:0}},created(){},unmounted(){this.unmountedDo()},destroyed(){this.unmountedDo()},mounted(){this.setRootFontSize(),window.addEventListener("resize",this.setRootFontSize),this.init(),this.$watch("optionList",(e=>{e&&e.length&&this.$nextTick((()=>{this.dothings()}))}),{immediate:!0,deep:!0})},data(){return{animationing:!1,analyCorrectAnswer:"",classify_question_info:{},answerMap:{},optionList:[],bigBoxItemList:[],bigBgCss:"",bottomBgCss:"",listItemBgCss:"",env:yi,p1:{},p2:{},listItem:null,moveDiv:null,timer:null,mousedown:"mobile"===yi?"touchstart":"mousedown",mousemove:"mobile"===yi?"touchmove":"mousemove",mouseup:"mobile"===yi?"touchend":"mouseup",dragWay:"",flag:!1,scrollDistance:3e3}},watch:{questionInfo:{handler(e,t){e&&(console.log(e,33),this.parseLists(e),this.answerMap=e.answerMap,e.answerMap&&this.mode)},immediate:!0}},computed:{},methods:{getAnswer(){let e=[];return $(this.$el).find(".box-item").each((function(t,n){let o=$(this),i=[];o.find(".append-item").each(((e,t)=>{i.push(Number($(t).attr("idx")))})),i=i.sort((function(e,t){return e-t})),console.log(i,345),e.push({big_type_index:t+1,small_type_index_list:i})})),{classify_mapping_list:e}},isAnswered(){let e=$(this.$el).find(".list .list-item").length,t=0===e;return t},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e},parseLists(e){this.classify_question_info=e.classify_question_info;let t=e.exam_options_data;if(this.classify_question_info){this.classify_question_info.background_file&&(this.bigBgCss=`background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`),this.classify_question_info.bottom_img_file&&(this.bottomBgCss=`background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`);let e=[];t.forEach((t=>{e.push({content:t.data.option_content,bgUrlCss:`background: url(${t.data.file_url}) no-repeat center;background-size: 100% 100%`,idx:t.index})})),this.optionList=e,this.listItemBgCss=e[0]?e[0].bgUrlCss:"";let n=[],o=this.classify_question_info.big_type_box_image_list,i=this.classify_question_info.big_type_option_list;o.forEach(((e,t)=>{n.push({imgUrl:i[t].file_url,bgUrl:e.file_url,bgUrlCss:`background: url(${e.file_url}) no-repeat center;background-size: 100% 100%`})})),this.bigBoxItemList=n}},setRootFontSize(){Mi(1e3,this.screenRepairH,this.screenScale)},unmountedDo(){window.removeEventListener("resize",this.setRootFontSize),document.removeEventListener("gesturestart",this.gesturestartListener),$(this.$el).find(".question-classify .append-item").off(this.mousedown),$(this.$el).find(".question-classify .list-item").off(this.mousedown),$(document).off(this.mouseup);let e=document.getElementsByTagName("html")[0];e.style.fontSize=""},answeredNotify(){let e=this,t=e.isAnswered();e.$emit("getIsAnswered",t),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:t})},gesturestartListener(e){e.preventDefault()},init(){"mobile"===yi&&document.addEventListener("gesturestart",this.gesturestartListener)},getSpecArr(){let e=this,t=[],n=e.moveDiv.offset().left,o=n+e.moveDiv.width(),i=e.moveDiv.offset().top,r=i+e.moveDiv.height();return $(this.$el).find(".box-item").each(((e,s)=>{let a=$(s),c=a.offset().left,l=c+a.width(),u=a.offset().top,d=u+a.height();n>c&&o<l&&i>u&&r<d&&t.push({dom:a})})),t},bindDragDomEvent(e,t){let n=this;e.on(this.mousedown,(function(e){if(n.moveDiv)return;n.flag=!1,n.dragWay=t,console.log(e),e.stopPropagation(),e.preventDefault(),n.listItem=$(this),n.listItem.addClass("drag"),n.p1.moveX=n.listItem.offset().left,n.p1.moveY=n.listItem.offset().top-30;let o=n.listItem.attr("idx");n.moveDiv=$(`<div class="question-classify-moveDiv" idx="${o}" style="${n.listItemBgCss}"><div class="list-item-text">${n.listItem.find(".list-item-text").text()}</div></div>`),n.moveDiv.css({left:`${n.p1.moveX}px`,top:`${n.p1.moveY}px`}),$(n.$el).append(n.moveDiv),$(document).on(n.mousemove,(function(e){e.stopPropagation(),n.p2.moveX=e.clientX||e.originalEvent.touches&&e.originalEvent.touches[0].clientX,n.p2.moveY=e.clientY||e.originalEvent.touches&&e.originalEvent.touches[0].clientY;let t=n.p2.moveX-n.moveDiv.width()/2,o=n.p2.moveY-n.moveDiv.height()/2;n.moveDiv.css({left:t+"px",top:o+"px"})}))}))},appendMoveDiv(e){let t=this;t.listItem.remove();let n=t.moveDiv.attr("idx"),o=$(`<div class="${e.appendItemClassName}" idx="${n}" style="${t.listItemBgCss}"><div class="list-item-text">${t.moveDiv.find(".list-item-text").text()}</div></div>`);o.css({opacity:0}),e.targetList.append(o),e.targetList[e.scrollDirection](t.scrollDistance);let i=o.offset().left,r=o.offset().top;t.animationing=!0,t.moveDiv.css({transition:"all 0.5s",left:i,top:r}).on("transitionend",(function(){t.flag||(t.moveDiv.remove(),t.moveDiv.off("transitionend"),t.moveDiv=null,o.css({opacity:1}),t.answeredNotify(),t.bindDragDomEvent(o,e.op),t.animationing=!1),t.flag=!0}))},bindNextPrevEvent(e){let t=this;$(this.$el).find(`.question-classify .${e}`).on("click",(function(n){n.stopPropagation(),n.preventDefault();let o=$(t.$el).find(".question-classify .list-item"),i=$(t.$el).find(".question-classify .list"),r=o.outerWidth()*("next"===e?1:-1),s=i.scrollLeft();console.log(s),$(t.$el).find(".question-classify .list").stop(!0).animate({scrollLeft:s+r},500)}))},dothings(){let e=this;this.answerMap&&this.answerMap.classify_mapping_list&&this.answerMap.classify_mapping_list.length&&this.setAnswerDo(),e.bindDragDomEvent($(this.$el).find(".question-classify .list-item"),"go"),$(document).on(e.mouseup,(function(t){if(!e.animationing)if("go"===e.dragWay){if($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv){let t=e.getSpecArr();if(0===t.length)e.moveDiv&&(e.moveDiv.remove(),e.moveDiv=null);else{let n=t[0].dom;e.appendMoveDiv({targetList:n.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"})}}}else if("back"===e.dragWay&&($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv)){let t=e.getSpecArr();if(0===t.length)e.appendMoveDiv({targetList:$(e.$el).find(".question-classify .list"),appendItemClassName:"list-item",op:"go",scrollDirection:"scrollLeft"});else{let n=t[0].dom,o=e.listItem.parents(".question-classify .box-item");n.get(0)===o.get(0)?(console.log("自己"),e.moveDiv.remove(),e.moveDiv=null,e.listItem&&e.listItem.removeClass("drag")):(console.log("不是自己"),e.appendMoveDiv({targetList:n.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"}),console.log("不是自己"))}console.log(t.length)}})),e.bindNextPrevEvent("next"),e.bindNextPrevEvent("prev")},setAnswerDo(){let e=this,t=[];$(this.$el).find(".question-classify .list-item").each(((e,n)=>{t.push(Number($(n).attr("idx")))})),this.answerMap.classify_mapping_list.forEach(((n,o)=>{n.small_type_index_list.forEach((n=>{let i=t.findIndex((e=>e==n));if(i>-1){t.splice(i,1);let n=$(this.$el).find(".question-classify .list-item").eq(i),r=n.attr("idx"),s=$(`<div class="append-item" idx="${r}" style="${e.listItemBgCss}"><div class="list-item-text">${n.find(".list-item-text").text()}</div></div>`);e.bindDragDomEvent(s,"back"),$(this.$el).find(".main-append").eq(o).append(s),n.remove()}}))})),this.answeredNotify()}},components:{}};const Ci=(0,Ge.Z)(Bi,[["render",vi]]);var wi=Ci;let Pi={1:"Question_SingleChoice",2:"Question_MultipleChoice",3:"Question_SingleChoice",7:"Question_BriefAnswer",16:"Question_Programming",11:"Question_Reading",4:"Question_FillBlank",17:"Question_Classify"};var Ei=o(1354),Ii=o(9669),Gi=o.n(Ii),xi=o(7631),Di=o.n(xi);let ki="piw38kulfozrea7ydmjnvbc965q1gt2x",Hi=function(e,t,n,o){void 0!=n&&"undefined"!==typeof n["password"]&&(n["password"]=Di().hex_md5(Di().hex_md5(n["password"]+"FE605C9343A3A47764598FDC184EC66F").toUpperCase()+"FE605C9343A3A47764598FDC184EC66F").toUpperCase());let i=e+"\n/student-web"+t+"\n"+o+"\n"+(n?JSON.stringify(n):""),r=Ei.enc.Base64.stringify((0,Ei.HmacSHA256)(i,ki)),s=function(e){let t=e.replace(/\+/g,"-");t=t.replace(/\//g,"_");let n=t.length%4,o="====";return t+=o.substring(0,n),t};return s(r)};Gi().defaults.baseURL="https://jsl-api.thedeer.cn/student-web/",Gi().defaults.timeout=6e4,Gi().defaults.withCredentials=!0;let Ni=(e,t)=>{if(t&&-1!=t["Content-Type"].indexOf("multipart/form-data")){let t=new FormData;for(let n in e)t.append(n,e[n]);return t}return JSON.stringify(e)},Oi=e=>{e=JSON.parse(e),e.hasOwnProperty("errorCode")&&(e.error_code=e.errorCode);let{error_code:t,message:n}=e;if(t){let e=[39002,39003];if(e.indexOf(t)<=-1){let e=n||"系统异常";Ee.messageTip("warning",e)}}return e};function Li(e,t,n,o,i){let r,s;e=e.toUpperCase(),t+=0===n.indexOf("/")?n.substr(1):n;let a=window.isMock;"undefined"!==typeof i&&"undefined"!==typeof i.isMock&&(a=i.isMock,delete i.isMock),a&&i&&i.onUploadProgress&&delete i.onUploadProgress;let c=n;"/"!==n[0]&&(c="/"+n);let l=(new Date).getTime(),u={ts:l,sign:Hi(e,c,o,l),token:Ee.getToken()};switch(e){case"Get":s=o||{};break;default:case"POST":r=o||{},u["Content-Type"]=i&&i.contentType?i.contentType:"application/json";break}return t instanceof Array?Gi().all([]).then(Gi().spread((function(){}))):Gi()(Object.assign({headers:u,method:e,url:t,data:r,params:s,transformRequest:Ni,transformResponse:Oi},i)).then((e=>e.data)).catch((e=>(console.log("服务端请求/响应错误:",e,e.config),Promise.reject(e))))}const Vi=(e,t,n)=>Li("GET","",e,t,n);let _i={editorUrl:"/open/editor-url"};const Fi={pythonCodeWebPath:"",scratchCodeWebPath:"",cplusCodeWebPath:""};var Ri={namespaced:!0,state:Fi,getters:{},mutations:{setCodeWebPath(e,t){e.pythonCodeWebPath=t.pythonCodeWebPath,e.scratchCodeWebPath=t.scratchCodeWebPath,e.cplusCodeWebPath=t.cplusCodeWebPath}},actions:{getEditorUrlActions({commit:e,dispatch:t}){return new Promise(((t,n)=>{Vi(`${_i.editorUrl}`).then((n=>{let{error_code:o,data:i}=n;if(!o){let{pythonCodeWebPath:t,scratchCodeWebPath:n,cplusCodeWebPath:o}=i;e("setCodeWebPath",{pythonCodeWebPath:t,scratchCodeWebPath:n,cplusCodeWebPath:o})}t(n)}),(e=>{n(e)}))}))}}};function qi(e){return e.registerModule("zykjcommonQuestions",Ri),{install(e){Ee.getVueVersion();e.mixin({methods:{parseQuestionListItem(e,t,n,o=void 0){function i(e,t){e.forEach((e=>{if("img"===e["<>"]&&e.hasOwnProperty("width")){let n=Number(e.width);n>t&&(e.width=Math.floor(t),e.height&&delete e.height)}e.html&&e.html.length&&i(e.html,t)}))}t.forEach(((t,r)=>{if(t.questionComponent=Pi[t.question_type],void 0===o?t.questionIndex=r+1:(t.questionIndex=o+1+"-"+(r+1),t.questionIndex2=r+1),n&&n.hasOwnProperty(t.question_id)){if(t.answerMap=n[t.question_id],"analysis"===e){t.answerMap.user_coding_file&&(t.answerMap.oss_temp_url=t.answerMap.user_coding_file),t.score=t.answerMap.question_max_score;let e=Object.keys(t.answerMap),n=/^user_/gi;e.forEach((e=>{if(n.test(e)){let o=e.replace(n,"");t.answerMap[o]=t.answerMap[e]}}))}}else t.answerMap=null;let s=t.question_type;3==s?t.exam_options_data=[{index:1,data:{name:"正确"}},{index:2,data:{name:"错误"}}]:t.exam_options_data&&t.exam_options_data.length&&t.exam_options_data.forEach(((e,t)=>{e.enIndex=Ee.indexToEnIndex(t+1)}));try{let e=JSON.parse(t.content),n=jQuery(".question-list").width()-30;i(e,n),t.htmlContent=$.json2html({},e)}catch(a){t.htmlContent=t.content}try{t.analysis?t.analysisHtmlContent=$.json2html({},JSON.parse(t.analysis)):t.analysisHtmlContent=""}catch(a){t.analysisHtmlContent=t.analysis}t.sub_questions&&t.sub_questions.length&&this.parseQuestionListItem(e,t.sub_questions,n,r)}))}}}),e.component("Question_SingleChoice",Ne),e.component("Question_MultipleChoice",Tt),e.component("Question_Reading",xt),e.component("Question_BriefAnswer",cn),e.component("Question_FillBlank",bn),e.component("Question_Programming",ui),e.component("Question_Classify",wi)},Question_SingleChoice:Ne,Question_MultipleChoice:Tt,Question_Reading:xt,Question_BriefAnswer:cn,Question_FillBlank:bn,Question_Programming:ui,Question_Classify:wi}}var ji=qi}(),i}()}));
|
package/package.json
CHANGED
|
@@ -170,34 +170,36 @@ export default {
|
|
|
170
170
|
parseLists(nv){
|
|
171
171
|
this.classify_question_info = nv.classify_question_info
|
|
172
172
|
let exam_options_data = nv.exam_options_data
|
|
173
|
-
if(this.classify_question_info
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
if(this.classify_question_info){
|
|
174
|
+
if(this.classify_question_info.background_file){
|
|
175
|
+
this.bigBgCss = `background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`
|
|
176
|
+
}
|
|
177
|
+
if(this.classify_question_info.bottom_img_file){
|
|
178
|
+
this.bottomBgCss = `background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`
|
|
179
|
+
}
|
|
180
|
+
let optionList = []
|
|
181
|
+
exam_options_data.forEach((item)=>{
|
|
182
|
+
optionList.push({
|
|
183
|
+
content:item.data.option_content,
|
|
184
|
+
bgUrlCss:`background: url(${item.data.file_url}) no-repeat center;background-size: 100% 100%`,
|
|
185
|
+
idx:item.index
|
|
186
|
+
})
|
|
185
187
|
})
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
this.listItemBgCss = !optionList[0]?'':optionList[0].bgUrlCss
|
|
188
|
+
this.optionList = optionList
|
|
189
|
+
this.listItemBgCss = !optionList[0]?'':optionList[0].bgUrlCss
|
|
189
190
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
let bigBoxItemList = []
|
|
192
|
+
let big_type_box_image_list = this.classify_question_info.big_type_box_image_list
|
|
193
|
+
let big_type_option_list = this.classify_question_info.big_type_option_list
|
|
194
|
+
big_type_box_image_list.forEach((item,index)=>{
|
|
195
|
+
bigBoxItemList.push({
|
|
196
|
+
imgUrl:big_type_option_list[index].file_url,
|
|
197
|
+
bgUrl:item.file_url,
|
|
198
|
+
bgUrlCss:`background: url(${item.file_url}) no-repeat center;background-size: 100% 100%`
|
|
199
|
+
})
|
|
198
200
|
})
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
this.bigBoxItemList = bigBoxItemList
|
|
202
|
+
}
|
|
201
203
|
},
|
|
202
204
|
setRootFontSize() {
|
|
203
205
|
// setRemFixedHeight(1000,140,1.08)
|
|
@@ -206,7 +208,6 @@ export default {
|
|
|
206
208
|
unmountedDo(){
|
|
207
209
|
window.removeEventListener('resize',this.setRootFontSize)
|
|
208
210
|
document.removeEventListener('gesturestart', this.gesturestartListener)
|
|
209
|
-
this.$el
|
|
210
211
|
$(this.$el).find('.question-classify .append-item').off(this.mousedown)
|
|
211
212
|
$(this.$el).find('.question-classify .list-item').off(this.mousedown)
|
|
212
213
|
$(document).off(this.mouseup)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Created by Allen Liu on 2023/7/14.
|
|
3
3
|
*/
|
|
4
4
|
//此文件作为打包入口,打包后的dist文件给vue3用
|
|
5
|
+
import '../../assets/scss/questions/zykjcommon-questions.scss';
|
|
5
6
|
import Question_SingleChoice from './Question_SingleChoice.vue'
|
|
6
7
|
import Question_MultipleChoice from './Question_MultipleChoice.vue'
|
|
7
8
|
import Question_Reading from './Question_Reading.vue'
|
package/src/main.ts
CHANGED
|
@@ -179,8 +179,8 @@ import ZYKJQuestionsPlugin from "@src/components/questions/developmentEntry.js"
|
|
|
179
179
|
// import ZYKJQuestionsPlugin from "../dist/zykjcommon-questions.umd.min"
|
|
180
180
|
// import ZYKJQuestionsPlugin from "@zykjcommon/questions"
|
|
181
181
|
vueInstance.use((ZYKJQuestionsPlugin as any)(store))
|
|
182
|
+
//import '@zykjcommon/questions/dist/zykjcommon-questions.css';
|
|
182
183
|
// import '@zykjcommon/questions/src/assets/scss/questions/zykjcommon-questions.scss';
|
|
183
|
-
import '@src/assets/scss/questions/zykjcommon-questions.scss';
|
|
184
184
|
// import '@src/assets/scss/questions/zykjcommon-questions.scss';
|
|
185
185
|
|
|
186
186
|
|
|
@@ -117,6 +117,40 @@ export default defineComponent({
|
|
|
117
117
|
"have_not_auto_check_question": false,
|
|
118
118
|
"size": 23,
|
|
119
119
|
"question_list": [
|
|
120
|
+
{
|
|
121
|
+
"question_type_str": "编程题",
|
|
122
|
+
"data_mode": 1,
|
|
123
|
+
"correct_judge": "",
|
|
124
|
+
"is_auto_check": "",
|
|
125
|
+
"content": "[{\"<>\":\"p\",\"text\":\"1、准备工作\"},{\"<>\":\"p\",\"text\":\" (1) 选择背景 Desert,Galaxy;\"},{\"<>\":\"p\",\"text\":\" (2) 选择角色 Rocketship。\"},{\"<>\":\"p\",\"text\":\" 2、功能实现\"},{\"<>\":\"p\",\"text\":\" (1)火箭初始造型为 rocketship-a,初始位置为舞台下端,初始背景为 Dessert;\"},{\"<>\":\"p\",\"text\":\" (2)点击绿旗,火箭垂直向上移动,一直移动到舞台顶端,并在移动过 程中切换造型;\"},{\"<>\":\"p\",\"text\":\" (3)当火箭达到舞台顶端时,背景切换为 Galaxy;\"},{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"style\":\"\",\"text\":\" (4)火箭最后移到舞台下端的位置(初始位置),造型不限。\"}]},{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"style\":\"\",\"html\":[{\"<>\":\"img\",\"src\":\"https://dev-resource.thedeer.cn/pre/resource-testing/image/3ae47ad6586554f0cd57b4858b800034qve9a1g4zs6twrc5.jpg\",\"width\":\"89\",\"height\":\"89\",\"base_src\":\"resource-testing/image/3ae47ad6586554f0cd57b4858b800034qve9a1g4zs6twrc5.jpg\"}]}]}]",
|
|
126
|
+
"correct_subjective_answer": "",
|
|
127
|
+
"auto_check": false,
|
|
128
|
+
"options_data": [],
|
|
129
|
+
"score": "30.00",
|
|
130
|
+
"sub_questions": [],
|
|
131
|
+
"style_type": "CODING",
|
|
132
|
+
"template_file_full_url": "https://dev-resource.thedeer.cn/pre/resource-testing/coding/d489ef8637c0198c9905b9628536ef875jsskgofnaulimvh.sb3",
|
|
133
|
+
"question_name": "1、准备工作 (1) 选择背景 Desert,Galaxy; (2) 选择角色 Rocketship。 2、功能实现 (1)火箭初始造型为 rocketship-a,初始位置为舞台下端,初始背景为 Dessert; (2)点击绿旗,火箭垂直向上移动,一直移动到舞台顶端,并在移动过 程中切换造型; (3)当火箭达到舞台顶端时,背景切换为 Galaxy; (4)火箭最后移到舞台下端的位置(初始位置),造型不限。",
|
|
134
|
+
"correct_rate": "",
|
|
135
|
+
"knowledge_name": "",
|
|
136
|
+
"page_location_list": [],
|
|
137
|
+
"code_type": 1,
|
|
138
|
+
"difficulty_level": "2",
|
|
139
|
+
"question_index": "",
|
|
140
|
+
"correct_single_index": 0,
|
|
141
|
+
"question_type": "16",
|
|
142
|
+
"media_resources": [],
|
|
143
|
+
"analysis": "",
|
|
144
|
+
"question_id": "12918",
|
|
145
|
+
"difficulty_level_str": "困难",
|
|
146
|
+
"update_date": "2023-05-13 10:09:59",
|
|
147
|
+
"exam_options_data": [],
|
|
148
|
+
"exam_link_answer_data": [],
|
|
149
|
+
"reference_file_full_url": "",
|
|
150
|
+
"correct_multiple_index_set": [],
|
|
151
|
+
"hint": "飞向太空",
|
|
152
|
+
"knowledge_id": ""
|
|
153
|
+
},
|
|
120
154
|
{
|
|
121
155
|
"question_type_str": "分类题",
|
|
122
156
|
"is_need_judge": "",
|