jufubao-base 1.0.105-beta9 → 1.0.106-beta1
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/JfbBaseConDialog/JfbBaseConDialog.vue +1 -0
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +1 -1
- package/src/components/JfbBasePoster/Attr.js +48 -37
- package/src/components/JfbBasePoster/JfbBasePoster.vue +30 -20
- package/src/components/JfbBasePoster/MoreScreen.vue +9 -4
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +1 -1
package/package.json
CHANGED
|
@@ -221,27 +221,27 @@ export default {
|
|
|
221
221
|
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
222
222
|
],
|
|
223
223
|
},
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
224
|
+
{
|
|
225
|
+
ele: 'title',
|
|
226
|
+
label: '广告位轮廓设置',
|
|
227
|
+
size: 'small', //default/mini/small
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
label: '广告位边距设置:',
|
|
231
|
+
ele: 'xd-margin-padding',
|
|
232
|
+
valueKey: 'margin',
|
|
233
|
+
value: params.margin || null,
|
|
234
|
+
disabled: false,
|
|
235
|
+
setting: {
|
|
236
|
+
type: 'margin',
|
|
237
|
+
},
|
|
238
|
+
placeholder: '请设置广告位边距设置',
|
|
239
|
+
inline: false,
|
|
240
|
+
notice: '设置边距充,<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
|
|
241
|
+
|
|
242
242
|
},
|
|
243
243
|
params.poster && params.poster['type']&& params.poster['type'] !== '1' &&{
|
|
244
|
-
label: '
|
|
244
|
+
label: '广告位填充设置:',
|
|
245
245
|
ele: 'xd-margin-padding',
|
|
246
246
|
valueKey: 'bgImagePadding',
|
|
247
247
|
value: params['bgImagePadding'] || null,
|
|
@@ -251,17 +251,17 @@ export default {
|
|
|
251
251
|
},
|
|
252
252
|
placeholder: '请填充设置',
|
|
253
253
|
inline: false,
|
|
254
|
-
notice: '设置内填充,<span style="color: red"
|
|
254
|
+
notice: '设置内填充,<span style="color: red">单位:像素(px)</span>。无背景时候默认值:<span style="color: red">20</span>像素。有背景时候默认值:<span style="color: red">20</span>像素。',
|
|
255
255
|
},
|
|
256
|
-
params.poster && params.poster['type']&&
|
|
257
|
-
label: '
|
|
256
|
+
params.poster && params.poster['type'] &¶ms.number > 1 && {
|
|
257
|
+
label: '广告内容之间间距设置:',
|
|
258
258
|
ele: 'el-input',
|
|
259
259
|
type: 'number',
|
|
260
260
|
valueKey: 'padding',
|
|
261
261
|
value: params.padding || 0,
|
|
262
262
|
className: 'input40',
|
|
263
|
-
placeholder: '
|
|
264
|
-
notice: '
|
|
263
|
+
placeholder: '请广告内容之间间距设置',
|
|
264
|
+
notice: '请广告内容之间间距设置。<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
|
|
265
265
|
inline: false,
|
|
266
266
|
},
|
|
267
267
|
{
|
|
@@ -283,16 +283,28 @@ export default {
|
|
|
283
283
|
},
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
286
|
+
ele: 'title',
|
|
287
|
+
label: '广告位参数配置',
|
|
288
|
+
size: 'small', //default/mini/small
|
|
289
|
+
},
|
|
290
|
+
params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
|
|
291
|
+
label: '广告背景图:',
|
|
292
|
+
ele: 'xd-upload',
|
|
293
|
+
valueKey: 'background',
|
|
294
|
+
value: params.background || {},
|
|
295
|
+
defaultValue: params.background || null,
|
|
296
|
+
slot: true,
|
|
297
|
+
oneWidth: 100,
|
|
298
|
+
oneHeight: 100,
|
|
299
|
+
elinputClassName: 'input40',
|
|
300
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
301
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
302
|
+
styleType: 'one',
|
|
303
|
+
uploadType: 'aliyun',
|
|
304
|
+
size: 5,
|
|
305
|
+
action: 'action',
|
|
306
|
+
sort: true,
|
|
307
|
+
maxlen: 100,
|
|
296
308
|
},
|
|
297
309
|
{
|
|
298
310
|
label: '广告位置使用张数:',
|
|
@@ -360,7 +372,7 @@ export default {
|
|
|
360
372
|
notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
|
|
361
373
|
inline: false,
|
|
362
374
|
},
|
|
363
|
-
params['isCarousel'] === 2 && {
|
|
375
|
+
params.poster['type'] !== '1' && params['isCarousel'] === 2 && {
|
|
364
376
|
label: '广告位内容显示行数:',
|
|
365
377
|
ele: 'xd-radio',
|
|
366
378
|
valueKey: 'rows',
|
|
@@ -370,7 +382,7 @@ export default {
|
|
|
370
382
|
{"label": "两行", "value": 2},
|
|
371
383
|
]
|
|
372
384
|
},
|
|
373
|
-
params['isCarousel']===2&¶ms['rows']===1&&{
|
|
385
|
+
params['isCarousel']===2 && params['rows'] === 1 && {
|
|
374
386
|
label: '是否启用配套背景:',
|
|
375
387
|
ele: 'xd-radio',
|
|
376
388
|
valueKey: 'isSupport',
|
|
@@ -380,7 +392,6 @@ export default {
|
|
|
380
392
|
{"label": "禁用", "value": 'N'},
|
|
381
393
|
]
|
|
382
394
|
},
|
|
383
|
-
|
|
384
395
|
].filter(i=>i)
|
|
385
396
|
},
|
|
386
397
|
advanced: [
|
|
@@ -31,19 +31,21 @@
|
|
|
31
31
|
class="jfb-base-poster__one notCarousel"
|
|
32
32
|
:style="{
|
|
33
33
|
width: width + 'rpx',
|
|
34
|
-
height:
|
|
35
|
-
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
34
|
+
height: outOneHeight + 'rpx',
|
|
36
35
|
}"
|
|
37
36
|
>
|
|
38
|
-
<view
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
<view
|
|
38
|
+
:style="{
|
|
39
|
+
width: width + 'rpx',
|
|
40
|
+
height: height + 'rpx',
|
|
41
|
+
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
42
|
+
marginBottom: padding + 'rpx'
|
|
43
|
+
}"
|
|
44
|
+
@click="handleClick(item)"
|
|
45
|
+
v-for="(item,index) in info"
|
|
46
|
+
:key="index"
|
|
47
|
+
>
|
|
48
|
+
<image :src="item.image_url" mode="aspectFill"></image>
|
|
47
49
|
</view>
|
|
48
50
|
</view>
|
|
49
51
|
<view
|
|
@@ -137,6 +139,7 @@
|
|
|
137
139
|
carouselTime: 5,//轮播图轮播周期
|
|
138
140
|
useNumber: null, //广告使用张数
|
|
139
141
|
height: 0, //广告高度
|
|
142
|
+
outOneHeight:0,//焦点图显示高度
|
|
140
143
|
width: 0, //广告高度
|
|
141
144
|
padding: 0, //广告内容之间间距
|
|
142
145
|
rows: 1, //四分屏起作用
|
|
@@ -177,9 +180,13 @@
|
|
|
177
180
|
},
|
|
178
181
|
computed: {
|
|
179
182
|
getConfig(){
|
|
180
|
-
let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3: 4);
|
|
183
|
+
let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
|
|
181
184
|
let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
|
|
182
|
-
let
|
|
185
|
+
let padding = 0;
|
|
186
|
+
if(this.$xdUniHelper.isEmpty(this.background)) padding = 20;
|
|
187
|
+
let addPadding = ((this.bgImagePadding.right !== null? this.bgImagePadding.right:padding) +
|
|
188
|
+
(this.bgImagePadding.left !== null? this.bgImagePadding.left : padding)) * this.$rpxNum;
|
|
189
|
+
let viewWidth = uni.getSystemInfoSync().safeArea.width - ((this.mS.right || 0) + (this.mS.left || 0)) * this.$rpxNum - addPadding - spacing;
|
|
183
190
|
if(this.$configProject.isPreview) viewWidth -= 2;
|
|
184
191
|
let width = Math.floor(viewWidth / cell);
|
|
185
192
|
let height = this.height * width / this.width;
|
|
@@ -288,7 +295,7 @@
|
|
|
288
295
|
} catch (error) {
|
|
289
296
|
console.log(error,'amamamam');
|
|
290
297
|
}
|
|
291
|
-
|
|
298
|
+
|
|
292
299
|
},
|
|
293
300
|
},
|
|
294
301
|
watch: {
|
|
@@ -381,7 +388,6 @@
|
|
|
381
388
|
this.current = e.detail.current;
|
|
382
389
|
}
|
|
383
390
|
},
|
|
384
|
-
|
|
385
391
|
handleClick(item) {
|
|
386
392
|
//内部链接跳转地址
|
|
387
393
|
if (item.redirect_type === 'INN') {
|
|
@@ -486,6 +492,7 @@
|
|
|
486
492
|
if(this.poster.size) {
|
|
487
493
|
this.width = this.poster.size.width;
|
|
488
494
|
this.height = this.poster.size.height;
|
|
495
|
+
this.outOneHeight = this.height * Number(this.useNumber) + (Number(this.padding) * (Number(this.useNumber) - 1));
|
|
489
496
|
}
|
|
490
497
|
},
|
|
491
498
|
|
|
@@ -567,16 +574,19 @@
|
|
|
567
574
|
display: flex;
|
|
568
575
|
justify-content: center;
|
|
569
576
|
align-items: center;
|
|
570
|
-
|
|
571
|
-
|
|
577
|
+
flex-flow: wrap;
|
|
572
578
|
|
|
573
579
|
& > view {
|
|
574
|
-
width: 100%;
|
|
575
|
-
height: 100%;
|
|
576
580
|
box-sizing: border-box;
|
|
581
|
+
overflow: hidden;
|
|
577
582
|
|
|
578
|
-
|
|
583
|
+
&:last-child {
|
|
584
|
+
margin-bottom: 0!important;
|
|
585
|
+
}
|
|
579
586
|
|
|
587
|
+
& > image {
|
|
588
|
+
width: 100%;
|
|
589
|
+
height: 100%;
|
|
580
590
|
}
|
|
581
591
|
}
|
|
582
592
|
}
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
<template slot-scope="{ item, index}">
|
|
49
49
|
<view
|
|
50
50
|
class="sreen__box-list"
|
|
51
|
+
:class="{s3:config.cell === 3,s4:config.cell === 4}"
|
|
51
52
|
:style="{
|
|
52
53
|
height: getHeight + 'px'
|
|
53
54
|
}"
|
|
@@ -256,6 +257,14 @@
|
|
|
256
257
|
flex-wrap: wrap;
|
|
257
258
|
overflow: hidden;
|
|
258
259
|
|
|
260
|
+
&.s3 > view:nth-child(3n) {
|
|
261
|
+
margin-right: 0 !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.s4 > view:nth-child(4n) {
|
|
265
|
+
margin-right: 0 !important;
|
|
266
|
+
}
|
|
267
|
+
|
|
259
268
|
& view {
|
|
260
269
|
display: flex;
|
|
261
270
|
justify-content: center;
|
|
@@ -264,10 +273,6 @@
|
|
|
264
273
|
box-sizing: border-box;
|
|
265
274
|
overflow: hidden;
|
|
266
275
|
|
|
267
|
-
&:nth-child(4n) {
|
|
268
|
-
margin-right: 0 !important;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
276
|
& > image {
|
|
272
277
|
|
|
273
278
|
}
|
|
@@ -496,7 +496,7 @@ export default {
|
|
|
496
496
|
})
|
|
497
497
|
.then((res) => {
|
|
498
498
|
if(res.status.status_type === 'success') {
|
|
499
|
-
jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {
|
|
499
|
+
jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {order_number: this.order_id});
|
|
500
500
|
}
|
|
501
501
|
this.handleOrderResolve(res);
|
|
502
502
|
})
|