jufubao-base 1.0.105-beta6 → 1.0.105-beta9

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.105-beta6",
3
+ "version": "1.0.105-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -39,7 +39,7 @@ export default {
39
39
  placeholder: "请选择触发事件",
40
40
  className: 'input80',
41
41
  list: [
42
- // { label: "首页发放", value: "homed" },
42
+ { label: "首页发放", value: "homed" },
43
43
  { label: "支付成功", value: "paid" },
44
44
  { label: "绑卡成功", value: "card_binded" },
45
45
  ]
@@ -111,7 +111,7 @@ export default {
111
111
  couponOther: {},
112
112
  order_num: null,
113
113
  timer: null,
114
- time: 0,
114
+ timeNum: 0,
115
115
 
116
116
  };
117
117
  },
@@ -134,7 +134,7 @@ export default {
134
134
  this.list_url = getContainerPropsValue(value, "content.list_url", {
135
135
  value: "",
136
136
  }).value;
137
- this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "");
137
+ this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
138
138
  this.type = getContainerPropsValue(value, "content.type", 1);
139
139
  this.isHide = getContainerPropsValue(value, "content.isHide", false);
140
140
  this.time = Number(getContainerPropsValue(value, "content.time", 3));
@@ -144,6 +144,7 @@ export default {
144
144
  },
145
145
  //领取优惠券
146
146
  handleGetCoupon(item){
147
+ this.$xdShowLoading({});
147
148
  jfbRootExec("getAllCoupon", {
148
149
  vm: this,
149
150
  data: {
@@ -190,7 +191,7 @@ export default {
190
191
  });
191
192
  this.getDialogList();
192
193
  if (this.timer) {
193
- this.time = 0;
194
+ this.timeNum = 0;
194
195
  clearTimeout(this.timer);
195
196
  }
196
197
  return;
@@ -207,7 +208,7 @@ export default {
207
208
  this.getDialogList();
208
209
  }
209
210
  if (this.timer) {
210
- this.time = 0;
211
+ this.timeNum = 0;
211
212
  clearTimeout(this.timer);
212
213
  }
213
214
  return;
@@ -215,14 +216,14 @@ export default {
215
216
 
216
217
  this.timer = setTimeout(() => {
217
218
  this.getResult();
218
- if (this.time > 5) {
219
+ if (this.timeNum > 5) {
219
220
  this.$xdLog.setARMSInfo(
220
221
  { message: "领取中" },
221
222
  `pay_${res.status_type}`
222
223
  );
223
224
  }
224
- this.time++;
225
- }, Math.pow(2, this.time > 5 ? 5 : this.time) * 1000);
225
+ this.timeNum++;
226
+ }, Math.pow(2, this.timeNum > 5 ? 5 : this.timeNum) * 1000);
226
227
  })
227
228
  .catch((err) => {
228
229
  this.$xdHideLoading();