ucservice 1.4.0 → 1.4.3

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.
@@ -13965,16 +13965,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13965
13965
 
13966
13966
  if (videoWidth / videoHeight > liWidth / liHeight) {
13967
13967
  //视频横向留白
13968
- $(video).css('width', liHeight);
13969
- $(video).css('height', 'auto');
13970
- $(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
13971
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
13968
+ $(video).css('width', 'auto');
13969
+ $(video).css('height', liWidth);
13970
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13971
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13972
13972
  } else {
13973
13973
  //视频纵向留白
13974
- $(video).css('height', liWidth);
13975
- $(video).css('width', 'auto');
13976
- $(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
13977
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
13974
+ $(video).css('width', liHeight);
13975
+ $(video).css('height', 'auto');
13976
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13977
+ $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13978
13978
  }
13979
13979
  } else if (rotateIndex == 2) {
13980
13980
  //2
@@ -13993,16 +13993,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13993
13993
 
13994
13994
  if (videoWidth / videoHeight > liWidth / liHeight) {
13995
13995
  //视频横向留白
13996
+ $(video).css('width', 'auto');
13997
+ $(video).css('height', liWidth);
13998
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13999
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14000
+ } else {
14001
+ //视频纵向留白
13996
14002
  $(video).css('width', liHeight);
13997
14003
  $(video).css('height', 'auto');
13998
14004
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13999
14005
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14000
- } else {
14001
- //视频纵向留白
14002
- $(video).css('height', liWidth);
14003
- $(video).css('width', 'auto');
14004
- $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14005
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14006
14006
  }
14007
14007
  }
14008
14008
  },
@@ -14088,7 +14088,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14088
14088
  videoFlagObj.find('button[name=rotateVideo]').click(function () {
14089
14089
  let rotateIndex = Number($(this).attr("rotate-index"));
14090
14090
  rotateIndex++;
14091
- $(this).attr("rotate-index", rotateIndex % 4);
14091
+ rotateIndex %= 4;
14092
+ $(this).attr("rotate-index", rotateIndex);
14092
14093
  let li = $(this).parent().parent()[0];
14093
14094
  me.videoRotateSize(li, rotateIndex);
14094
14095
  }); //接收音频事件
Binary file