jufubao-base 1.0.134-beta6 → 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
|
@@ -66,9 +66,9 @@ export default {
|
|
|
66
66
|
{
|
|
67
67
|
label: '是否隐藏弹框(仅预览模式生效):',
|
|
68
68
|
ele: 'xd-radio',
|
|
69
|
-
valueKey: '
|
|
69
|
+
valueKey: 'is_hide_dailog',
|
|
70
70
|
groupKey:'content',
|
|
71
|
-
value: data
|
|
71
|
+
value: data['is_hide_dailog'] || 'N',
|
|
72
72
|
placeholder: '请选择是否隐藏弹框',
|
|
73
73
|
className: 'input60',
|
|
74
74
|
list: [
|
|
@@ -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;
|
|
@@ -137,6 +147,7 @@ export default {
|
|
|
137
147
|
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
148
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
149
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
150
|
+
this.is_preview_hide_dailog = getContainerPropsValue(value, "content.is_hide_dailog", 'N') === 'Y';
|
|
140
151
|
},
|
|
141
152
|
|
|
142
153
|
//领取优惠券
|
|
@@ -171,6 +182,7 @@ export default {
|
|
|
171
182
|
},
|
|
172
183
|
|
|
173
184
|
getResult() {
|
|
185
|
+
debugger
|
|
174
186
|
jfbRootExec("getCouponResult", {
|
|
175
187
|
vm: this,
|
|
176
188
|
data: {
|
|
@@ -269,6 +281,8 @@ export default {
|
|
|
269
281
|
this.couponOther = other;
|
|
270
282
|
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
271
283
|
if (this.isPreview) {
|
|
284
|
+
debugger
|
|
285
|
+
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
272
286
|
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
273
287
|
}else this.isShow = true;
|
|
274
288
|
}else{
|
|
@@ -295,7 +309,7 @@ export default {
|
|
|
295
309
|
|
|
296
310
|
//预览模式
|
|
297
311
|
if(this.isPreview) {
|
|
298
|
-
this.getDialogList();
|
|
312
|
+
if(!this.is_preview_hide_dailog) this.getDialogList();
|
|
299
313
|
return;
|
|
300
314
|
}
|
|
301
315
|
|
|
@@ -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,6 +264,19 @@ export default {
|
|
|
265
264
|
inline:false,
|
|
266
265
|
notice:'预览模式点击使用“<span style="color:red">弹窗显示</span>”会重新触发页面刷新,可点击弹出遮罩层进行关闭功能'
|
|
267
266
|
},
|
|
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
|
+
},
|
|
268
280
|
{
|
|
269
281
|
ele: 'title',
|
|
270
282
|
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()
|