jufubao-movie 1.0.36-beta7 → 1.0.37

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.
@@ -6,643 +6,53 @@
6
6
  export default {
7
7
  style: [],
8
8
  content: (data) => {
9
- let outSpacing = 20;
10
- if(data['outSpacing'] ) outSpacing = Number(data['outSpacing'])
11
- let size = {width:750 - outSpacing*2,height:null};
12
- if(data.poster && data.poster.size && data.poster.size.height) {
13
- size['height'] = data.poster.size.height
14
- }
15
- let poster = {
16
- size: size,
17
- type:'1',
18
- position: Object.assign({},data.poster && data.poster.position)
19
- };
20
9
  return [
21
-
22
- {
23
- label: "是否热映影片",
24
- ele: "xd-radio",
25
- valueKey: "showHot",
26
- value: data['showHot'] || "Y",
27
- groupKey: 'content',
28
- list: [
29
- {label: "显示", value: "Y"},
30
- {label: "隐藏", value: "N"}
31
- ]
32
- },
33
- data['showHot'] === 'Y'&& {
34
- label: '热映影片自定义名称:',
35
- ele: 'el-input',
36
- type: 'text',
37
- groupKey:'content',
38
- valueKey: 'showHotName',
39
- value: data['showHotName'] || '',
40
- notice: '热映影片自定义名称设置,默认值:<span style="color:red">热映影片</span>',
41
- inline: false,
42
- className: 'input60',
43
- },
44
- {
45
- label: "是否即将上映",
46
- ele: "xd-radio",
47
- valueKey: "showRightnow",
48
- value: data['showRightnow'] || "Y",
49
- groupKey: 'content',
50
- list: [
51
- {label: "显示", value: "Y"},
52
- {label: "隐藏", value: "N"}
53
- ]
54
- },
55
- data['showRightnow'] === 'Y'&& {
56
- label: '即将上映自定义名称:',
57
- ele: 'el-input',
58
- type: 'text',
59
- groupKey:'content',
60
- valueKey: 'showRightnowName',
61
- value: data['showRightnowName'] || '',
62
- notice: '即将上映自定义名称设置,默认值:<span style="color:red">即将上映</span>',
63
- inline: false,
64
- className: 'input60',
65
- },
66
- {
67
- label: "是否影院列表",
68
- ele: "xd-radio",
69
- valueKey: "showList",
70
- value: data['showList'] || "Y",
71
- groupKey: 'content',
72
- list: [
73
- {label: "显示", value: "Y"},
74
- {label: "隐藏", value: "N"}
75
- ]
76
- },
77
- data['showList'] === 'Y'&& {
78
- label: '影院列表自定义名称:',
79
- ele: 'el-input',
80
- type: 'text',
81
- groupKey:'content',
82
- valueKey: 'showListName',
83
- value: data['showListName'] || '',
84
- notice: '即将上映自定义名称设置,默认值:<span style="color:red">影院列表</span>',
85
- inline: false,
86
- className: 'input60',
87
- },
88
- {
89
- ele: 'title',
90
- label: '影院列表设置',
91
- size: 'small',
92
- groupKey:'content',
93
- },
94
- {
95
- label: '获取数据排序方式:',
96
- ele: 'xd-site-select-list',
97
- valueKey: 'sort_consume_mode',
98
- value: data['sort_consume_mode'] || '',
99
- groupKey:'content',
100
- placeholder: '请选择获取数据排序方式',
101
- className: 'input80',
102
- handleCustom({ action, data }) {
103
- XdBus.getParentApi('getOptionsSettingList')({
104
- setting_id: 'sort_consume_mode',
105
- key: Date.now()
106
- })
107
- .then(res => {
108
- data.cb(res.list)
109
- })
110
- .catch(error => {
111
- console.error(error);
112
- });
113
- },
114
- },
115
- {
116
- ele: 'title',
117
- label: '广告设置',
118
- size: 'small',
119
- groupKey:'content',
120
- },
121
-
122
- {
123
- label: '广告位置配置:',
124
- ele: 'xd-site-poster',
125
- valueKey: 'poster',
126
- className: 'input80',
127
- value: poster,
128
- groupKey:'content',
129
- setting: {
130
- count: 1,
131
- scene: {label: '广告', value: 'normal'},
132
- sizeDisabled: {
133
- wDisabled:true,
134
- hDisabled: false,
135
- },
136
- typeDisabled: true
137
- },
138
- handleCustom({action, data}) {
139
- //设置场景参数
140
- if(data) {
141
- data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
142
- }
143
- console.log(action,data,'hjhjhjhjhj');
144
-
145
- //获取显示内容
146
- if (action === 'screenList') {
147
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'editx_base_ad_split_screen'})
148
- .then(res => {
149
- data.cb(res['list'])
150
- })
151
- .catch(error => {
152
- console.error(error);
153
- });
154
- return
155
- }
156
-
157
- //获取返回参数(广告位高度必选项)
158
- if (action === 'getPosterInfo') {
159
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
160
- .then(res => {
161
- data.cb({list: res.list, selectId: res.selected})
162
- })
163
- .catch(error => {
164
- console.error(error);
165
- });
166
- return
167
- }
168
-
169
- //使用内容分类
170
- if (action === 'cmsPublishEditxContent') {
171
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
172
- .then(res => {
173
- data.cb(res)
174
- })
175
- .catch(error => {
176
- console.error(error);
177
- });
178
- return
179
- }
180
-
181
- let loading = XdBus.getParentApi('loading')({});
182
- //位置列表
183
- if (action === 'getListPostion') {
184
- XdBus.getParentApi('getListPosterPosition')(data.params)
185
- .then(res => {
186
- loading.close();
187
- data.cb(res)
188
- })
189
- .catch(error => {
190
- loading.close();
191
- console.error(error);
192
- });
193
- }
194
-
195
- //位置创建
196
- if (action === 'addPostion') {
197
- XdBus.getParentApi('addPosterPosition')(data.params)
198
- .then(res => {
199
- loading.close();
200
- data.cb(true)
201
- })
202
- .catch(error => {
203
- console.error(error);
204
- loading.close();
205
- data.cb(false)
206
- });
207
- }
208
-
209
- //位置编辑
210
- if (action === 'editPostion') {
211
- XdBus.getParentApi('updatePosterPosition')(data.params)
212
- .then(res => {
213
- loading.close();
214
- data.cb(true)
215
- })
216
- .catch(error => {
217
- console.error(error);
218
- loading.close();
219
- data.cb(false)
220
- });
221
- }
222
-
223
- //位置删除
224
- if (action === 'deleltePostion') {
225
- XdBus.getParentApi('deletePosterPosition')(data.params)
226
- .then(res => {
227
- loading.close();
228
- data.cb(true)
229
- })
230
- .catch(error => {
231
- console.error(error);
232
- loading.close();
233
- data.cb(false)
234
- });
235
- }
236
-
237
- //获取广告位内容列表
238
- if (action === 'getListContent') {
239
- XdBus.getParentApi('getListPosterContent')(data.params)
240
- .then(res => {
241
- loading.close();
242
- data.cb(res)
243
- })
244
- .catch(error => {
245
- loading.close();
246
- console.error(error);
247
- });
248
- }
249
-
250
- //广告内容创建
251
- if (action === 'addContent') {
252
- XdBus.getParentApi('addPosterContent')(data.params)
253
- .then(res => {
254
- loading.close();
255
- data.cb(true)
256
- })
257
- .catch(error => {
258
- console.error(error);
259
- loading.close();
260
- data.cb(false)
261
- });
262
- }
263
-
264
- //广告内容编辑
265
- if (action === 'editContent') {
266
- XdBus.getParentApi('updatePosterContent')(data.params)
267
- .then(res => {
268
- loading.close();
269
- data.cb(true)
270
- })
271
- .catch(error => {
272
- console.error(error);
273
- loading.close();
274
- data.cb(false)
275
- });
276
- }
277
-
278
- //广告内容删除
279
- if (action === 'deleteContent') {
280
- XdBus.getParentApi('deletePosterContent')(data.params)
281
- .then(res => {
282
- loading.close();
283
- data.cb(true)
284
- })
285
- .catch(error => {
286
- console.error(error);
287
- loading.close();
288
- data.cb(false)
289
- });
290
- }
291
-
292
- //获取广告内容跳转地址类型
293
- if (action === 'jumpPosterContentType') {
294
- XdBus.getParentApi('getOptionsSettingList')({setting_id: "cms_setting"})
295
- .then(res => {
296
- loading.close();
297
- data.cb(res['redirect_type'])
298
- })
299
- .catch(error => {
300
- loading.close();
301
- console.error(error);
302
- });
303
- }
304
-
305
- //发布
306
- if (action === 'publish') {
307
- console.log('publish', data.params)
308
- XdBus.getParentApi('cmsPublishContent')(data.params)
309
- .then(res => {
310
- loading.close();
311
- data.cb(res)
312
- })
313
- .catch(error => {
314
- loading.close();
315
- console.error(error);
316
- });
317
- }
318
-
319
- //获取站内页面地址
320
- if (action === 'router') {
321
- loading.close()
322
- return XdBus.getParentApi('getPagesTree');
323
-
324
- }
325
-
326
- //通知页面进行刷新
327
- if(action === 'update') {
328
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
329
- loading.close()
330
- }
331
- },
332
- },
333
- {
334
- label: '广告位置使用张数:',
335
- ele: 'el-input',
336
- type: 'number',
337
- valueKey: 'posterNum',
338
- groupKey:'content',
339
- value: data.posterNum || 1,
340
- placeholder: '请输入广告位置使用张数',
341
- className: 'input40',
342
- unit: '张',
343
- },
344
-
345
-
346
- {
347
- label: '外边间距:',
348
- ele: 'el-input',
349
- type: 'number',
350
- groupKey:'style',
351
- valueKey: 'outSpacing',
352
- value: outSpacing,
353
- notice: '外边间距设置,单位:像素,默认值:<span style="color:red">20</span> px',
354
- inline: false,
355
- className: 'input60',
356
- },
357
-
358
- {
359
- ele: 'title',
360
- label: '切换标签样式设置',
361
- size: 'small',
362
- groupKey:'style',
363
- },
364
- {
365
- label: '文字背景:',
366
- ele: 'xd-text-and-bgc',
367
- groupKey:'style',
368
- valueKey: 'tabStyle',
369
- value: data['tabStyle'] || null,
370
- setting: {
371
- fontSize: true,
372
- weight:true,
373
- },
374
- handleCustom({action, data}) {
375
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
376
- .then(res => {
377
- data.cb(res.list)
378
- })
379
- .catch(error => {
380
- console.error(error);
381
- data.cb([])
382
- });
383
- },
384
- },
385
- {
386
- label: '当前投影设置:',
387
- ele: 'xd-shadow',
388
- groupKey:'style',
389
- valueKey: 'tabShadow',
390
- value: data['tabShadow'] || '',
391
- setting: {
392
- selected: 'Y',
393
- },
394
- handleCustom({action, data}) {
395
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
396
- .then(res => {
397
- data.cb(res.list)
398
- })
399
- .catch(error => {
400
- console.error(error);
401
- data.cb([])
402
- });
403
- },
404
- },
405
- {
406
- label: '选中投影设置:',
407
- ele: 'xd-shadow',
408
- groupKey:'style',
409
- valueKey: 'tabActShadow',
410
- value: data['tabActShadow'] || '',
411
- setting: {
412
- selected: 'Y',
413
- },
414
- handleCustom({action, data}) {
415
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
416
- .then(res => {
417
- data.cb(res.list)
418
- })
419
- .catch(error => {
420
- console.error(error);
421
- data.cb([])
422
- });
423
- },
424
- },
425
- {
426
- label: '当前边框设置:',
427
- ele: 'xd-border',
428
- groupKey:'style',
429
- valueKey: 'tabBorder',
430
- value: data['tabBorder'] || '',
431
- setting: {
432
- selected:'N'
433
- },
434
- },
435
- {
436
- label: '选中边框设置:',
437
- ele: 'xd-border',
438
- groupKey:'style',
439
- valueKey: 'tabActBorder',
440
- value: data['tabActBorder'] || '',
441
- setting: {
442
- selected:'N'
443
- },
444
- },
445
- {
446
- label: '圆角设置:',
447
- ele: 'xd-site-select-list',
448
- valueKey: 'tabRradius',
449
- value: data['tabRradius'] || '10',
450
- groupKey:'style',
451
- placeholder: '请选择内容圆角设置',
452
- multiple: false,
453
- className: 'input80',
454
- handleCustom({action, data}) {
455
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
456
- .then(res => {
457
- data.cb(res.list)
458
- })
459
- .catch(error => {
460
- console.error(error);
461
- });
462
- },
463
- },
464
- {
465
- ele: 'title',
466
- label: '列表样式设置',
467
- size: 'small',
468
- groupKey:'style',
469
- },
470
- {
471
- label: '填充设置:',
472
- ele: 'xd-margin-padding',
473
- groupKey:'style',
474
- valueKey: 'contMargin',
475
- value: data['contMargin'] || null,
476
- setting: {
477
- type: 'margin',
478
- },
479
- inline: false,
480
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
481
- },
482
10
  {
483
11
  label: '背景颜色:',
484
12
  ele: 'xd-color',
485
- valueKey: 'contBgColor',
486
- value: data['contBgColor'] || '',
487
- placeholder: '请选择背景颜色',
13
+ valueKey: 'bgcolor',
14
+ value: data.bgcolor || '',
15
+ placeholder: '请输入占位框背景颜色',
488
16
  classNmae: 'input80',
489
- groupKey:'style',
490
- },
491
- {
492
- label: '当前投影设置:',
493
- ele: 'xd-shadow',
494
- groupKey:'style',
495
- valueKey: 'contShadow',
496
- value: data['contShadow'] || '',
497
- setting: {
498
- selected: 'N',
499
- },
500
- handleCustom({action, data}) {
501
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
502
- .then(res => {
503
- data.cb(res.list)
504
- })
505
- .catch(error => {
506
- console.error(error);
507
- data.cb([])
508
- });
509
- },
510
- },
511
- {
512
- label: '当前边框设置:',
513
- ele: 'xd-border',
514
- groupKey:'style',
515
- valueKey: 'contBorder',
516
- value: data['contBorder'] || '',
517
- setting: {
518
- selected:'N'
519
- },
520
- },
521
- {
522
- label: '圆角设置:',
523
- ele: 'xd-site-select-list',
524
- valueKey: 'contRradius',
525
- value: data['contRradius'] || '10',
526
- groupKey:'style',
527
- placeholder: '请选择内容圆角设置',
528
- multiple: false,
529
- className: 'input80',
530
- handleCustom({action, data}) {
531
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
532
- .then(res => {
533
- data.cb(res.list)
534
- })
535
- .catch(error => {
536
- console.error(error);
537
- });
538
- },
539
- },
540
-
541
- {
542
- ele: 'title',
543
- label: '图片样式设置',
544
- size: 'small',
545
- groupKey:'style',
546
- },
547
- {
548
- label: '圆角设置:',
549
- ele: 'xd-site-select-list',
550
- valueKey: 'imgRradius',
551
- value: data['imgRradius'] || '10',
552
- groupKey:'style',
553
- placeholder: '请选择内容圆角设置',
554
- multiple: false,
555
- className: 'input80',
556
- handleCustom({action, data}) {
557
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
558
- .then(res => {
559
- data.cb(res.list)
560
- })
561
- .catch(error => {
562
- console.error(error);
563
- });
564
- },
565
- },
566
- {
567
- ele: 'title',
568
- label: '影片选择路径设置',
569
- size: 'small',
570
- groupKey:'advanced',
571
- },
572
- {
573
- label: "组件用途",
574
- ele: "xd-radio",
575
- valueKey: "isList",
576
- value: data['isList'] || "N",
577
- groupKey: 'advanced',
578
- list: [
579
- {label: "用于内页", value: "Y"},
580
- {label: "用于首页", value: "N"}
17
+ rules: [
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
22
+ },
581
23
  ]
582
24
  },
583
25
  {
584
- label: '影片详情访问地址:',
26
+ label: '选中路径:',
585
27
  ele: 'xd-select-pages-path',
586
- valueKey: 'fimeDetailPath',
587
- groupKey:'advanced',
588
- value: data['fimeDetailPath'] || null,
589
- className: 'input100',
28
+ valueKey: 'select-pages-path',
29
+ value: data['select-pages-path'] || null,
590
30
  setting: {
591
31
  router: XdBus.getParentApi('getPagesTree')
592
32
  },
593
33
  },
594
- {
595
- label: '选择影院访问地址:',
596
- ele: 'xd-select-pages-path',
597
- groupKey:'advanced',
598
- valueKey: 'buyPath',
599
- value: data['buyPath'] || null,
600
- className: 'input100',
601
- setting: {
602
- router: XdBus.getParentApi('getPagesTree')
603
- },
604
- },
605
- {
606
- ele: 'title',
607
- label: '影院选择路径设置',
608
- size: 'small',
609
- groupKey:'advanced',
610
- },
611
- {
612
- label: '选择影院排期访问地址:',
613
- ele: 'xd-select-pages-path',
614
- valueKey: 'onlinePath',
615
- groupKey:'advanced',
616
- value: data['onlinePath'] || null,
617
- className: 'input100',
618
- setting: {
619
- router: XdBus.getParentApi('getPagesTree')
620
- },
621
- },
622
- {
623
- label: '选择电子码详情访问地址:',
624
- ele: 'xd-select-pages-path',
625
- groupKey:'advanced',
626
- valueKey: 'codePath',
627
- value: data['codePath'] || null,
628
- className: 'input100',
629
- setting: {
630
- router: XdBus.getParentApi('getPagesTree')
631
- },
34
+ data.bgcolor && {
35
+ label: '高度:',
36
+ ele: 'el-input',
37
+ type: 'number',
38
+ valueKey: 'height',
39
+ value: data.height || 100,
40
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
41
+ className: 'input80',
42
+ rules: [
43
+ {
44
+ required: true,
45
+ message: '请输入占位框高度',
46
+ trigger: 'blur'
47
+ },
48
+ ]
632
49
  },
633
50
  {
634
- label: '选择线下核销访问地址:',
635
- ele: 'xd-select-pages-path',
636
- groupKey:'advanced',
637
- valueKey: 'cashierPath',
638
- value: data['cashierPath'] || null,
639
- className: 'input100',
640
- setting: {
641
- router: XdBus.getParentApi('getPagesTree')
642
- },
51
+ label: '', //label
52
+ ele: 'slot', //package 名称
53
+ slot: 'is_reference',
643
54
  },
644
55
  ].filter(i=>i)
645
56
  },
646
57
  advanced: [],
647
58
  };
648
-