jufubao-base 1.0.134-beta4 → 1.0.134-beta6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.134-beta4",
3
+ "version": "1.0.134-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -153,9 +153,6 @@
153
153
  })
154
154
  return;
155
155
  }
156
- this.handleBindSuccess();
157
- return;
158
-
159
156
  jfbRootExec("pwdCardBind", {
160
157
  vm: this,
161
158
  data: this.cardForm
@@ -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_show_dailog',
70
+ groupKey:'content',
71
+ value: data.is_show_dailog || '',
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: "",
@@ -136,11 +136,7 @@ export default {
136
136
  this.list_url = getContainerPropsValue(value, "content.list_url", {value: "",}).value;
137
137
  this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
138
138
  this.type = getContainerPropsValue(value, "content.type", 1);
139
- this.isHide = false;
140
139
  this.time = Number(getContainerPropsValue(value, "content.time", 3));
141
- if (this.isPreview) {
142
- this.isShow = !this.isHide;
143
- }
144
140
  },
145
141
 
146
142
  //领取优惠券
@@ -272,7 +268,9 @@ export default {
272
268
  this.couponList = list;
273
269
  this.couponOther = other;
274
270
  if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
275
- this.isShow = true;
271
+ if (this.isPreview) {
272
+ this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
273
+ }else this.isShow = true;
276
274
  }else{
277
275
  this.handleCardBindClose();
278
276
  }
@@ -348,9 +346,8 @@ export default {
348
346
  },
349
347
 
350
348
  handleClose() {
351
- debugger
352
349
  //切换下一张,没有下一张,关闭
353
- if (this.currentIndex == this.list.length - 1 || this.type == 2) {
350
+ if (this.currentIndex === (this.list.length - 1) || this.type === 2) {
354
351
  this.isShow = false;
355
352
  return;
356
353
  }
@@ -365,8 +362,7 @@ export default {
365
362
  },
366
363
 
367
364
  handleChange(type) {
368
- this.currentIndex =
369
- type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
365
+ this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
370
366
  //不小于0,不大于数组长度
371
367
  this.currentIndex = Math.max(
372
368
  0,
@@ -386,7 +382,6 @@ export default {
386
382
  this.dispatchData = data;
387
383
  this.getDialogList();
388
384
  }
389
- console.log('onJfbCustomEvent',action, data);
390
385
  }
391
386
  },
392
387
  };
@@ -265,7 +265,6 @@ export default {
265
265
  inline:false,
266
266
  notice:'预览模式点击使用“<span style="color:red">弹窗显示</span>”会重新触发页面刷新,可点击弹出遮罩层进行关闭功能'
267
267
  },
268
-
269
268
  {
270
269
  ele: 'title',
271
270
  label: '静态显示',
@@ -418,7 +417,6 @@ export default {
418
417
  inline: false,
419
418
  notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
420
419
  },
421
-
422
420
  {
423
421
  ele: 'title',
424
422
  label: '弹窗显示',