ucservice 2.5.6 → 2.5.8

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.
@@ -13583,13 +13583,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13583
13583
  for (let k = 0; k < _li.length; k++) {
13584
13584
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13585
13585
 
13586
- let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray');
13586
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray'); // if(scaleBtn){
13587
13587
 
13588
- if (scaleBtn) {
13589
- setTimeout(() => {
13590
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13591
- }, 200);
13592
- }
13588
+
13589
+ setTimeout(() => {
13590
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13591
+ }, 200); // }
13593
13592
  }
13594
13593
  },
13595
13594
 
@@ -14186,6 +14185,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14186
14185
  }
14187
14186
  }
14188
14187
 
14188
+ debugger;
14189
14189
  let videoWidth = video.videoWidth;
14190
14190
  let videoHeight = video.videoHeight;
14191
14191
  let vWidth = video.offsetWidth;
@@ -14219,18 +14219,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14219
14219
  if (!isScale) {
14220
14220
  $(video).css('width', liHeight);
14221
14221
  $(video).css('height', 'auto');
14222
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14223
+ } else {
14224
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14222
14225
  }
14223
14226
 
14224
14227
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14225
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14226
14228
  } else {
14227
14229
  //视频纵向留白
14228
14230
  if (!isScale) {
14229
14231
  $(video).css('width', 'auto');
14230
14232
  $(video).css('height', liWidth);
14233
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14234
+ } else {
14235
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14231
14236
  }
14232
14237
 
14233
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14234
14238
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14235
14239
  }
14236
14240
  } else if (rotateIndex == 2) {
@@ -14261,18 +14265,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14261
14265
  if (!isScale) {
14262
14266
  $(video).css('width', liHeight);
14263
14267
  $(video).css('height', 'auto');
14268
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14269
+ } else {
14270
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14264
14271
  }
14265
14272
 
14266
14273
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14267
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14268
14274
  } else {
14269
14275
  //视频纵向留白
14270
14276
  if (!isScale) {
14271
14277
  $(video).css('width', 'auto');
14272
14278
  $(video).css('height', liWidth);
14279
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14280
+ } else {
14281
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14273
14282
  }
14274
14283
 
14275
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14276
14284
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14277
14285
  }
14278
14286
  }
Binary file