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.
@@ -13592,13 +13592,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13592
13592
  for (let k = 0; k < _li.length; k++) {
13593
13593
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13594
13594
 
13595
- let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray');
13595
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray'); // if(scaleBtn){
13596
13596
 
13597
- if (scaleBtn) {
13598
- setTimeout(() => {
13599
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13600
- }, 200);
13601
- }
13597
+
13598
+ setTimeout(() => {
13599
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13600
+ }, 200); // }
13602
13601
  }
13603
13602
  },
13604
13603
 
@@ -14195,6 +14194,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14195
14194
  }
14196
14195
  }
14197
14196
 
14197
+ debugger;
14198
14198
  let videoWidth = video.videoWidth;
14199
14199
  let videoHeight = video.videoHeight;
14200
14200
  let vWidth = video.offsetWidth;
@@ -14228,18 +14228,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14228
14228
  if (!isScale) {
14229
14229
  $(video).css('width', liHeight);
14230
14230
  $(video).css('height', 'auto');
14231
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14232
+ } else {
14233
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14231
14234
  }
14232
14235
 
14233
14236
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14234
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14235
14237
  } else {
14236
14238
  //视频纵向留白
14237
14239
  if (!isScale) {
14238
14240
  $(video).css('width', 'auto');
14239
14241
  $(video).css('height', liWidth);
14242
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14243
+ } else {
14244
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14240
14245
  }
14241
14246
 
14242
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14243
14247
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14244
14248
  }
14245
14249
  } else if (rotateIndex == 2) {
@@ -14270,18 +14274,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14270
14274
  if (!isScale) {
14271
14275
  $(video).css('width', liHeight);
14272
14276
  $(video).css('height', 'auto');
14277
+ $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14278
+ } else {
14279
+ $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14273
14280
  }
14274
14281
 
14275
14282
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14276
- $(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
14277
14283
  } else {
14278
14284
  //视频纵向留白
14279
14285
  if (!isScale) {
14280
14286
  $(video).css('width', 'auto');
14281
14287
  $(video).css('height', liWidth);
14288
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14289
+ } else {
14290
+ $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14282
14291
  }
14283
14292
 
14284
- $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14285
14293
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14286
14294
  }
14287
14295
  }
Binary file