jufubao-base 1.0.134-beta5 → 1.0.134-beta7
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
CHANGED
|
@@ -11,20 +11,6 @@ export default {
|
|
|
11
11
|
//let isHide = typeof data['isHide'] === 'boolean' ? data['isHide']:false;
|
|
12
12
|
|
|
13
13
|
return [
|
|
14
|
-
// {
|
|
15
|
-
// label: '是否隐藏弹框(仅预览模式生效):',
|
|
16
|
-
// ele: 'xd-radio',
|
|
17
|
-
// valueKey: 'isHide',
|
|
18
|
-
// groupKey:'content',
|
|
19
|
-
// value: isHide,
|
|
20
|
-
// placeholder: '请选择是否隐藏弹框',
|
|
21
|
-
// multiple: false,
|
|
22
|
-
// className: 'input60',
|
|
23
|
-
// list: [
|
|
24
|
-
// { label: '是', value: true },
|
|
25
|
-
// { label: '否', value: false },
|
|
26
|
-
// ]
|
|
27
|
-
// },
|
|
28
14
|
{
|
|
29
15
|
label: '选取优惠券列表路径:',
|
|
30
16
|
ele: 'xd-select-pages-path',
|
|
@@ -43,7 +29,7 @@ export default {
|
|
|
43
29
|
ele: 'xd-radio',
|
|
44
30
|
valueKey: 'type',
|
|
45
31
|
groupKey:'content',
|
|
46
|
-
value: data['type']||1,
|
|
32
|
+
value: data['type'] || 1,
|
|
47
33
|
placeholder: '请选择活动提示方式',
|
|
48
34
|
multiple: false,
|
|
49
35
|
className: 'input60',
|
|
@@ -77,6 +63,19 @@ export default {
|
|
|
77
63
|
className: 'input60',
|
|
78
64
|
unit: '小时'
|
|
79
65
|
},
|
|
66
|
+
{
|
|
67
|
+
label: '是否隐藏弹框(仅预览模式生效):',
|
|
68
|
+
ele: 'xd-radio',
|
|
69
|
+
valueKey: 'is_hide_dailog',
|
|
70
|
+
groupKey:'content',
|
|
71
|
+
value: data['is_hide_dailog'] || 'N',
|
|
72
|
+
placeholder: '请选择是否隐藏弹框',
|
|
73
|
+
className: 'input60',
|
|
74
|
+
list: [
|
|
75
|
+
{ label: '是', value: 'Y' },
|
|
76
|
+
{ label: '否', value: 'N' },
|
|
77
|
+
]
|
|
78
|
+
},
|
|
80
79
|
].filter(i=>i)
|
|
81
80
|
},
|
|
82
81
|
advanced: [],
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
currentBtnImage: "",
|
|
99
99
|
currentIndex: 0,
|
|
100
100
|
isShow: false,
|
|
101
|
-
type:
|
|
101
|
+
type: 1,
|
|
102
102
|
isPreview: false, //是否预览
|
|
103
103
|
activity_id: "",
|
|
104
104
|
backgroundColor: "",
|
|
@@ -111,6 +111,9 @@ export default {
|
|
|
111
111
|
timer: null,
|
|
112
112
|
timeNum: 0,
|
|
113
113
|
|
|
114
|
+
//预览是否显示弹窗
|
|
115
|
+
is_preview_hide_dailog: false,
|
|
116
|
+
|
|
114
117
|
};
|
|
115
118
|
},
|
|
116
119
|
computed: {
|
|
@@ -121,6 +124,13 @@ export default {
|
|
|
121
124
|
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
122
125
|
if (this.$configProject['isPreview']) this.init(value)
|
|
123
126
|
},
|
|
127
|
+
is_preview_hide_dailog(value){
|
|
128
|
+
if(value === true) this.isShow = false;
|
|
129
|
+
else {
|
|
130
|
+
storage.remove(this.containerId);
|
|
131
|
+
this.onJfbLoad();
|
|
132
|
+
}
|
|
133
|
+
},
|
|
124
134
|
},
|
|
125
135
|
created() {
|
|
126
136
|
this.isPreview = this.$configProject.isPreview;
|
|
@@ -136,11 +146,8 @@ export default {
|
|
|
136
146
|
this.list_url = getContainerPropsValue(value, "content.list_url", {value: "",}).value;
|
|
137
147
|
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
148
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
|
-
this.isHide = false;
|
|
140
149
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
141
|
-
|
|
142
|
-
this.isShow = !this.isHide;
|
|
143
|
-
}
|
|
150
|
+
this.is_preview_hide_dailog = getContainerPropsValue(value, "content.is_hide_dailog", 'N') === 'Y';
|
|
144
151
|
},
|
|
145
152
|
|
|
146
153
|
//领取优惠券
|
|
@@ -175,6 +182,7 @@ export default {
|
|
|
175
182
|
},
|
|
176
183
|
|
|
177
184
|
getResult() {
|
|
185
|
+
debugger
|
|
178
186
|
jfbRootExec("getCouponResult", {
|
|
179
187
|
vm: this,
|
|
180
188
|
data: {
|
|
@@ -272,7 +280,11 @@ export default {
|
|
|
272
280
|
this.couponList = list;
|
|
273
281
|
this.couponOther = other;
|
|
274
282
|
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
275
|
-
this.
|
|
283
|
+
if (this.isPreview) {
|
|
284
|
+
debugger
|
|
285
|
+
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
286
|
+
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
287
|
+
}else this.isShow = true;
|
|
276
288
|
}else{
|
|
277
289
|
this.handleCardBindClose();
|
|
278
290
|
}
|
|
@@ -297,7 +309,7 @@ export default {
|
|
|
297
309
|
|
|
298
310
|
//预览模式
|
|
299
311
|
if(this.isPreview) {
|
|
300
|
-
this.getDialogList();
|
|
312
|
+
if(!this.is_preview_hide_dailog) this.getDialogList();
|
|
301
313
|
return;
|
|
302
314
|
}
|
|
303
315
|
|
|
@@ -348,9 +360,8 @@ export default {
|
|
|
348
360
|
},
|
|
349
361
|
|
|
350
362
|
handleClose() {
|
|
351
|
-
debugger
|
|
352
363
|
//切换下一张,没有下一张,关闭
|
|
353
|
-
if (this.currentIndex
|
|
364
|
+
if (this.currentIndex === (this.list.length - 1) || this.type === 2) {
|
|
354
365
|
this.isShow = false;
|
|
355
366
|
return;
|
|
356
367
|
}
|
|
@@ -365,8 +376,7 @@ export default {
|
|
|
365
376
|
},
|
|
366
377
|
|
|
367
378
|
handleChange(type) {
|
|
368
|
-
this.currentIndex =
|
|
369
|
-
type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
379
|
+
this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
370
380
|
//不小于0,不大于数组长度
|
|
371
381
|
this.currentIndex = Math.max(
|
|
372
382
|
0,
|
|
@@ -386,7 +396,6 @@ export default {
|
|
|
386
396
|
this.dispatchData = data;
|
|
387
397
|
this.getDialogList();
|
|
388
398
|
}
|
|
389
|
-
console.log('onJfbCustomEvent',action, data);
|
|
390
399
|
}
|
|
391
400
|
},
|
|
392
401
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
style: [],
|
|
9
|
-
content: (data) => {
|
|
9
|
+
content: (data={}) => {
|
|
10
10
|
if (!data.style) data.style = '1';
|
|
11
11
|
const checkNotice = ()=>{
|
|
12
12
|
let temp = false;
|
|
@@ -21,7 +21,6 @@ export default {
|
|
|
21
21
|
const checkScroll = ()=>{
|
|
22
22
|
return data.style !== '2'
|
|
23
23
|
}
|
|
24
|
-
|
|
25
24
|
return [
|
|
26
25
|
{
|
|
27
26
|
label: '内容配置:',
|
|
@@ -265,7 +264,19 @@ export default {
|
|
|
265
264
|
inline:false,
|
|
266
265
|
notice:'预览模式点击使用“<span style="color:red">弹窗显示</span>”会重新触发页面刷新,可点击弹出遮罩层进行关闭功能'
|
|
267
266
|
},
|
|
268
|
-
|
|
267
|
+
{
|
|
268
|
+
label: '是否隐藏弹框(仅预览模式生效):',
|
|
269
|
+
ele: 'xd-radio',
|
|
270
|
+
valueKey: 'is_hide_dailog',
|
|
271
|
+
groupKey:'content',
|
|
272
|
+
value: data['is_hide_dailog'] || 'N',
|
|
273
|
+
placeholder: '请选择是否隐藏弹框',
|
|
274
|
+
className: 'input60',
|
|
275
|
+
list: [
|
|
276
|
+
{ label: '是', value: 'Y' },
|
|
277
|
+
{ label: '否', value: 'N' },
|
|
278
|
+
]
|
|
279
|
+
},
|
|
269
280
|
{
|
|
270
281
|
ele: 'title',
|
|
271
282
|
label: '静态显示',
|
|
@@ -418,7 +429,6 @@ export default {
|
|
|
418
429
|
inline: false,
|
|
419
430
|
notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
|
|
420
431
|
},
|
|
421
|
-
|
|
422
432
|
{
|
|
423
433
|
ele: 'title',
|
|
424
434
|
label: '弹窗显示',
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
scrollMargin:{},
|
|
212
212
|
|
|
213
213
|
backgroundColor: '',
|
|
214
|
+
is_hide_dailog:'N',
|
|
214
215
|
}
|
|
215
216
|
},
|
|
216
217
|
watch: {
|
|
@@ -278,7 +279,14 @@
|
|
|
278
279
|
|
|
279
280
|
getScrollType(){
|
|
280
281
|
return this.num > 1
|
|
281
|
-
}
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
is_hide_dailog(value){
|
|
285
|
+
if(value === 'N') {
|
|
286
|
+
storage.remove(this.containerId);
|
|
287
|
+
this.onJfbLoad();
|
|
288
|
+
}
|
|
289
|
+
},
|
|
282
290
|
|
|
283
291
|
},
|
|
284
292
|
created() {
|
|
@@ -319,6 +327,7 @@
|
|
|
319
327
|
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
|
|
320
328
|
}
|
|
321
329
|
else this.num = 1;
|
|
330
|
+
this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
|
|
322
331
|
},
|
|
323
332
|
|
|
324
333
|
handlePop(){
|
|
@@ -382,11 +391,12 @@
|
|
|
382
391
|
clearTimeout(this.timer);
|
|
383
392
|
this.timer = null
|
|
384
393
|
}
|
|
394
|
+
|
|
385
395
|
this.timer = setTimeout(()=>{
|
|
386
396
|
//弹窗模式
|
|
387
397
|
if(this.style === '3') {
|
|
388
398
|
if(this.isPreview) {
|
|
389
|
-
this.getContent();
|
|
399
|
+
if(this.is_hide_dailog === 'N') this.getContent();
|
|
390
400
|
}
|
|
391
401
|
else {
|
|
392
402
|
if(!storage.get(this.containerId)) this.getContent()
|