jufubao-base 1.0.73-beta1 → 1.0.73-beta3

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.73-beta1",
3
+ "version": "1.0.73-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -183,7 +183,7 @@ export default {
183
183
  method: "entry",
184
184
  maxTime: 5, //最长轮询2的N次方(秒)
185
185
  date: 2, //时间底数
186
- time: 1, //时间幂指数
186
+ time: 0, //时间幂指数
187
187
  timeer: null,
188
188
  order_num: null,
189
189
  done: false,
@@ -312,7 +312,9 @@ export default {
312
312
  return;
313
313
  }
314
314
  this.order_num = res.tmp_order_number;
315
- this.getResult();
315
+ setTimeout(()=>{
316
+ this.getResult();
317
+ },1000)
316
318
  })
317
319
  .catch((err) => {
318
320
  console.log(err, "err");
@@ -336,7 +338,7 @@ export default {
336
338
  });
337
339
  this.getList();
338
340
  if (this.timeer) {
339
- this.time = 1;
341
+ this.time = 0;
340
342
  clearTimeout(this.timeer);
341
343
  }
342
344
  return;
@@ -353,19 +355,21 @@ export default {
353
355
  this.getList();
354
356
  }
355
357
  if (this.timeer) {
356
- this.time = 1;
358
+ this.time = 0;
357
359
  clearTimeout(this.timeer);
358
360
  }
359
361
  return;
360
362
  }
361
- this.time++;
363
+
362
364
  this.timeer = setTimeout(() => {
363
365
  this.getResult();
364
- if (this.time > 5)
366
+ if (this.time > 5) {
365
367
  this.$xdLog.setARMSInfo(
366
368
  { message: "领取中" },
367
369
  `pay_${res.status_type}`
368
370
  );
371
+ }
372
+ this.time++;
369
373
  }, Math.pow(this.date, this.time > this.maxTime ? this.maxTime : this.time) * 1000);
370
374
  })
371
375
  .catch((err) => {
@@ -366,7 +366,7 @@ export default {
366
366
  order_id: null, //订单号已完成初始化
367
367
  maxTime: 5, //最长轮询2的N次方(秒)
368
368
  date: 2, //时间底数
369
- time: 1, //时间幂指数
369
+ time: 0, //时间幂指数
370
370
  orderListPath: "", //跳转到订单列表
371
371
  index: "", //首页跳转
372
372
  is_show_code: "",
@@ -475,7 +475,9 @@ export default {
475
475
  this.index = this.settings.index;
476
476
  this.packageData = true;
477
477
  styleForm.getInitItem(this, value);
478
- this.getStatus();
478
+ setTimeout(()=>{
479
+ this.getStatus();
480
+ },1000)
479
481
  },
480
482
 
481
483
  getStatus() {
@@ -594,14 +596,15 @@ export default {
594
596
  }
595
597
 
596
598
  if (this.$xdUniHelper.checkVarType(this.info) === "object") {
597
- this.time++;
598
599
  this.timeer = setTimeout(() => {
599
600
  this.intval();
600
- if (this.time > 5)
601
+ if (this.time > 5){
601
602
  this.$xdLog.setARMSInfo(
602
603
  { message: "进行中" },
603
604
  `pay_${this.info.status.status_type}`
604
605
  );
606
+ }
607
+ this.time++;
605
608
  }, Math.pow(this.date, this.time > this.maxTime ? this.maxTime : this.time) * 1000);
606
609
  }
607
610
  },