ucservice 1.4.4 → 1.4.5

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.
@@ -13973,19 +13973,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13973
13973
  $(video).attr('class', 'video-box');
13974
13974
  video.style.position = 'absolute';
13975
13975
  video.style.transform = 'rotate(270deg)';
13976
- $(video).css('max-height', '');
13977
- $(video).css('max-width', '');
13976
+ $(video).css('max-height', 'none');
13977
+ $(video).css('max-width', 'none');
13978
13978
 
13979
- if (videoWidth / videoHeight > liWidth / liHeight) {
13979
+ if (videoHeight * liHeight / videoWidth < liWidth) {
13980
13980
  //视频横向留白
13981
- $(video).css('width', 'auto');
13982
- $(video).css('height', liWidth);
13981
+ $(video).css('width', liHeight);
13982
+ $(video).css('height', 'auto');
13983
13983
  $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13984
13984
  $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13985
13985
  } else {
13986
13986
  //视频纵向留白
13987
- $(video).css('width', liHeight);
13988
- $(video).css('height', 'auto');
13987
+ $(video).css('width', 'auto');
13988
+ $(video).css('height', liWidth);
13989
13989
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13990
13990
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13991
13991
  }
@@ -14005,19 +14005,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14005
14005
  $(video).attr('class', 'video-box');
14006
14006
  video.style.position = 'absolute';
14007
14007
  video.style.transform = 'rotate(90deg)';
14008
- $(video).css('max-height', '');
14009
- $(video).css('max-width', '');
14008
+ $(video).css('max-height', 'none');
14009
+ $(video).css('max-width', 'none');
14010
14010
 
14011
- if (videoWidth / videoHeight > liWidth / liHeight) {
14011
+ if (videoHeight * liHeight / videoWidth < liWidth) {
14012
14012
  //视频横向留白
14013
- $(video).css('width', 'auto');
14014
- $(video).css('height', liWidth);
14013
+ $(video).css('width', liHeight);
14014
+ $(video).css('height', 'auto');
14015
14015
  $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14016
14016
  $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14017
14017
  } else {
14018
14018
  //视频纵向留白
14019
- $(video).css('width', liHeight);
14020
- $(video).css('height', 'auto');
14019
+ $(video).css('width', 'auto');
14020
+ $(video).css('height', liWidth);
14021
14021
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14022
14022
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14023
14023
  }
Binary file