@zykjcommon/questions 0.0.39 → 0.0.41
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 +121 -40
- package/dist/zykjcommon-questions.css +1 -1
- package/dist/zykjcommon-questions.umd.js +121 -40
- package/dist/zykjcommon-questions.umd.min.js +5 -5
- package/package.json +3 -3
- package/src/assets/js/fun.js +2 -1
- package/src/assets/scss/questions/zykjcommon-questions.scss +34 -16
- package/src/components/questions/Question_Classify.vue +91 -14
- package/src/views/exam/FullScreen.vue +105 -23
- package/package2.json +0 -64
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zykjcommon/questions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"main": "src/components/questions/entry.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
"video.js": "^7.6.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@zykjcommon/questions": "^0.0.27",
|
|
28
|
-
"element-plus": "^2.0.2",
|
|
29
27
|
"@types/node": "^18.11.9",
|
|
30
28
|
"@vue/cli-plugin-babel": "^5.0.1",
|
|
31
29
|
"@vue/cli-plugin-router": "~4.5.0",
|
|
@@ -33,6 +31,8 @@
|
|
|
33
31
|
"@vue/cli-plugin-vuex": "~4.5.0",
|
|
34
32
|
"@vue/cli-service": "^5.0.1",
|
|
35
33
|
"@vue/compiler-sfc": "^3.0.0",
|
|
34
|
+
"@zykjcommon/questions": "^0.0.39",
|
|
35
|
+
"element-plus": "^2.0.2",
|
|
36
36
|
"file-loader": "^6.2.0",
|
|
37
37
|
"image-webpack-loader": "^8.1.0",
|
|
38
38
|
"postcss": "^8.4.6",
|
package/src/assets/js/fun.js
CHANGED
|
@@ -888,7 +888,8 @@ function getDeviceEnv(){
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
|
|
891
|
+
let touch = !!(('ontouchstart' in window) || (window.DocumentTouch && document instanceof window.DocumentTouch))
|
|
892
|
+
return IsIPad && touch
|
|
892
893
|
}
|
|
893
894
|
let env = ''
|
|
894
895
|
let md= new MobileDetect(window.navigator.userAgent) //初始化mobile-detect
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$greenItemFontSize:0.
|
|
1
|
+
$greenItemFontSize:0.13em;
|
|
2
2
|
.zykjcommon-question{
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
.editor-content{
|
|
@@ -354,7 +354,9 @@ $greenItemFontSize:0.14em;
|
|
|
354
354
|
height: 100%;
|
|
355
355
|
position: relative;
|
|
356
356
|
/*background: url("../../img/classify-bg-seaworld.png") no-repeat center;*/
|
|
357
|
-
|
|
357
|
+
background-repeat: no-repeat;
|
|
358
|
+
background-position: center;
|
|
359
|
+
background-size: 100% 100%;
|
|
358
360
|
overflow: auto;
|
|
359
361
|
.box{
|
|
360
362
|
padding: 0 0.8em;
|
|
@@ -369,10 +371,10 @@ $greenItemFontSize:0.14em;
|
|
|
369
371
|
display: flex;
|
|
370
372
|
flex-direction: column;
|
|
371
373
|
/*background: url("../../img/classify-boxitem-bg.png") no-repeat center;*/
|
|
372
|
-
|
|
374
|
+
background-size: 100% 100%;
|
|
373
375
|
}
|
|
374
376
|
.main-block{
|
|
375
|
-
margin:0.38em auto 0;
|
|
377
|
+
margin:0.38em auto 0.1rem;
|
|
376
378
|
width: 1.1em;
|
|
377
379
|
height: 1.1em;
|
|
378
380
|
background: #76d2ff;
|
|
@@ -389,25 +391,31 @@ $greenItemFontSize:0.14em;
|
|
|
389
391
|
padding: 0 0.28em 0.15em 0.35em;
|
|
390
392
|
flex: 1;
|
|
391
393
|
.main-append{
|
|
392
|
-
|
|
393
|
-
height: 2.9em;
|
|
394
|
+
height: 2.77em;
|
|
394
395
|
overflow: auto;
|
|
395
396
|
display: flex;
|
|
396
397
|
flex-wrap: wrap;
|
|
397
398
|
justify-content: space-between;
|
|
398
399
|
align-content: start;
|
|
400
|
+
&.noScrollBar::-webkit-scrollbar {
|
|
401
|
+
width: 0;
|
|
402
|
+
height: 0;
|
|
403
|
+
}
|
|
399
404
|
}
|
|
400
405
|
}
|
|
401
406
|
.append-item{
|
|
402
|
-
/*background: url("../../img/classify-green-item.png") no-repeat center
|
|
403
|
-
background-
|
|
407
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;*/
|
|
408
|
+
background-repeat: no-repeat;
|
|
409
|
+
background-position: center;
|
|
410
|
+
background-size: 100% 100%;
|
|
404
411
|
width: 1.3em;
|
|
405
412
|
height: 1.3em;
|
|
406
413
|
margin-right: 0.1em;
|
|
414
|
+
margin-bottom: 0.1em;
|
|
407
415
|
flex-shrink: 0;
|
|
408
416
|
cursor: move;
|
|
409
417
|
text-align: center;
|
|
410
|
-
color:rgb(238,252,149)
|
|
418
|
+
/*color:rgb(238,252,149);*/
|
|
411
419
|
padding:0 0.2em;
|
|
412
420
|
display: flex;
|
|
413
421
|
justify-content: center;
|
|
@@ -442,13 +450,19 @@ $greenItemFontSize:0.14em;
|
|
|
442
450
|
margin-left: -4.5em;
|
|
443
451
|
width: 9em;
|
|
444
452
|
/*background: url("../../img/classify-list-bg.png") no-repeat center;*/
|
|
445
|
-
|
|
453
|
+
background-repeat: no-repeat;
|
|
454
|
+
background-position: center;
|
|
455
|
+
background-size: 100% 100%;
|
|
446
456
|
.list{
|
|
447
457
|
height: 1.5em;
|
|
448
458
|
display: flex;
|
|
449
459
|
align-items: center;
|
|
450
460
|
overflow-x: auto;
|
|
451
461
|
width: 100%;
|
|
462
|
+
&.noScrollBar::-webkit-scrollbar {
|
|
463
|
+
width: 0;
|
|
464
|
+
height: 0;
|
|
465
|
+
}
|
|
452
466
|
}
|
|
453
467
|
.prev,.next{
|
|
454
468
|
width: 0.24em;
|
|
@@ -480,15 +494,17 @@ $greenItemFontSize:0.14em;
|
|
|
480
494
|
}
|
|
481
495
|
}
|
|
482
496
|
.list-item{
|
|
483
|
-
/*background: url("../../img/classify-green-item.png") no-repeat center
|
|
484
|
-
background-
|
|
497
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;*/
|
|
498
|
+
background-repeat: no-repeat;
|
|
499
|
+
background-position: center;
|
|
500
|
+
background-size: 100% 100%;
|
|
485
501
|
width: 1.3em;
|
|
486
502
|
height: 1.3em;
|
|
487
503
|
margin-right: 0.1em;
|
|
488
504
|
flex-shrink: 0;
|
|
489
505
|
cursor: move;
|
|
490
506
|
text-align: center;
|
|
491
|
-
color:rgb(238,252,149)
|
|
507
|
+
/*color:rgb(238,252,149);*/
|
|
492
508
|
padding:0 0.2em;
|
|
493
509
|
display: flex;
|
|
494
510
|
justify-content: center;
|
|
@@ -518,15 +534,17 @@ $greenItemFontSize:0.14em;
|
|
|
518
534
|
}
|
|
519
535
|
.question-classify-moveDiv{
|
|
520
536
|
position: fixed;
|
|
521
|
-
/*background: url("../../img/classify-green-item.png") no-repeat center
|
|
522
|
-
background-
|
|
537
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;*/
|
|
538
|
+
background-repeat: no-repeat;
|
|
539
|
+
background-position: center;
|
|
540
|
+
background-size: 100% 100%;
|
|
523
541
|
width: 1.3em;
|
|
524
542
|
height: 1.3em;
|
|
525
543
|
margin-right: 0.1em;
|
|
526
544
|
flex-shrink: 0;
|
|
527
545
|
cursor: move;
|
|
528
546
|
text-align: center;
|
|
529
|
-
color:rgb(238,252,149)
|
|
547
|
+
/*color:rgb(238,252,149);*/
|
|
530
548
|
padding:0 0.2em;
|
|
531
549
|
display: flex;
|
|
532
550
|
justify-content: center;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:style="item.bgUrlCss"
|
|
29
29
|
v-for="(item,index) in optionList"
|
|
30
30
|
:key="index">
|
|
31
|
-
<div class="list-item-text">{{item.content}}</div>
|
|
31
|
+
<div class="list-item-text" v-show="item.content_type!=2">{{item.content}}</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -113,6 +113,8 @@ export default {
|
|
|
113
113
|
dragWay : '',
|
|
114
114
|
flag : false,
|
|
115
115
|
scrollDistance : 3000,//设置一个死的滚动距离,保证能滚到底,目前够用
|
|
116
|
+
lazyDragTimer:null,
|
|
117
|
+
dragingStart:false
|
|
116
118
|
};
|
|
117
119
|
},
|
|
118
120
|
watch: {
|
|
@@ -174,16 +176,18 @@ export default {
|
|
|
174
176
|
let exam_options_data = nv.exam_options_data
|
|
175
177
|
if(this.classify_question_info){
|
|
176
178
|
if(this.classify_question_info.background_file){
|
|
177
|
-
this.bigBgCss = `background: url(${this.classify_question_info.background_file.file_url})
|
|
179
|
+
this.bigBgCss = `background-image: url(${this.classify_question_info.background_file.file_url});`
|
|
178
180
|
}
|
|
179
181
|
if(this.classify_question_info.bottom_img_file){
|
|
180
|
-
this.bottomBgCss = `background: url(${this.classify_question_info.bottom_img_file.file_url})
|
|
182
|
+
this.bottomBgCss = `background-image: url(${this.classify_question_info.bottom_img_file.file_url});`
|
|
181
183
|
}
|
|
182
184
|
let optionList = []
|
|
185
|
+
this.optionList = []
|
|
183
186
|
exam_options_data.forEach((item)=>{
|
|
184
187
|
optionList.push({
|
|
188
|
+
content_type:item.data.content_type,
|
|
185
189
|
content:item.data.option_content,
|
|
186
|
-
bgUrlCss:`background: url(${item.data.file_url})
|
|
190
|
+
bgUrlCss:`background-image: url(${item.data.file_url});color:${item.data.font_color}`,
|
|
187
191
|
idx:item.index
|
|
188
192
|
})
|
|
189
193
|
})
|
|
@@ -197,7 +201,7 @@ export default {
|
|
|
197
201
|
bigBoxItemList.push({
|
|
198
202
|
imgUrl:big_type_option_list[index].file_url,
|
|
199
203
|
bgUrl:item.file_url,
|
|
200
|
-
bgUrlCss:`background: url(${item.file_url})
|
|
204
|
+
bgUrlCss:`background-image: url(${item.file_url});`
|
|
201
205
|
})
|
|
202
206
|
})
|
|
203
207
|
this.bigBoxItemList = bigBoxItemList
|
|
@@ -212,9 +216,12 @@ export default {
|
|
|
212
216
|
document.removeEventListener('gesturestart', this.gesturestartListener)
|
|
213
217
|
$(this.$el).find('.question-classify .append-item').off(this.mousedown)
|
|
214
218
|
$(this.$el).find('.question-classify .list-item').off(this.mousedown)
|
|
219
|
+
$(this.$el).find(`.question-classify .next`).off('click')
|
|
220
|
+
$(this.$el).find(`.question-classify .prev`).off('click')
|
|
215
221
|
$(document).off(this.mouseup)
|
|
216
222
|
let html = document.getElementsByTagName("html")[0];
|
|
217
223
|
html.style.fontSize = "";
|
|
224
|
+
document.onselectstart = null
|
|
218
225
|
},
|
|
219
226
|
answeredNotify(){
|
|
220
227
|
let self = this
|
|
@@ -256,26 +263,31 @@ export default {
|
|
|
256
263
|
})
|
|
257
264
|
return specArr
|
|
258
265
|
},
|
|
266
|
+
//移动端为了解决拖动事件和原生滚动条事件冲突,设置延迟100毫秒拖动(PC端不变)
|
|
259
267
|
bindDragDomEvent(appendItem,way){
|
|
260
268
|
let self = this
|
|
261
|
-
|
|
269
|
+
function dragDomEventFn(e,ctx){
|
|
262
270
|
if(self.moveDiv){
|
|
263
271
|
return
|
|
264
272
|
}
|
|
273
|
+
env === 'mobile' && self.startLazyDrag()
|
|
265
274
|
self.flag = false
|
|
266
275
|
self.dragWay = way
|
|
267
276
|
console.log(e);
|
|
268
277
|
e.stopPropagation()
|
|
269
278
|
e.preventDefault()
|
|
270
|
-
self.listItem = $(
|
|
279
|
+
self.listItem = $(ctx)
|
|
271
280
|
self.listItem.addClass('drag')
|
|
272
281
|
self.p1.moveX = self.listItem.offset().left;
|
|
273
282
|
self.p1.moveY = self.listItem.offset().top - 30;
|
|
274
283
|
let idx = self.listItem.attr('idx')
|
|
275
|
-
|
|
276
|
-
self.
|
|
284
|
+
let itemBgCss = `${self.listItem.get(0).style.backgroundImage}`
|
|
285
|
+
let itemColorCss = `${self.listItem.get(0).style.color}`
|
|
286
|
+
let textDisplayCss = self.listItem.find('.list-item-text').get(0).style.display
|
|
287
|
+
console.log(itemBgCss,1234);
|
|
288
|
+
self.moveDiv = $(`<div class="question-classify-moveDiv" idx="${idx}"><div class="list-item-text" style="${textDisplayCss?'display:'+textDisplayCss:''}">${self.listItem.find('.list-item-text').text()}</div></div>`)
|
|
289
|
+
self.moveDiv.css({left:`${self.p1.moveX}px`,top:`${self.p1.moveY}px`,backgroundImage:itemBgCss,color:itemColorCss})
|
|
277
290
|
$(self.$el).append(self.moveDiv)
|
|
278
|
-
// $('body').append(self.moveDiv)
|
|
279
291
|
$(document).on(self.mousemove,function(e2){
|
|
280
292
|
// e2.preventDefault()
|
|
281
293
|
e2.stopPropagation()
|
|
@@ -289,15 +301,27 @@ export default {
|
|
|
289
301
|
})
|
|
290
302
|
|
|
291
303
|
})
|
|
292
|
-
|
|
304
|
+
}
|
|
305
|
+
appendItem.off(this.mousedown)
|
|
306
|
+
appendItem.on(this.mousedown,function(e){
|
|
307
|
+
if(env === 'mobile'){
|
|
308
|
+
self.lazyDragTimer = setTimeout(()=>{
|
|
309
|
+
dragDomEventFn(e,this)
|
|
310
|
+
},100)
|
|
311
|
+
}else{
|
|
312
|
+
dragDomEventFn(e,this)
|
|
313
|
+
}
|
|
293
314
|
})
|
|
294
315
|
},
|
|
295
316
|
appendMoveDiv(options){
|
|
296
317
|
let self = this
|
|
297
318
|
self.listItem.remove()
|
|
298
319
|
let idx = self.moveDiv.attr('idx')
|
|
299
|
-
let
|
|
300
|
-
|
|
320
|
+
let itemBgCss = `${self.moveDiv.get(0).style.backgroundImage}`
|
|
321
|
+
let itemColorCss = `${self.moveDiv.get(0).style.color}`
|
|
322
|
+
let textDisplayCss = self.moveDiv.find('.list-item-text').get(0).style.display
|
|
323
|
+
let appendItem = $(`<div class="${options.appendItemClassName}" idx="${idx}"><div class="list-item-text" style="${textDisplayCss?'display:'+textDisplayCss:''}">${self.moveDiv.find('.list-item-text').text()}</div></div>`)
|
|
324
|
+
appendItem.css({opacity:0,backgroundImage:itemBgCss,color:itemColorCss})
|
|
301
325
|
options.targetList.append(appendItem)
|
|
302
326
|
options.targetList[options.scrollDirection](self.scrollDistance)
|
|
303
327
|
let appendLeft = appendItem.offset().left
|
|
@@ -323,6 +347,7 @@ export default {
|
|
|
323
347
|
},
|
|
324
348
|
bindNextPrevEvent(type){
|
|
325
349
|
let self = this
|
|
350
|
+
$(this.$el).find(`.question-classify .${type}`).off('click')
|
|
326
351
|
$(this.$el).find(`.question-classify .${type}`).on('click',function(e){
|
|
327
352
|
e.stopPropagation()
|
|
328
353
|
e.preventDefault()
|
|
@@ -340,7 +365,9 @@ export default {
|
|
|
340
365
|
this.setAnswerDo()
|
|
341
366
|
}
|
|
342
367
|
self.bindDragDomEvent($(this.$el).find('.question-classify .list-item'),'go')
|
|
368
|
+
$(document).off(self.mouseup)
|
|
343
369
|
$(document).on(self.mouseup,function(e){
|
|
370
|
+
env === 'mobile' && self.stopLazyDrag()
|
|
344
371
|
if(self.animationing){
|
|
345
372
|
return
|
|
346
373
|
}
|
|
@@ -403,9 +430,50 @@ export default {
|
|
|
403
430
|
}
|
|
404
431
|
}
|
|
405
432
|
})
|
|
433
|
+
|
|
434
|
+
//禁止选中文字,解决拖动过程中文字老是被选中问题
|
|
435
|
+
document.onselectstart = function(){
|
|
436
|
+
return false
|
|
437
|
+
}
|
|
438
|
+
if(env === 'mobile'){
|
|
439
|
+
$('.list').off('scroll')
|
|
440
|
+
$('.list').on('scroll',function(){
|
|
441
|
+
if(!self.dragingStart){
|
|
442
|
+
self.stopLazyDrag()
|
|
443
|
+
}
|
|
444
|
+
}).addClass('noScrollBar')
|
|
445
|
+
$('.main-append').off('scroll')
|
|
446
|
+
$('.main-append').on('scroll',function(e){
|
|
447
|
+
if(!self.dragingStart){
|
|
448
|
+
self.stopLazyDrag()
|
|
449
|
+
}
|
|
450
|
+
}).addClass('noScrollBar')
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
|
|
406
454
|
self.bindNextPrevEvent('next')
|
|
407
455
|
self.bindNextPrevEvent('prev')
|
|
408
456
|
},
|
|
457
|
+
startLazyDrag(){
|
|
458
|
+
this.dragingStart = true
|
|
459
|
+
$('.list').css({
|
|
460
|
+
overflow:'hidden'
|
|
461
|
+
})
|
|
462
|
+
$('.main-append').css({
|
|
463
|
+
overflow:'hidden'
|
|
464
|
+
})
|
|
465
|
+
},
|
|
466
|
+
stopLazyDrag(){
|
|
467
|
+
this.dragingStart = false
|
|
468
|
+
this.lazyDragTimer && clearTimeout(this.lazyDragTimer)
|
|
469
|
+
this.lazyDragTimer = null
|
|
470
|
+
$('.list').css({
|
|
471
|
+
overflow:'auto'
|
|
472
|
+
})
|
|
473
|
+
$('.main-append').css({
|
|
474
|
+
overflow:'auto'
|
|
475
|
+
})
|
|
476
|
+
},
|
|
409
477
|
//回显答案
|
|
410
478
|
setAnswerDo(){
|
|
411
479
|
let self = this
|
|
@@ -413,6 +481,8 @@ export default {
|
|
|
413
481
|
$(this.$el).find('.question-classify .list-item').each((index,item)=>{
|
|
414
482
|
listItemIds.push(Number($(item).attr('idx')))
|
|
415
483
|
})
|
|
484
|
+
// 如果两个上一题下一题切换组件,两个又是同一类型的组件,需要清空一下dom,以防两题篡了
|
|
485
|
+
$(this.$el).find('.main-append').empty()
|
|
416
486
|
this.answerMap.classify_mapping_list.forEach((item,index)=>{
|
|
417
487
|
item.small_type_index_list.forEach((subItem)=>{
|
|
418
488
|
let idx = listItemIds.findIndex((i)=>{
|
|
@@ -422,8 +492,15 @@ export default {
|
|
|
422
492
|
//找到一个删掉一个,要不会有问题
|
|
423
493
|
listItemIds.splice(idx,1)
|
|
424
494
|
let listItemDom = $(this.$el).find('.question-classify .list-item').eq(idx)
|
|
495
|
+
let itemBgCss = `${listItemDom.get(0).style.backgroundImage}`
|
|
496
|
+
let itemColorCss = `${listItemDom.get(0).style.color}`
|
|
497
|
+
let textDisplayCss = listItemDom.find('.list-item-text').get(0).style.display
|
|
425
498
|
let attrIdx = listItemDom.attr('idx')
|
|
426
|
-
let appendItem = $(`<div class="append-item" idx="${attrIdx}"
|
|
499
|
+
let appendItem = $(`<div class="append-item" idx="${attrIdx}"><div class="list-item-text" style="${textDisplayCss?'display:'+textDisplayCss:''}">${listItemDom.find('.list-item-text').text()}</div></div>`)
|
|
500
|
+
appendItem.css({
|
|
501
|
+
backgroundImage:itemBgCss,
|
|
502
|
+
color:itemColorCss
|
|
503
|
+
})
|
|
427
504
|
self.bindDragDomEvent(appendItem,'back')
|
|
428
505
|
$(this.$el).find('.main-append').eq(index).append(appendItem)
|
|
429
506
|
listItemDom.remove()
|
|
@@ -180,40 +180,40 @@ export default defineComponent({
|
|
|
180
180
|
},
|
|
181
181
|
"small_type_option_list": [
|
|
182
182
|
{
|
|
183
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
183
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/ed57c2b33d9f14deccb5f0e557aac8denvl359dqel2ftdsh.png-quality_80",
|
|
184
184
|
"content_type": 3,
|
|
185
185
|
"file_type": 1,
|
|
186
|
-
"name": "
|
|
187
|
-
"id":
|
|
186
|
+
"name": "微信截图_20230630121121",
|
|
187
|
+
"id": 3473,
|
|
188
188
|
"thumbnail_url": "",
|
|
189
|
-
"option_content": "
|
|
189
|
+
"option_content": "选项1"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
192
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
193
193
|
"content_type": 3,
|
|
194
194
|
"file_type": 1,
|
|
195
|
-
"name": "
|
|
196
|
-
"id":
|
|
195
|
+
"name": "微信截图_20230307122255",
|
|
196
|
+
"id": 3466,
|
|
197
197
|
"thumbnail_url": "",
|
|
198
|
-
"option_content": "
|
|
198
|
+
"option_content": "选项2"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
201
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/82cc10f675b7c5b81142bdf927f1d962z75x1g88ef85n7fq.png-quality_80",
|
|
202
202
|
"content_type": 3,
|
|
203
203
|
"file_type": 1,
|
|
204
|
-
"name": "
|
|
205
|
-
"id":
|
|
204
|
+
"name": "编组 14备份",
|
|
205
|
+
"id": 3481,
|
|
206
206
|
"thumbnail_url": "",
|
|
207
|
-
"option_content": "
|
|
207
|
+
"option_content": "选项1"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
210
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/ac5e72352acd82a8d17b58977953ec97y57cnn66qddl115d.png-quality_80",
|
|
211
211
|
"content_type": 3,
|
|
212
212
|
"file_type": 1,
|
|
213
|
-
"name": "
|
|
214
|
-
"id":
|
|
213
|
+
"name": "微信截图_20230307122245",
|
|
214
|
+
"id": 3467,
|
|
215
215
|
"thumbnail_url": "",
|
|
216
|
-
"option_content": "
|
|
216
|
+
"option_content": "选项2"
|
|
217
217
|
}
|
|
218
218
|
],
|
|
219
219
|
"big_type_option_list": [
|
|
@@ -270,9 +270,10 @@ export default defineComponent({
|
|
|
270
270
|
"exam_options_data": [
|
|
271
271
|
{
|
|
272
272
|
"data": {
|
|
273
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
273
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/ed57c2b33d9f14deccb5f0e557aac8denvl359dqel2ftdsh.png-quality_80",
|
|
274
274
|
"content_type": 3,
|
|
275
275
|
"file_type": 1,
|
|
276
|
+
"font_color": "#F9FF99",
|
|
276
277
|
"name": "sss",
|
|
277
278
|
"id": 3489,
|
|
278
279
|
"thumbnail_url": "",
|
|
@@ -282,21 +283,23 @@ export default defineComponent({
|
|
|
282
283
|
},
|
|
283
284
|
{
|
|
284
285
|
"data": {
|
|
285
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
286
|
-
"content_type":
|
|
286
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
287
|
+
"content_type": 2,
|
|
287
288
|
"file_type": 1,
|
|
289
|
+
"font_color": "#F9FF99",
|
|
288
290
|
"name": "sss",
|
|
289
291
|
"id": 3489,
|
|
290
292
|
"thumbnail_url": "",
|
|
291
|
-
"option_content": "哈哈"
|
|
293
|
+
"option_content": "哈哈2222"
|
|
292
294
|
},
|
|
293
295
|
"index": 1
|
|
294
296
|
},
|
|
295
297
|
{
|
|
296
298
|
"data": {
|
|
297
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
299
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/ed57c2b33d9f14deccb5f0e557aac8denvl359dqel2ftdsh.png-quality_80",
|
|
298
300
|
"content_type": 3,
|
|
299
301
|
"file_type": 1,
|
|
302
|
+
"font_color": "#F9FF99",
|
|
300
303
|
"name": "sss",
|
|
301
304
|
"id": 3489,
|
|
302
305
|
"thumbnail_url": "",
|
|
@@ -306,15 +309,94 @@ export default defineComponent({
|
|
|
306
309
|
},
|
|
307
310
|
{
|
|
308
311
|
"data": {
|
|
309
|
-
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/
|
|
312
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
310
313
|
"content_type": 3,
|
|
311
314
|
"file_type": 1,
|
|
315
|
+
"font_color": "#F9FF99",
|
|
312
316
|
"name": "sss",
|
|
313
317
|
"id": 3489,
|
|
314
318
|
"thumbnail_url": "",
|
|
315
319
|
"option_content": "呵呵"
|
|
316
320
|
},
|
|
317
321
|
"index": 4
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"data": {
|
|
325
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
326
|
+
"content_type": 3,
|
|
327
|
+
"file_type": 1,
|
|
328
|
+
"font_color": "#F9FF99",
|
|
329
|
+
"name": "sss",
|
|
330
|
+
"id": 3489,
|
|
331
|
+
"thumbnail_url": "",
|
|
332
|
+
"option_content": "呵呵222"
|
|
333
|
+
},
|
|
334
|
+
"index": 5
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"data": {
|
|
338
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
339
|
+
"content_type": 3,
|
|
340
|
+
"file_type": 1,
|
|
341
|
+
"font_color": "#F9FF99",
|
|
342
|
+
"name": "sss",
|
|
343
|
+
"id": 3489,
|
|
344
|
+
"thumbnail_url": "",
|
|
345
|
+
"option_content": "呵呵222"
|
|
346
|
+
},
|
|
347
|
+
"index": 6
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"data": {
|
|
351
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
352
|
+
"content_type": 3,
|
|
353
|
+
"file_type": 1,
|
|
354
|
+
"font_color": "#F9FF99",
|
|
355
|
+
"name": "sss",
|
|
356
|
+
"id": 3489,
|
|
357
|
+
"thumbnail_url": "",
|
|
358
|
+
"option_content": "呵呵222"
|
|
359
|
+
},
|
|
360
|
+
"index": 7
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"data": {
|
|
364
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
365
|
+
"content_type": 3,
|
|
366
|
+
"file_type": 1,
|
|
367
|
+
"font_color": "#F9FF99",
|
|
368
|
+
"name": "sss",
|
|
369
|
+
"id": 3489,
|
|
370
|
+
"thumbnail_url": "",
|
|
371
|
+
"option_content": "呵呵222"
|
|
372
|
+
},
|
|
373
|
+
"index": 8
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"data": {
|
|
377
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
378
|
+
"content_type": 3,
|
|
379
|
+
"file_type": 1,
|
|
380
|
+
"font_color": "#F9FF99",
|
|
381
|
+
"name": "sss",
|
|
382
|
+
"id": 3489,
|
|
383
|
+
"thumbnail_url": "",
|
|
384
|
+
"option_content": "呵呵222"
|
|
385
|
+
},
|
|
386
|
+
"index": 9
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"data": {
|
|
390
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4c24fc0c43aea33bd9e6cb224dfd3648jhzavaqzp21mvtvt.png-quality_80",
|
|
391
|
+
"content_type": 3,
|
|
392
|
+
"file_type": 1,
|
|
393
|
+
"font_color": "#F9FF99",
|
|
394
|
+
"name": "sss",
|
|
395
|
+
"id": 3489,
|
|
396
|
+
"thumbnail_url": "",
|
|
397
|
+
"option_content": "呵呵222"
|
|
398
|
+
},
|
|
399
|
+
"index": 10
|
|
318
400
|
}
|
|
319
401
|
],
|
|
320
402
|
"draw_img": null,
|
|
@@ -361,7 +443,7 @@ export default defineComponent({
|
|
|
361
443
|
{
|
|
362
444
|
"big_type_index": 2,
|
|
363
445
|
"small_type_index_list": [
|
|
364
|
-
3
|
|
446
|
+
// 3
|
|
365
447
|
]
|
|
366
448
|
}
|
|
367
449
|
],
|
package/package2.json
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zykjcommon/questions",
|
|
3
|
-
"version": "0.0.38",
|
|
4
|
-
"main": "src/components/questions/entry.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "vue-cli-service serve",
|
|
7
|
-
"design": "node tasks/vueMapper.js && node tasks/vueMapperTree.js && npm run serve -- --design",
|
|
8
|
-
"build": "vue-cli-service build",
|
|
9
|
-
"pre": "vue-cli-service build --mode test",
|
|
10
|
-
"buildTest": "vue-cli-service build --mode buildTest",
|
|
11
|
-
"lint": "vue-cli-service lint",
|
|
12
|
-
"buildLib": "vue-cli-service build --target lib src/components/questions/buildEntry.js --name zykjcommon-questions",
|
|
13
|
-
"build:lib": "node tasks/setPublishPackageJson.js"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"alife-logger": "^1.8.30",
|
|
17
|
-
"axios": "^0.26.0",
|
|
18
|
-
"cookie": "^0.4.1",
|
|
19
|
-
"core-js": "^3.6.5",
|
|
20
|
-
"crypto-js": "^3.1.9-1",
|
|
21
|
-
"md5": "^2.2.1",
|
|
22
|
-
"mitt": "^3.0.0",
|
|
23
|
-
"mobile-detect": "^1.4.5",
|
|
24
|
-
"video.js": "^7.6.0",
|
|
25
|
-
"vue": "^3.0.0",
|
|
26
|
-
"vue-router": "^4.0.0-0",
|
|
27
|
-
"vuex": "^4.0.0-0",
|
|
28
|
-
"vuex-composition-helpers": "^2.0.1"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@zykjcommon/questions": "^0.0.27",
|
|
32
|
-
"element-plus": "^2.0.2",
|
|
33
|
-
"@types/node": "^18.11.9",
|
|
34
|
-
"@vue/cli-plugin-babel": "^5.0.1",
|
|
35
|
-
"@vue/cli-plugin-router": "~4.5.0",
|
|
36
|
-
"@vue/cli-plugin-typescript": "^5.0.1",
|
|
37
|
-
"@vue/cli-plugin-vuex": "~4.5.0",
|
|
38
|
-
"@vue/cli-service": "^5.0.1",
|
|
39
|
-
"@vue/compiler-sfc": "^3.0.0",
|
|
40
|
-
"file-loader": "^6.2.0",
|
|
41
|
-
"image-webpack-loader": "^8.1.0",
|
|
42
|
-
"postcss": "^8.4.6",
|
|
43
|
-
"postcss-cssnext": "^3.1.0",
|
|
44
|
-
"postcss-extend": "^1.0.5",
|
|
45
|
-
"postcss-import": "^14.0.2",
|
|
46
|
-
"postcss-mixins": "^6.2.1",
|
|
47
|
-
"postcss-nested": "^4.1.2",
|
|
48
|
-
"postcss-pxtorem": "^6.0.0",
|
|
49
|
-
"postcss-simple-vars": "^5.0.2",
|
|
50
|
-
"sass": "^1.26.5",
|
|
51
|
-
"sass-loader": "^8.0.2",
|
|
52
|
-
"typescript": "~4.1.5",
|
|
53
|
-
"unplugin-auto-import": "^0.6.0",
|
|
54
|
-
"unplugin-element-plus": "^0.3.1",
|
|
55
|
-
"unplugin-vue-components": "^0.17.18",
|
|
56
|
-
"url-loader": "^4.1.1",
|
|
57
|
-
"webpack": "^5.88.1",
|
|
58
|
-
"yargs": "^16.2.0"
|
|
59
|
-
},
|
|
60
|
-
"publishConfig": {
|
|
61
|
-
"access": "public",
|
|
62
|
-
"registry": "https://registry.npmjs.org/"
|
|
63
|
-
}
|
|
64
|
-
}
|