@smart100/spu-web-plugin 0.0.17 → 0.0.18

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.
@@ -1,4 +1,4 @@
1
- var version = "0.0.17";
1
+ var version = "0.0.18";
2
2
 
3
3
  function _iterableToArrayLimit(r, l) {
4
4
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -14427,7 +14427,7 @@ var apaasSpuTrackSendLog = function apaasSpuTrackSendLog(data) {
14427
14427
  apaasSpuTrackSendLog(data, true);
14428
14428
  }, 3000);
14429
14429
  } else {
14430
- console.error('apaasTrack 不存在,导出日志发送失败。');
14430
+ console.error('window.apaasSpuTrack 不存在,导出日志发送失败。');
14431
14431
  }
14432
14432
  }
14433
14433
  };
@@ -50785,12 +50785,12 @@ var SpuExpandexp = /*#__PURE__*/function (_HTMLElement) {
50785
50785
  } else {
50786
50786
  _this8.updateStep('running');
50787
50787
  if (currentData) {
50788
- _this8.data.percentage = +currentData.finishRate;
50789
- // if (this.data.expandStatus = '1') {
50790
- // this.data.percentage = +currentData.finishRate
50791
- // } else {
50792
- // this.data.percentage = +currentData.finishRate * 0.5
50793
- // }
50788
+ // this.data.percentage = +currentData.finishRate
50789
+ if (_this8.data.expandStatus === '1') {
50790
+ _this8.data.percentage = +currentData.finishRate;
50791
+ } else {
50792
+ _this8.data.percentage = +currentData.finishRate * 0.5;
50793
+ }
50794
50794
  }
50795
50795
  }
50796
50796
  })["catch"](function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart100/spu-web-plugin",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "rollup -c -w",
@@ -183,7 +183,7 @@ const apaasSpuTrackSendLog = (data: any, end: boolean = false) => {
183
183
  apaasSpuTrackSendLog(data, true)
184
184
  }, 3000)
185
185
  } else {
186
- console.error('apaasTrack 不存在,导出日志发送失败。')
186
+ console.error('window.apaasSpuTrack 不存在,导出日志发送失败。')
187
187
  }
188
188
  }
189
189
  }
@@ -655,12 +655,12 @@ export default class SpuExpandexp extends HTMLElement {
655
655
  } else {
656
656
  this.updateStep('running')
657
657
  if (currentData) {
658
- this.data.percentage = +currentData.finishRate
659
- // if (this.data.expandStatus = '1') {
660
- // this.data.percentage = +currentData.finishRate
661
- // } else {
662
- // this.data.percentage = +currentData.finishRate * 0.5
663
- // }
658
+ // this.data.percentage = +currentData.finishRate
659
+ if (this.data.expandStatus === '1') {
660
+ this.data.percentage = +currentData.finishRate
661
+ } else {
662
+ this.data.percentage = +currentData.finishRate * 0.5
663
+ }
664
664
  }
665
665
  }
666
666
  })