ucservice 1.4.6 → 1.4.9

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.
@@ -12455,7 +12455,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
12455
12455
  windowNums: num
12456
12456
  });
12457
12457
  me._opts.windows = num;
12458
- me._opts.extra = extra; //设置旋转了的视频样式
12458
+ me._opts.extra = extra;
12459
12459
  },
12460
12460
 
12461
12461
  /**
@@ -13459,6 +13459,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13459
13459
  this.dispatch('screenchange', {
13460
13460
  windowNums: num,
13461
13461
  flag: me._opts.flag
13462
+ }); //设置旋转了的视频样式
13463
+
13464
+ let videoLi = document.getElementById('videoRef').querySelectorAll('li');
13465
+ me.VIDEO_DATA.forEach((item, index) => {
13466
+ let tel = item.video;
13467
+
13468
+ if (!tel && item.id) {
13469
+ videoLi[index].querySelector('video').style = '';
13470
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13471
+ }
13462
13472
  }); //设置旋转视频的样式
13463
13473
 
13464
13474
  for (let k = 0; k < _li.length; k++) {
@@ -13971,14 +13981,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13971
13981
  //视频横向留白
13972
13982
  $(video).css('width', liHeight);
13973
13983
  $(video).css('height', 'auto');
13974
- $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13975
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13984
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13985
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
13976
13986
  } else {
13977
13987
  //视频纵向留白
13978
13988
  $(video).css('width', 'auto');
13979
13989
  $(video).css('height', liWidth);
13980
- $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13981
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13990
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
13991
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13982
13992
  }
13983
13993
  } else if (rotateIndex == 2) {
13984
13994
  //2
@@ -14004,13 +14014,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14004
14014
  $(video).css('width', liHeight);
14005
14015
  $(video).css('height', 'auto');
14006
14016
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14007
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14017
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14008
14018
  } else {
14009
14019
  //视频纵向留白
14010
14020
  $(video).css('width', 'auto');
14011
14021
  $(video).css('height', liWidth);
14012
- $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14013
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14022
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14023
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14014
14024
  }
14015
14025
  }
14016
14026
  },
Binary file