@zykjcommon/questions 0.0.30 → 0.0.31
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.
|
@@ -23814,73 +23814,75 @@ var index = {
|
|
|
23814
23814
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_411b6dae_render]])
|
|
23815
23815
|
|
|
23816
23816
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
23817
|
-
;// 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=
|
|
23817
|
+
;// 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=1a39958b
|
|
23818
23818
|
|
|
23819
|
-
var
|
|
23819
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_1 = {
|
|
23820
23820
|
class: "zykjcommon-question",
|
|
23821
23821
|
style: {
|
|
23822
23822
|
"width": "100%",
|
|
23823
23823
|
"height": "100%"
|
|
23824
23824
|
}
|
|
23825
23825
|
};
|
|
23826
|
-
var
|
|
23826
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_2 = {
|
|
23827
23827
|
class: "box"
|
|
23828
23828
|
};
|
|
23829
|
-
var
|
|
23829
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_3 = {
|
|
23830
23830
|
class: "main-block"
|
|
23831
23831
|
};
|
|
23832
|
-
var
|
|
23833
|
-
var
|
|
23832
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_4 = ["src"];
|
|
23833
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23834
23834
|
class: "main-content"
|
|
23835
23835
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23836
23836
|
class: "main-append"
|
|
23837
23837
|
})], -1);
|
|
23838
|
-
var
|
|
23838
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23839
23839
|
class: "prev"
|
|
23840
23840
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23841
23841
|
class: "prev-main"
|
|
23842
23842
|
})], -1);
|
|
23843
|
-
var
|
|
23843
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23844
23844
|
class: "next"
|
|
23845
23845
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23846
23846
|
class: "next-main"
|
|
23847
23847
|
})], -1);
|
|
23848
|
-
var
|
|
23848
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_8 = {
|
|
23849
23849
|
class: "list"
|
|
23850
23850
|
};
|
|
23851
|
-
var
|
|
23852
|
-
var
|
|
23851
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_9 = ["idx"];
|
|
23852
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_10 = {
|
|
23853
23853
|
class: "list-item-text"
|
|
23854
23854
|
};
|
|
23855
|
-
function
|
|
23856
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
23855
|
+
function Question_Classifyvue_type_template_id_1a39958b_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23856
|
+
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_1a39958b_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23857
23857
|
class: "question-classify",
|
|
23858
23858
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
23859
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23859
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_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, function (item, index) {
|
|
23860
23860
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23861
23861
|
class: "box-item",
|
|
23862
23862
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23863
23863
|
key: index
|
|
23864
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23864
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
23865
23865
|
src: item.imgUrl,
|
|
23866
23866
|
alt: ""
|
|
23867
|
-
}, null, 8,
|
|
23867
|
+
}, null, 8, Question_Classifyvue_type_template_id_1a39958b_hoisted_4)]), Question_Classifyvue_type_template_id_1a39958b_hoisted_5], 4);
|
|
23868
23868
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23869
23869
|
class: "list-outter",
|
|
23870
23870
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
23871
|
-
}, [
|
|
23871
|
+
}, [Question_Classifyvue_type_template_id_1a39958b_hoisted_6, Question_Classifyvue_type_template_id_1a39958b_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_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, function (item, index) {
|
|
23872
23872
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23873
23873
|
class: "list-item",
|
|
23874
23874
|
idx: item.idx,
|
|
23875
23875
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23876
23876
|
key: index
|
|
23877
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23877
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 1)], 12, Question_Classifyvue_type_template_id_1a39958b_hoisted_9);
|
|
23878
23878
|
}), 128))])], 4)], 4)]);
|
|
23879
23879
|
}
|
|
23880
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
23880
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=1a39958b
|
|
23881
23881
|
|
|
23882
23882
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
23883
23883
|
var es_array_sort = __webpack_require__(2707);
|
|
23884
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
23885
|
+
var es_promise = __webpack_require__(8674);
|
|
23884
23886
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
23885
23887
|
var es_array_find_index = __webpack_require__(4553);
|
|
23886
23888
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
@@ -23946,6 +23948,7 @@ var setRemFixedHeight = function setRemFixedHeight() {
|
|
|
23946
23948
|
|
|
23947
23949
|
|
|
23948
23950
|
|
|
23951
|
+
|
|
23949
23952
|
var env = js_fun.getDeviceEnv();
|
|
23950
23953
|
/* harmony default export */ var Question_Classifyvue_type_script_lang_js = ({
|
|
23951
23954
|
name: 'Question_Classify',
|
|
@@ -23983,8 +23986,10 @@ var env = js_fun.getDeviceEnv();
|
|
|
23983
23986
|
},
|
|
23984
23987
|
mounted: function mounted() {
|
|
23985
23988
|
var _this = this;
|
|
23986
|
-
this.
|
|
23987
|
-
|
|
23989
|
+
this.intervalFindEl().then(function () {
|
|
23990
|
+
_this.setRootFontSize();
|
|
23991
|
+
window.addEventListener('resize', _this.setRootFontSize);
|
|
23992
|
+
});
|
|
23988
23993
|
this.init();
|
|
23989
23994
|
this.$watch('optionList', function (nv) {
|
|
23990
23995
|
if (nv && nv.length) {
|
|
@@ -24080,6 +24085,21 @@ var env = js_fun.getDeviceEnv();
|
|
|
24080
24085
|
var correct = this.questionInfo.answerMap.is_correct === '1' ? true : false;
|
|
24081
24086
|
return correct;
|
|
24082
24087
|
},
|
|
24088
|
+
intervalFindEl: function intervalFindEl() {
|
|
24089
|
+
var _this2 = this;
|
|
24090
|
+
return new Promise(function (resolve, reject) {
|
|
24091
|
+
if (_this2.$el) {
|
|
24092
|
+
resolve();
|
|
24093
|
+
} else {
|
|
24094
|
+
var interval = setInterval(function () {
|
|
24095
|
+
if (_this2.$el) {
|
|
24096
|
+
clearInterval(interval);
|
|
24097
|
+
resolve();
|
|
24098
|
+
}
|
|
24099
|
+
}, 50);
|
|
24100
|
+
}
|
|
24101
|
+
});
|
|
24102
|
+
},
|
|
24083
24103
|
parseLists: function parseLists(nv) {
|
|
24084
24104
|
this.classify_question_info = nv.classify_question_info;
|
|
24085
24105
|
var exam_options_data = nv.exam_options_data;
|
|
@@ -24323,7 +24343,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24323
24343
|
},
|
|
24324
24344
|
//回显答案
|
|
24325
24345
|
setAnswerDo: function setAnswerDo() {
|
|
24326
|
-
var
|
|
24346
|
+
var _this3 = this;
|
|
24327
24347
|
var self = this;
|
|
24328
24348
|
var listItemIds = [];
|
|
24329
24349
|
$(this.$el).find('.question-classify .list-item').each(function (index, item) {
|
|
@@ -24337,11 +24357,11 @@ var env = js_fun.getDeviceEnv();
|
|
|
24337
24357
|
if (idx > -1) {
|
|
24338
24358
|
//找到一个删掉一个,要不会有问题
|
|
24339
24359
|
listItemIds.splice(idx, 1);
|
|
24340
|
-
var listItemDom = $(
|
|
24360
|
+
var listItemDom = $(_this3.$el).find('.question-classify .list-item').eq(idx);
|
|
24341
24361
|
var attrIdx = listItemDom.attr('idx');
|
|
24342
24362
|
var appendItem = $("<div class=\"append-item\" idx=\"".concat(attrIdx, "\" style=\"").concat(self.listItemBgCss, "\"><div class=\"list-item-text\">").concat(listItemDom.find('.list-item-text').text(), "</div></div>"));
|
|
24343
24363
|
self.bindDragDomEvent(appendItem, 'back');
|
|
24344
|
-
$(
|
|
24364
|
+
$(_this3.$el).find('.main-append').eq(index).append(appendItem);
|
|
24345
24365
|
listItemDom.remove();
|
|
24346
24366
|
}
|
|
24347
24367
|
});
|
|
@@ -24359,7 +24379,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24359
24379
|
|
|
24360
24380
|
|
|
24361
24381
|
;
|
|
24362
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
24382
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_1a39958b_render]])
|
|
24363
24383
|
|
|
24364
24384
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
24365
24385
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|
|
@@ -24384,8 +24404,6 @@ var questionMapper = {
|
|
|
24384
24404
|
//填空
|
|
24385
24405
|
'17': 'Question_Classify' //分类
|
|
24386
24406
|
};
|
|
24387
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
24388
|
-
var es_promise = __webpack_require__(8674);
|
|
24389
24407
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
24390
24408
|
var crypto_js = __webpack_require__(1354);
|
|
24391
24409
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
@@ -23824,73 +23824,75 @@ var index = {
|
|
|
23824
23824
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_411b6dae_render]])
|
|
23825
23825
|
|
|
23826
23826
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
23827
|
-
;// 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=
|
|
23827
|
+
;// 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=1a39958b
|
|
23828
23828
|
|
|
23829
|
-
var
|
|
23829
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_1 = {
|
|
23830
23830
|
class: "zykjcommon-question",
|
|
23831
23831
|
style: {
|
|
23832
23832
|
"width": "100%",
|
|
23833
23833
|
"height": "100%"
|
|
23834
23834
|
}
|
|
23835
23835
|
};
|
|
23836
|
-
var
|
|
23836
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_2 = {
|
|
23837
23837
|
class: "box"
|
|
23838
23838
|
};
|
|
23839
|
-
var
|
|
23839
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_3 = {
|
|
23840
23840
|
class: "main-block"
|
|
23841
23841
|
};
|
|
23842
|
-
var
|
|
23843
|
-
var
|
|
23842
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_4 = ["src"];
|
|
23843
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23844
23844
|
class: "main-content"
|
|
23845
23845
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23846
23846
|
class: "main-append"
|
|
23847
23847
|
})], -1);
|
|
23848
|
-
var
|
|
23848
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23849
23849
|
class: "prev"
|
|
23850
23850
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23851
23851
|
class: "prev-main"
|
|
23852
23852
|
})], -1);
|
|
23853
|
-
var
|
|
23853
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23854
23854
|
class: "next"
|
|
23855
23855
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23856
23856
|
class: "next-main"
|
|
23857
23857
|
})], -1);
|
|
23858
|
-
var
|
|
23858
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_8 = {
|
|
23859
23859
|
class: "list"
|
|
23860
23860
|
};
|
|
23861
|
-
var
|
|
23862
|
-
var
|
|
23861
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_9 = ["idx"];
|
|
23862
|
+
var Question_Classifyvue_type_template_id_1a39958b_hoisted_10 = {
|
|
23863
23863
|
class: "list-item-text"
|
|
23864
23864
|
};
|
|
23865
|
-
function
|
|
23866
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
23865
|
+
function Question_Classifyvue_type_template_id_1a39958b_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23866
|
+
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_1a39958b_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23867
23867
|
class: "question-classify",
|
|
23868
23868
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
23869
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23869
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_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, function (item, index) {
|
|
23870
23870
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23871
23871
|
class: "box-item",
|
|
23872
23872
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23873
23873
|
key: index
|
|
23874
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23874
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
23875
23875
|
src: item.imgUrl,
|
|
23876
23876
|
alt: ""
|
|
23877
|
-
}, null, 8,
|
|
23877
|
+
}, null, 8, Question_Classifyvue_type_template_id_1a39958b_hoisted_4)]), Question_Classifyvue_type_template_id_1a39958b_hoisted_5], 4);
|
|
23878
23878
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23879
23879
|
class: "list-outter",
|
|
23880
23880
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
23881
|
-
}, [
|
|
23881
|
+
}, [Question_Classifyvue_type_template_id_1a39958b_hoisted_6, Question_Classifyvue_type_template_id_1a39958b_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_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, function (item, index) {
|
|
23882
23882
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23883
23883
|
class: "list-item",
|
|
23884
23884
|
idx: item.idx,
|
|
23885
23885
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23886
23886
|
key: index
|
|
23887
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23887
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_1a39958b_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 1)], 12, Question_Classifyvue_type_template_id_1a39958b_hoisted_9);
|
|
23888
23888
|
}), 128))])], 4)], 4)]);
|
|
23889
23889
|
}
|
|
23890
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
23890
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=1a39958b
|
|
23891
23891
|
|
|
23892
23892
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
23893
23893
|
var es_array_sort = __webpack_require__(2707);
|
|
23894
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
23895
|
+
var es_promise = __webpack_require__(8674);
|
|
23894
23896
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
23895
23897
|
var es_array_find_index = __webpack_require__(4553);
|
|
23896
23898
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
@@ -23956,6 +23958,7 @@ var setRemFixedHeight = function setRemFixedHeight() {
|
|
|
23956
23958
|
|
|
23957
23959
|
|
|
23958
23960
|
|
|
23961
|
+
|
|
23959
23962
|
var env = js_fun.getDeviceEnv();
|
|
23960
23963
|
/* harmony default export */ var Question_Classifyvue_type_script_lang_js = ({
|
|
23961
23964
|
name: 'Question_Classify',
|
|
@@ -23993,8 +23996,10 @@ var env = js_fun.getDeviceEnv();
|
|
|
23993
23996
|
},
|
|
23994
23997
|
mounted: function mounted() {
|
|
23995
23998
|
var _this = this;
|
|
23996
|
-
this.
|
|
23997
|
-
|
|
23999
|
+
this.intervalFindEl().then(function () {
|
|
24000
|
+
_this.setRootFontSize();
|
|
24001
|
+
window.addEventListener('resize', _this.setRootFontSize);
|
|
24002
|
+
});
|
|
23998
24003
|
this.init();
|
|
23999
24004
|
this.$watch('optionList', function (nv) {
|
|
24000
24005
|
if (nv && nv.length) {
|
|
@@ -24090,6 +24095,21 @@ var env = js_fun.getDeviceEnv();
|
|
|
24090
24095
|
var correct = this.questionInfo.answerMap.is_correct === '1' ? true : false;
|
|
24091
24096
|
return correct;
|
|
24092
24097
|
},
|
|
24098
|
+
intervalFindEl: function intervalFindEl() {
|
|
24099
|
+
var _this2 = this;
|
|
24100
|
+
return new Promise(function (resolve, reject) {
|
|
24101
|
+
if (_this2.$el) {
|
|
24102
|
+
resolve();
|
|
24103
|
+
} else {
|
|
24104
|
+
var interval = setInterval(function () {
|
|
24105
|
+
if (_this2.$el) {
|
|
24106
|
+
clearInterval(interval);
|
|
24107
|
+
resolve();
|
|
24108
|
+
}
|
|
24109
|
+
}, 50);
|
|
24110
|
+
}
|
|
24111
|
+
});
|
|
24112
|
+
},
|
|
24093
24113
|
parseLists: function parseLists(nv) {
|
|
24094
24114
|
this.classify_question_info = nv.classify_question_info;
|
|
24095
24115
|
var exam_options_data = nv.exam_options_data;
|
|
@@ -24333,7 +24353,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24333
24353
|
},
|
|
24334
24354
|
//回显答案
|
|
24335
24355
|
setAnswerDo: function setAnswerDo() {
|
|
24336
|
-
var
|
|
24356
|
+
var _this3 = this;
|
|
24337
24357
|
var self = this;
|
|
24338
24358
|
var listItemIds = [];
|
|
24339
24359
|
$(this.$el).find('.question-classify .list-item').each(function (index, item) {
|
|
@@ -24347,11 +24367,11 @@ var env = js_fun.getDeviceEnv();
|
|
|
24347
24367
|
if (idx > -1) {
|
|
24348
24368
|
//找到一个删掉一个,要不会有问题
|
|
24349
24369
|
listItemIds.splice(idx, 1);
|
|
24350
|
-
var listItemDom = $(
|
|
24370
|
+
var listItemDom = $(_this3.$el).find('.question-classify .list-item').eq(idx);
|
|
24351
24371
|
var attrIdx = listItemDom.attr('idx');
|
|
24352
24372
|
var appendItem = $("<div class=\"append-item\" idx=\"".concat(attrIdx, "\" style=\"").concat(self.listItemBgCss, "\"><div class=\"list-item-text\">").concat(listItemDom.find('.list-item-text').text(), "</div></div>"));
|
|
24353
24373
|
self.bindDragDomEvent(appendItem, 'back');
|
|
24354
|
-
$(
|
|
24374
|
+
$(_this3.$el).find('.main-append').eq(index).append(appendItem);
|
|
24355
24375
|
listItemDom.remove();
|
|
24356
24376
|
}
|
|
24357
24377
|
});
|
|
@@ -24369,7 +24389,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24369
24389
|
|
|
24370
24390
|
|
|
24371
24391
|
;
|
|
24372
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
24392
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_1a39958b_render]])
|
|
24373
24393
|
|
|
24374
24394
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
24375
24395
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|
|
@@ -24394,8 +24414,6 @@ var questionMapper = {
|
|
|
24394
24414
|
//填空
|
|
24395
24415
|
'17': 'Question_Classify' //分类
|
|
24396
24416
|
};
|
|
24397
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
24398
|
-
var es_promise = __webpack_require__(8674);
|
|
24399
24417
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
24400
24418
|
var crypto_js = __webpack_require__(1354);
|
|
24401
24419
|
// EXTERNAL MODULE: ./node_modules/axios/index.js
|