ucservice 1.7.6 → 1.7.7

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.
@@ -13449,6 +13449,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13449
13449
  if (video.hasClass('scale-scene')) {
13450
13450
  video.removeClass('scale-scene');
13451
13451
  video.parent().find('.scale-btn').addClass('bggray');
13452
+ video.parent().find('.scale-btn').attr('title', '视频画面铺满');
13452
13453
  }
13453
13454
 
13454
13455
  if (!isSave) {
@@ -13575,12 +13576,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13575
13576
 
13576
13577
 
13577
13578
  for (let k = 0; k < _li.length; k++) {
13578
- let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index'); // if(rotateIndex != 0 && rotateIndex != 2){
13579
+ let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13579
13580
 
13581
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray');
13580
13582
 
13581
- setTimeout(() => {
13582
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13583
- }, 200); // }
13583
+ if (scaleBtn) {
13584
+ setTimeout(() => {
13585
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13586
+ }, 200);
13587
+ }
13584
13588
  }
13585
13589
  },
13586
13590
 
@@ -14292,7 +14296,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14292
14296
  });
14293
14297
  videoFlagObj.find('button[name=scaleVideo]').click(function () {
14294
14298
  let isgray = $(this).hasClass('bggray');
14295
- if (isgray) $(this).parent().parent().find('.video-box').addClass('scale-scene');else $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14299
+
14300
+ if (isgray) {
14301
+ $(this).parent().parent().find('.video-box').addClass('scale-scene');
14302
+ $(this).attr('title', '原视频分辨率展示');
14303
+ } else {
14304
+ $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14305
+ $(this).attr('title', '视频画面铺满');
14306
+ }
14307
+
14296
14308
  $(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
14297
14309
 
14298
14310
  return false;
Binary file