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.
@@ -12464,7 +12464,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
12464
12464
  windowNums: num
12465
12465
  });
12466
12466
  me._opts.windows = num;
12467
- me._opts.extra = extra; //设置旋转了的视频样式
12467
+ me._opts.extra = extra;
12468
12468
  },
12469
12469
 
12470
12470
  /**
@@ -13468,6 +13468,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13468
13468
  this.dispatch('screenchange', {
13469
13469
  windowNums: num,
13470
13470
  flag: me._opts.flag
13471
+ }); //设置旋转了的视频样式
13472
+
13473
+ let videoLi = document.getElementById('videoRef').querySelectorAll('li');
13474
+ me.VIDEO_DATA.forEach((item, index) => {
13475
+ let tel = item.video;
13476
+
13477
+ if (!tel && item.id) {
13478
+ videoLi[index].querySelector('video').style = '';
13479
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13480
+ }
13471
13481
  }); //设置旋转视频的样式
13472
13482
 
13473
13483
  for (let k = 0; k < _li.length; k++) {
@@ -13980,14 +13990,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13980
13990
  //视频横向留白
13981
13991
  $(video).css('width', liHeight);
13982
13992
  $(video).css('height', 'auto');
13983
- $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13984
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13993
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13994
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
13985
13995
  } else {
13986
13996
  //视频纵向留白
13987
13997
  $(video).css('width', 'auto');
13988
13998
  $(video).css('height', liWidth);
13989
- $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13990
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13999
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14000
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13991
14001
  }
13992
14002
  } else if (rotateIndex == 2) {
13993
14003
  //2
@@ -14013,13 +14023,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14013
14023
  $(video).css('width', liHeight);
14014
14024
  $(video).css('height', 'auto');
14015
14025
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14016
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14026
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14017
14027
  } else {
14018
14028
  //视频纵向留白
14019
14029
  $(video).css('width', 'auto');
14020
14030
  $(video).css('height', liWidth);
14021
- $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14022
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14031
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14032
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14023
14033
  }
14024
14034
  }
14025
14035
  },
Binary file