ezuikit-js 0.4.9 → 0.5.0

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.
Files changed (2) hide show
  1. package/ezuikit.js +32 -5
  2. package/package.json +1 -1
package/ezuikit.js CHANGED
@@ -397,6 +397,7 @@ class Status {
397
397
  loadingContainerDOM.appendChild(loadingItemContainer);
398
398
  }
399
399
  loadingSetText(opt) {
400
+ this.loadingClear();
400
401
  if (document.getElementById(`${this.id}-loading-item-0`)) {
401
402
  var textElement = document.getElementById(`${this.id}-loading-item-0`).childNodes[1];
402
403
  if(!textElement) {
@@ -24249,7 +24250,7 @@ TimeLine.prototype.setDateLine = function (news, defaultIndex) {
24249
24250
 
24250
24251
  this.primaryOffsetH();
24251
24252
  // 将当前播放时间片段传给父组件
24252
- this.getPalyParam({ current: news[defaultIndex].st });
24253
+ //this.getPalyParam({ current: news[defaultIndex].st });
24253
24254
  } else {
24254
24255
  this.setState({
24255
24256
  availTimeLine: []
@@ -24840,9 +24841,7 @@ class MobileRec {
24840
24841
  begin: date,
24841
24842
  type: this.type
24842
24843
  }).then(()=> {
24843
- setTimeout(()=>{
24844
- this.syncTimeLine();
24845
- }, 4000);
24844
+ this.syncTimeLine();
24846
24845
  });
24847
24846
  };
24848
24847
  const ontouchstart = () => {
@@ -24892,7 +24891,16 @@ class MobileRec {
24892
24891
  this.fetchDeviceRec();
24893
24892
  this.jSPlugin.changePlayUrl({
24894
24893
  type: this.type,
24895
- begin: `${new Date(this.date).Format('yyyMMdd000000')}`
24894
+ begin: `${new Date(this.date).Format('yyyyMMdd')}000000`
24895
+ })
24896
+ .then(()=>{
24897
+ console.log("切换类型成功");
24898
+ this.syncTimeLine();
24899
+ },(err)=>{
24900
+ console.log("err",err);
24901
+ })
24902
+ .catch(err=>{
24903
+ console.log(err);
24896
24904
  });
24897
24905
  // document.getElementById("cloudType").setAttribute("checked", true);
24898
24906
  // $("#cloudType").attr("checked", recType == '2');
@@ -27619,6 +27627,9 @@ class Monitor {
27619
27627
  }
27620
27628
  }
27621
27629
  EZUIKit.opt = _this.opt;
27630
+ if(window.EZUIKit) {
27631
+ window.EZUIKit.opt = this.opt;
27632
+ }
27622
27633
  }
27623
27634
  request(_this.opt.apiDomain, 'POST', {
27624
27635
  accessToken: _this.opt.accessToken,
@@ -28577,6 +28588,9 @@ class Monitor {
28577
28588
  console.log(this.opt);
28578
28589
  var _this = this;
28579
28590
  EZUIKit.opt = this.opt;
28591
+ if(window.EZUIKit) {
28592
+ window.EZUIKit.opt = this.opt;
28593
+ }
28580
28594
  var apiSuccess = function(data) {
28581
28595
  if (data.code == 200) {
28582
28596
  var apiResult = data.data;
@@ -29951,11 +29965,18 @@ class EZUIKitPlayer {
29951
29965
  return this.play({
29952
29966
  accessToken: options.accessToken,
29953
29967
  url: url
29968
+ }).then(() => {
29969
+ resolve(url);
29970
+ }).catch((err) => {
29971
+ reject(url);
29954
29972
  });
29955
29973
  }
29956
29974
  this.play(url)
29957
29975
  .then(() => {
29958
29976
  resolve(url);
29977
+ })
29978
+ .catch((err) => {
29979
+ reject(url);
29959
29980
  });
29960
29981
  })
29961
29982
  .catch((err) => {
@@ -29965,11 +29986,17 @@ class EZUIKitPlayer {
29965
29986
  return this.play({
29966
29987
  accessToken: options.accessToken,
29967
29988
  url: url
29989
+ }).then(() => {
29990
+ resolve(url);
29991
+ }).catch((err) => {
29992
+ reject(url);
29968
29993
  });
29969
29994
  }
29970
29995
  this.play(url)
29971
29996
  .then(() => {
29972
29997
  resolve(url);
29998
+ }).catch((err) => {
29999
+ reject(url);
29973
30000
  });
29974
30001
  });
29975
30002
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezuikit-js",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "description": "ezuikit javascript for npm",
5
5
  "main": "ezuikit.js",
6
6
  "scripts": {