@zykjcommon/questions 0.0.50 → 0.0.52
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 +101 -45
- package/dist/zykjcommon-questions.css +1 -1
- package/dist/zykjcommon-questions.umd.js +101 -45
- package/dist/zykjcommon-questions.umd.min.js +4 -4
- package/package.json +1 -1
- package/readme +2 -0
- package/src/assets/img/lookBigImgBtn.png +0 -0
- package/src/assets/scss/questions/zykjcommon-questions.scss +14 -0
- package/src/components/common/MediaLooker.vue +3 -7
- package/src/components/questions/Question_Classify.vue +50 -3
|
@@ -19317,40 +19317,42 @@ function doMediaLookerSome(_this) {
|
|
|
19317
19317
|
}
|
|
19318
19318
|
;// CONCATENATED MODULE: ./src/assets/img/big-close.png
|
|
19319
19319
|
var big_close_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACcBAMAAAB4lt9+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAVUExURQAAAP////////////7+/v7+/v///3vp7x0AAAAGdFJOUwAPHoDe4XWzkRMAAAF7SURBVGje7ZmxkcJADEUX0wAlEPhyIhdA4AIuuAYA9V8CAdxhG6/GWr25Ifg/XX/xPDa70ncpkiRJkiRJkiT9ow7+8i5WbX/21/tTqNxwPXrL3XgJwZm5eL1ZBG8w8/C60ewSgnPxerMI3mDm4XWjWQBvb+bi9Y/1UwSujveA24y3e15ew3vC2fWwrd7f9UcPzs4bb9Y3+D8WdYThfEsczvM0wHmmFri6qwmubmuDq/ka4WrGVrh1ZzPcurUdbs2bgFszZ+De3Sm4d3sObulPwi0LZOHmFdJw8xJ5uGkNAG6KR8C98G4/ANwED4F74SFwS7ws3AIvCzfHy8PN8PJwUzwCrpSv33Lf5fPKwTfLPgr4RWFfY/hPxm4B8AbFbp/w5s4ePfDByB7bcFPBtjxwQ8a2i3Azy7ba8CDAjinwEMWOePAAyo7H8PDORgtw8MHGMnBoxEZadODGxoF0WAlHqXTQC8fQdEgOR/j0Bwb484ckSZIkSZIkSTndAZo6yxBSf1SNAAAAAElFTkSuQmCC";
|
|
19320
|
-
;// 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/common/MediaLooker.vue?vue&type=template&id=
|
|
19320
|
+
;// 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/common/MediaLooker.vue?vue&type=template&id=01ed40a7
|
|
19321
19321
|
|
|
19322
19322
|
|
|
19323
|
-
var
|
|
19323
|
+
var MediaLookervue_type_template_id_01ed40a7_hoisted_1 = {
|
|
19324
19324
|
key: 0,
|
|
19325
19325
|
class: "dialog imgLookerDialog"
|
|
19326
19326
|
};
|
|
19327
|
-
var
|
|
19327
|
+
var MediaLookervue_type_template_id_01ed40a7_hoisted_2 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
19328
19328
|
class: "mask"
|
|
19329
19329
|
}, null, -1);
|
|
19330
|
-
var
|
|
19330
|
+
var MediaLookervue_type_template_id_01ed40a7_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
19331
19331
|
src: big_close_namespaceObject,
|
|
19332
19332
|
alt: ""
|
|
19333
19333
|
}, null, -1);
|
|
19334
|
-
var
|
|
19335
|
-
var
|
|
19336
|
-
function
|
|
19337
|
-
return $props.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
19334
|
+
var MediaLookervue_type_template_id_01ed40a7_hoisted_4 = [MediaLookervue_type_template_id_01ed40a7_hoisted_3];
|
|
19335
|
+
var MediaLookervue_type_template_id_01ed40a7_hoisted_5 = ["src"];
|
|
19336
|
+
function MediaLookervue_type_template_id_01ed40a7_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19337
|
+
return $props.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MediaLookervue_type_template_id_01ed40a7_hoisted_1, [MediaLookervue_type_template_id_01ed40a7_hoisted_2, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
19338
19338
|
class: "close",
|
|
19339
19339
|
onClick: _cache[0] || (_cache[0] = function () {
|
|
19340
19340
|
return $options.cancel && $options.cancel.apply($options, arguments);
|
|
19341
19341
|
})
|
|
19342
|
-
},
|
|
19342
|
+
}, MediaLookervue_type_template_id_01ed40a7_hoisted_4), $props.mediaLookerList.length > 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
19343
|
+
key: 0,
|
|
19343
19344
|
class: "prev",
|
|
19344
19345
|
onClick: _cache[1] || (_cache[1] = function () {
|
|
19345
19346
|
return $options.prev && $options.prev.apply($options, arguments);
|
|
19346
19347
|
})
|
|
19347
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
19348
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mediaLookerList.length > 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
19349
|
+
key: 1,
|
|
19348
19350
|
class: "next",
|
|
19349
19351
|
onClick: _cache[2] || (_cache[2] = function () {
|
|
19350
19352
|
return $options.next && $options.next.apply($options, arguments);
|
|
19351
19353
|
})
|
|
19352
|
-
}), $data.curMediaObj.mediaType == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
19353
|
-
key:
|
|
19354
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $data.curMediaObj.mediaType == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
19355
|
+
key: 2,
|
|
19354
19356
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["imgLooker", {
|
|
19355
19357
|
in: $data.enlargeStatus === 'in',
|
|
19356
19358
|
out: $data.enlargeStatus === 'out'
|
|
@@ -19365,9 +19367,9 @@ function MediaLookervue_type_template_id_ec152b5e_render(_ctx, _cache, $props, $
|
|
|
19365
19367
|
'height': $data.curMediaObj.height + 'px'
|
|
19366
19368
|
}),
|
|
19367
19369
|
alt: ""
|
|
19368
|
-
}, null, 12,
|
|
19370
|
+
}, null, 12, MediaLookervue_type_template_id_01ed40a7_hoisted_5)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
|
|
19369
19371
|
}
|
|
19370
|
-
;// CONCATENATED MODULE: ./src/components/common/MediaLooker.vue?vue&type=template&id=
|
|
19372
|
+
;// CONCATENATED MODULE: ./src/components/common/MediaLooker.vue?vue&type=template&id=01ed40a7
|
|
19371
19373
|
|
|
19372
19374
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
19373
19375
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -20422,14 +20424,9 @@ function getDeviceEnv() {
|
|
|
20422
20424
|
mediaLookerList: {
|
|
20423
20425
|
handler: function handler(nv, ov) {
|
|
20424
20426
|
if (nv && nv.length) {
|
|
20425
|
-
|
|
20426
|
-
// console.log(nv,3333);
|
|
20427
|
-
this.getCurMedia(this.mediaCount);
|
|
20428
|
-
// console.log(props.mediaCount,11113);
|
|
20429
|
-
}
|
|
20427
|
+
this.getCurMedia(this.mediaCount);
|
|
20430
20428
|
}
|
|
20431
20429
|
},
|
|
20432
|
-
|
|
20433
20430
|
immediate: true,
|
|
20434
20431
|
deep: true
|
|
20435
20432
|
}
|
|
@@ -20535,7 +20532,7 @@ var exportHelper = __webpack_require__(3744);
|
|
|
20535
20532
|
|
|
20536
20533
|
|
|
20537
20534
|
;
|
|
20538
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(MediaLookervue_type_script_lang_js, [['render',
|
|
20535
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(MediaLookervue_type_script_lang_js, [['render',MediaLookervue_type_template_id_01ed40a7_render]])
|
|
20539
20536
|
|
|
20540
20537
|
/* harmony default export */ var MediaLooker = (__exports__);
|
|
20541
20538
|
;// 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/index.js??ruleSet[0].use[0]!./src/components/questions/Question_SingleChoice.vue?vue&type=script&lang=js
|
|
@@ -23970,58 +23967,63 @@ var index = {
|
|
|
23970
23967
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_61b5ec79_render]])
|
|
23971
23968
|
|
|
23972
23969
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
23973
|
-
;// 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=
|
|
23970
|
+
;// 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=894b084c
|
|
23974
23971
|
|
|
23975
|
-
var
|
|
23972
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_1 = {
|
|
23976
23973
|
class: "zykjcommon-question",
|
|
23977
23974
|
style: {
|
|
23978
23975
|
"width": "100%",
|
|
23979
23976
|
"height": "100%"
|
|
23980
23977
|
}
|
|
23981
23978
|
};
|
|
23982
|
-
var
|
|
23979
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_2 = {
|
|
23983
23980
|
class: "box"
|
|
23984
23981
|
};
|
|
23985
|
-
var
|
|
23982
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_3 = {
|
|
23986
23983
|
class: "main-block"
|
|
23987
23984
|
};
|
|
23988
|
-
var
|
|
23989
|
-
var
|
|
23985
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_4 = ["src"];
|
|
23986
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23990
23987
|
class: "main-content"
|
|
23991
23988
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23992
23989
|
class: "main-append"
|
|
23993
23990
|
})], -1);
|
|
23994
|
-
var
|
|
23991
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23995
23992
|
class: "prev"
|
|
23996
23993
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23997
23994
|
class: "prev-main"
|
|
23998
23995
|
})], -1);
|
|
23999
|
-
var
|
|
23996
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
24000
23997
|
class: "next"
|
|
24001
23998
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
24002
23999
|
class: "next-main"
|
|
24003
24000
|
})], -1);
|
|
24004
|
-
var
|
|
24001
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_8 = {
|
|
24005
24002
|
class: "list"
|
|
24006
24003
|
};
|
|
24007
|
-
var
|
|
24008
|
-
|
|
24009
|
-
|
|
24004
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_9 = ["idx"];
|
|
24005
|
+
var Question_Classifyvue_type_template_id_894b084c_hoisted_10 = {
|
|
24006
|
+
key: 0,
|
|
24007
|
+
class: "look-big-img-btn"
|
|
24008
|
+
};
|
|
24009
|
+
function Question_Classifyvue_type_template_id_894b084c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24010
|
+
var _component_MediaLooker = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MediaLooker");
|
|
24011
|
+
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_894b084c_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
24010
24012
|
class: "question-classify",
|
|
24011
24013
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
24012
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
24014
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_894b084c_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) {
|
|
24013
24015
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
24014
24016
|
class: "box-item",
|
|
24015
24017
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
24016
24018
|
key: index
|
|
24017
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
24019
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_894b084c_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
24018
24020
|
src: item.imgUrl,
|
|
24019
24021
|
alt: ""
|
|
24020
|
-
}, null, 8,
|
|
24022
|
+
}, null, 8, Question_Classifyvue_type_template_id_894b084c_hoisted_4)]), Question_Classifyvue_type_template_id_894b084c_hoisted_5], 4);
|
|
24021
24023
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
24022
24024
|
class: "list-outter",
|
|
24023
24025
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
24024
|
-
}, [
|
|
24026
|
+
}, [Question_Classifyvue_type_template_id_894b084c_hoisted_6, Question_Classifyvue_type_template_id_894b084c_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_894b084c_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) {
|
|
24025
24027
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
24026
24028
|
class: "list-item",
|
|
24027
24029
|
idx: item.idx,
|
|
@@ -24029,10 +24031,18 @@ function Question_Classifyvue_type_template_id_2ec8502f_render(_ctx, _cache, $pr
|
|
|
24029
24031
|
key: index
|
|
24030
24032
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
24031
24033
|
class: "list-item-text"
|
|
24032
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, item.content_type != 2]])], 12,
|
|
24033
|
-
}), 128))])], 4)], 4)
|
|
24034
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, item.content_type != 2]]), $data.isNeedLookBigImgBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_894b084c_hoisted_10)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 12, Question_Classifyvue_type_template_id_894b084c_hoisted_9);
|
|
24035
|
+
}), 128))])], 4)], 4), _ctx.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MediaLooker, {
|
|
24036
|
+
key: 0,
|
|
24037
|
+
visible: _ctx.visible,
|
|
24038
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
24039
|
+
return _ctx.visible = $event;
|
|
24040
|
+
}),
|
|
24041
|
+
mediaCount: _ctx.curMediaCount,
|
|
24042
|
+
mediaLookerList: _ctx.mediaLookerList
|
|
24043
|
+
}, null, 8, ["visible", "mediaCount", "mediaLookerList"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
24034
24044
|
}
|
|
24035
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
24045
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=894b084c
|
|
24036
24046
|
|
|
24037
24047
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
24038
24048
|
var es_array_sort = __webpack_require__(2707);
|
|
@@ -24099,6 +24109,13 @@ var setRemFixedHeight = function setRemFixedHeight() {
|
|
|
24099
24109
|
|
|
24100
24110
|
|
|
24101
24111
|
|
|
24112
|
+
|
|
24113
|
+
|
|
24114
|
+
|
|
24115
|
+
|
|
24116
|
+
|
|
24117
|
+
|
|
24118
|
+
|
|
24102
24119
|
var env = js_fun.getDeviceEnv();
|
|
24103
24120
|
/* harmony default export */ var Question_Classifyvue_type_script_lang_js = ({
|
|
24104
24121
|
name: 'Question_Classify',
|
|
@@ -24156,7 +24173,8 @@ var env = js_fun.getDeviceEnv();
|
|
|
24156
24173
|
// },500)
|
|
24157
24174
|
},
|
|
24158
24175
|
data: function data() {
|
|
24159
|
-
return {
|
|
24176
|
+
return _objectSpread2({
|
|
24177
|
+
isNeedLookBigImgBtn: false,
|
|
24160
24178
|
animationing: false,
|
|
24161
24179
|
analyCorrectAnswer: '',
|
|
24162
24180
|
classify_question_info: {},
|
|
@@ -24183,7 +24201,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24183
24201
|
//设置一个死的滚动距离,保证能滚到底,目前够用
|
|
24184
24202
|
lazyDragTimer: null,
|
|
24185
24203
|
dragingStart: false
|
|
24186
|
-
};
|
|
24204
|
+
}, JSON.parse(commonData));
|
|
24187
24205
|
},
|
|
24188
24206
|
watch: {
|
|
24189
24207
|
questionInfo: {
|
|
@@ -24248,6 +24266,17 @@ var env = js_fun.getDeviceEnv();
|
|
|
24248
24266
|
var correct = this.questionInfo.answerMap.is_correct === '1' ? true : false;
|
|
24249
24267
|
return correct;
|
|
24250
24268
|
},
|
|
24269
|
+
getIsNeedLookBigImgBtn: function getIsNeedLookBigImgBtn(exam_options_data) {
|
|
24270
|
+
//如果每个item的file_url地址都是同一个就说明是默认背景不需要看大图
|
|
24271
|
+
var arr = [];
|
|
24272
|
+
exam_options_data.forEach(function (item) {
|
|
24273
|
+
var objItem = item.data;
|
|
24274
|
+
if (arr.indexOf(objItem.file_url) <= -1) {
|
|
24275
|
+
arr.push(objItem.file_url);
|
|
24276
|
+
}
|
|
24277
|
+
});
|
|
24278
|
+
return arr.length > 1 ? true : false;
|
|
24279
|
+
},
|
|
24251
24280
|
parseLists: function parseLists(nv) {
|
|
24252
24281
|
this.classify_question_info = nv.classify_question_info;
|
|
24253
24282
|
var exam_options_data = nv.exam_options_data;
|
|
@@ -24268,6 +24297,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24268
24297
|
idx: item.index
|
|
24269
24298
|
});
|
|
24270
24299
|
});
|
|
24300
|
+
this.isNeedLookBigImgBtn = this.getIsNeedLookBigImgBtn(exam_options_data);
|
|
24271
24301
|
this.optionList = optionList;
|
|
24272
24302
|
this.listItemBgCss = !optionList[0] ? '' : optionList[0].bgUrlCss;
|
|
24273
24303
|
var bigBoxItemList = [];
|
|
@@ -24336,6 +24366,21 @@ var env = js_fun.getDeviceEnv();
|
|
|
24336
24366
|
});
|
|
24337
24367
|
return specArr;
|
|
24338
24368
|
},
|
|
24369
|
+
lookBigImg: function lookBigImg(e) {
|
|
24370
|
+
var self = this;
|
|
24371
|
+
var bgStr = $(e.target).parent('.list-item').css('background-image');
|
|
24372
|
+
var bgStrReg = /url\(["'](.+)["']\)/;
|
|
24373
|
+
var matchArr = bgStr.match(bgStrReg);
|
|
24374
|
+
if (matchArr && matchArr.length > 1) {
|
|
24375
|
+
var bgUrl = matchArr[1].replace(/^\s+/ig, '').replace(/\s+$/ig, '');
|
|
24376
|
+
self.mediaLookerList = [];
|
|
24377
|
+
self.mediaLookerList.push({
|
|
24378
|
+
url: bgUrl,
|
|
24379
|
+
mediaType: 1
|
|
24380
|
+
});
|
|
24381
|
+
self.visible = true;
|
|
24382
|
+
}
|
|
24383
|
+
},
|
|
24339
24384
|
//移动端为了解决拖动事件和原生滚动条事件冲突,设置延迟100毫秒拖动(PC端不变)
|
|
24340
24385
|
bindDragDomEvent: function bindDragDomEvent(appendItem, way) {
|
|
24341
24386
|
var self = this;
|
|
@@ -24382,6 +24427,13 @@ var env = js_fun.getDeviceEnv();
|
|
|
24382
24427
|
appendItem.off(this.mousedown);
|
|
24383
24428
|
appendItem.on(this.mousedown, function (e) {
|
|
24384
24429
|
var _this2 = this;
|
|
24430
|
+
e.stopPropagation();
|
|
24431
|
+
var curClassName = e.target.className;
|
|
24432
|
+
if (curClassName.indexOf('look-big-img-btn') > -1) {
|
|
24433
|
+
self.lookBigImg(e);
|
|
24434
|
+
return;
|
|
24435
|
+
}
|
|
24436
|
+
console.log(123);
|
|
24385
24437
|
if (env === 'mobile') {
|
|
24386
24438
|
self.lazyDragTimer = setTimeout(function () {
|
|
24387
24439
|
dragDomEventFn(e, _this2);
|
|
@@ -24398,7 +24450,8 @@ var env = js_fun.getDeviceEnv();
|
|
|
24398
24450
|
var itemBgCss = "".concat(self.moveDiv.get(0).style.backgroundImage);
|
|
24399
24451
|
var itemColorCss = "".concat(self.moveDiv.get(0).style.color);
|
|
24400
24452
|
var textDisplayCss = self.moveDiv.find('.list-item-text').get(0).style.display;
|
|
24401
|
-
var
|
|
24453
|
+
var lookBigImgBtnStr = options.appendItemClassName === 'list-item' ? '<div class="look-big-img-btn"></div>' : '';
|
|
24454
|
+
var appendItem = $("<div class=\"".concat(options.appendItemClassName, "\" idx=\"").concat(idx, "\"><div class=\"list-item-text\" style=\"").concat(textDisplayCss ? 'display:' + textDisplayCss : '', "\">").concat(self.moveDiv.find('.list-item-text').text(), "</div>").concat(lookBigImgBtnStr, "</div>"));
|
|
24402
24455
|
appendItem.css({
|
|
24403
24456
|
opacity: 0,
|
|
24404
24457
|
backgroundImage: itemBgCss,
|
|
@@ -24458,6 +24511,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24458
24511
|
return;
|
|
24459
24512
|
}
|
|
24460
24513
|
// e.preventDefault()
|
|
24514
|
+
console.log(self.dragWay, 7788);
|
|
24461
24515
|
if (self.dragWay === 'go') {
|
|
24462
24516
|
$(document).off(self.mousemove);
|
|
24463
24517
|
self.listItem && self.listItem.removeClass('drag');
|
|
@@ -24594,7 +24648,9 @@ var env = js_fun.getDeviceEnv();
|
|
|
24594
24648
|
this.answeredNotify();
|
|
24595
24649
|
}
|
|
24596
24650
|
},
|
|
24597
|
-
components: {
|
|
24651
|
+
components: {
|
|
24652
|
+
MediaLooker: MediaLooker
|
|
24653
|
+
}
|
|
24598
24654
|
});
|
|
24599
24655
|
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=script&lang=js
|
|
24600
24656
|
|
|
@@ -24604,7 +24660,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24604
24660
|
|
|
24605
24661
|
|
|
24606
24662
|
;
|
|
24607
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
24663
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_894b084c_render]])
|
|
24608
24664
|
|
|
24609
24665
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
24610
24666
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|