jufubao-base 1.0.235-beta1 → 1.0.235-beta2

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.235-beta1",
3
+ "version": "1.0.235-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -433,14 +433,15 @@ export default {
433
433
  data: {
434
434
  phone_number: this.phoneNumber,
435
435
  biz_name: "login",
436
+ is_expire_time: 'Y',
436
437
  },
437
438
  }).then((res) => {
438
- this.startCountdown();
439
+ this.startCountdown(res);
439
440
  });
440
441
  },
441
- startCountdown() {
442
+ startCountdown(res={}) {
442
443
  // 设置剩余时间
443
- this.timeRemaining = 120;
444
+ this.timeRemaining = typeof res.expire_time === 'number'? res.expire_time:120;
444
445
  // 设置定时器,每秒执行一次
445
446
  this.countdownTimer = setInterval(() => {
446
447
  // 每秒减少1
@@ -456,7 +457,7 @@ export default {
456
457
  // 清除定时器
457
458
  clearInterval(this.countdownTimer);
458
459
  // 重新设置时间
459
- this.timeRemaining = 120;
460
+ this.timeRemaining = typeof res.expire_time === 'number'? res.expire_time:120;;
460
461
  }
461
462
  }, 1000);
462
463
  },
@@ -541,7 +542,7 @@ export default {
541
542
  time: 2000,
542
543
  isClose: false,
543
544
  });
544
- if (res.code == 400) {
545
+ if (res.code === 400) {
545
546
  this.getList();
546
547
  }
547
548
  if (this.timeer) {