jufubao-base 1.0.63-beta203 → 1.0.63-beta205
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/package.json +1 -1
- package/src/components/JfbBasePosterType/Attr.js +1 -1
- package/src/components/JfbBaseVideo/Attr.js +24 -111
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +71 -377
- package/src/components/JfbBaseVideo/Mock.js +1 -3
- package/src/components/JfbBaseVideo/XdVideo.vue +208 -0
- package/src/components/JfbBaseVideo/MoreScreen.vue +0 -281
- package/src/components/JfbBaseVideo/XdSwiperDot.vue +0 -234
package/package.json
CHANGED
|
@@ -8,22 +8,21 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
|
|
|
8
8
|
export default {
|
|
9
9
|
style:[],
|
|
10
10
|
content:(params)=>{
|
|
11
|
-
if(!params['isCarousel']) params['isCarousel'] = 1;
|
|
12
11
|
return [
|
|
13
12
|
{
|
|
14
|
-
label: '
|
|
13
|
+
label: '视频位置配置:', //label
|
|
15
14
|
ele: 'xd-site-poster', //package 名称
|
|
16
|
-
valueKey: '
|
|
15
|
+
valueKey: 'video', //form[valueKey]
|
|
17
16
|
className: 'input80',
|
|
18
|
-
value: params.
|
|
17
|
+
value: params.video || {},
|
|
19
18
|
setting: {
|
|
20
19
|
count: 1,
|
|
21
|
-
scene: {label: '
|
|
20
|
+
scene: {label: '视频', value: 'video'}
|
|
22
21
|
},
|
|
23
22
|
handleCustom({action, data}) {
|
|
24
23
|
//设置场景参数
|
|
25
24
|
if(data) {
|
|
26
|
-
data.params = Object.assign({}, {scene: '
|
|
25
|
+
data.params = Object.assign({}, {scene: 'video'}, data.params || {})
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
//获取显示内容
|
|
@@ -216,30 +215,34 @@ export default {
|
|
|
216
215
|
inline: false,
|
|
217
216
|
notice: '',
|
|
218
217
|
rules: [
|
|
219
|
-
{required: true, message: '
|
|
218
|
+
{required: true, message: '请选择视频位置', trigger: 'change'},
|
|
220
219
|
],
|
|
221
220
|
},
|
|
222
|
-
|
|
223
|
-
label: '
|
|
224
|
-
ele: '
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
{
|
|
222
|
+
label: '视频位边距设置:',
|
|
223
|
+
ele: 'xd-margin-padding',
|
|
224
|
+
valueKey: 'margin',
|
|
225
|
+
value: params.margin || null,
|
|
226
|
+
disabled: false,
|
|
227
|
+
setting: {
|
|
228
|
+
type: 'margin',
|
|
229
|
+
},
|
|
230
|
+
placeholder: '请设置视频位边距设置',
|
|
231
|
+
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
label: '
|
|
234
|
+
label: '内容圆角设置:',
|
|
235
235
|
ele: 'xd-site-select-list',
|
|
236
236
|
valueKey: 'radius',
|
|
237
|
-
value: params['radius'] || '
|
|
238
|
-
placeholder: '
|
|
237
|
+
value: params['radius'] || '0',
|
|
238
|
+
placeholder: '请选择内容圆角设置',
|
|
239
239
|
multiple: false,
|
|
240
240
|
className: 'input80',
|
|
241
241
|
handleCustom({action, data}) {
|
|
242
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
242
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
243
|
+
setting_id: 'edtix_style_radius',
|
|
244
|
+
key: Date.now()
|
|
245
|
+
})
|
|
243
246
|
.then(res => {
|
|
244
247
|
data.cb(res.list)
|
|
245
248
|
})
|
|
@@ -248,96 +251,6 @@ export default {
|
|
|
248
251
|
});
|
|
249
252
|
},
|
|
250
253
|
},
|
|
251
|
-
{
|
|
252
|
-
label: '广告位边距设置:',
|
|
253
|
-
ele: 'xd-margin-padding',
|
|
254
|
-
valueKey: 'margin',
|
|
255
|
-
value: params.margin || null,
|
|
256
|
-
disabled: false,
|
|
257
|
-
setting: {
|
|
258
|
-
type: 'margin',
|
|
259
|
-
},
|
|
260
|
-
placeholder: '请设置广告位边距设置',
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
label: '广告位置使用张数:',
|
|
265
|
-
ele: 'el-input',
|
|
266
|
-
type: 'number',
|
|
267
|
-
valueKey: 'number',
|
|
268
|
-
value: params.number || 1,
|
|
269
|
-
placeholder: '请输入广告位置使用张数',
|
|
270
|
-
className: 'input40',
|
|
271
|
-
unit: '张',
|
|
272
|
-
rules: [
|
|
273
|
-
{
|
|
274
|
-
required: true,
|
|
275
|
-
message: '请输入广告位置使用张数',
|
|
276
|
-
trigger: 'blur'
|
|
277
|
-
},
|
|
278
|
-
]
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
label: '广告位显示方式:',
|
|
282
|
-
ele: 'xd-radio',
|
|
283
|
-
valueKey: 'isCarousel',
|
|
284
|
-
value: params['isCarousel'] || 1,
|
|
285
|
-
rules: [
|
|
286
|
-
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
287
|
-
],
|
|
288
|
-
list: [
|
|
289
|
-
{"label": "焦点图显示", "value": 1},
|
|
290
|
-
{"label": "轮播图显示", "value": 2},
|
|
291
|
-
]
|
|
292
|
-
},
|
|
293
|
-
params['isCarousel'] === 2 && {
|
|
294
|
-
label: '广告位轮播周期:',
|
|
295
|
-
ele: 'el-input',
|
|
296
|
-
type: 'number',
|
|
297
|
-
isKey: true,
|
|
298
|
-
valueKey: 'carouselTime',
|
|
299
|
-
value: params.carouselTime || 5,
|
|
300
|
-
placeholder: '请输入广告位轮播周期,单位秒',
|
|
301
|
-
className: 'input40',
|
|
302
|
-
unit: '秒',
|
|
303
|
-
rules: [
|
|
304
|
-
{
|
|
305
|
-
required: true,
|
|
306
|
-
message: '请输入广告位置高度',
|
|
307
|
-
trigger: 'blur'
|
|
308
|
-
},
|
|
309
|
-
]
|
|
310
|
-
},
|
|
311
|
-
params['isCarousel'] === 2 && {
|
|
312
|
-
label: '广告显示dot类型:', //label
|
|
313
|
-
ele: 'xd-select-list', //package 名称
|
|
314
|
-
valueKey: 'dot_type', //form[valueKey]
|
|
315
|
-
value: params['dot_type'] || 'dot', //v-model
|
|
316
|
-
placeholder: '请选择广告显示dot类型',
|
|
317
|
-
multiple: false,
|
|
318
|
-
className: 'input80',
|
|
319
|
-
list:[
|
|
320
|
-
{label: '显示圆点', value: 'dot'},
|
|
321
|
-
{label: '显示长方形', value: 'default'},
|
|
322
|
-
{label: '显示圆点+长条', value: 'round'},
|
|
323
|
-
{label: '显示索引+标题', value: 'nav'},
|
|
324
|
-
{label: '显示索引', value: 'indexes'},
|
|
325
|
-
],
|
|
326
|
-
notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
|
|
327
|
-
inline: false,
|
|
328
|
-
},
|
|
329
|
-
params['isCarousel'] === 2 && {
|
|
330
|
-
label: '广告位内容显示行数:',
|
|
331
|
-
ele: 'xd-radio',
|
|
332
|
-
valueKey: 'rows',
|
|
333
|
-
value: params.rows || 1,
|
|
334
|
-
list: [
|
|
335
|
-
{"label": "一行", "value": 1},
|
|
336
|
-
{"label": "两行", "value": 2},
|
|
337
|
-
]
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
|
|
341
254
|
].filter(i=>i)
|
|
342
255
|
},
|
|
343
256
|
advanced: [
|