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.
- package/dist/ucservice.common.js +17 -5
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +17 -5
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scooper.video.js +12 -4
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -1573,6 +1573,7 @@
|
|
|
1573
1573
|
if(video.hasClass('scale-scene')) {
|
|
1574
1574
|
video.removeClass('scale-scene');
|
|
1575
1575
|
video.parent().find('.scale-btn').addClass('bggray')
|
|
1576
|
+
video.parent().find('.scale-btn').attr('title', '视频画面铺满')
|
|
1576
1577
|
}
|
|
1577
1578
|
|
|
1578
1579
|
if (!isSave) {
|
|
@@ -1693,11 +1694,12 @@
|
|
|
1693
1694
|
//设置旋转视频的样式
|
|
1694
1695
|
for(let k = 0; k < _li.length; k++){
|
|
1695
1696
|
let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
|
|
1696
|
-
|
|
1697
|
+
let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray')
|
|
1698
|
+
if(scaleBtn){
|
|
1697
1699
|
setTimeout(() => {
|
|
1698
1700
|
me.videoRotateSize(_li.eq(k)[0], rotateIndex);
|
|
1699
1701
|
}, 200);
|
|
1700
|
-
|
|
1702
|
+
}
|
|
1701
1703
|
}
|
|
1702
1704
|
},
|
|
1703
1705
|
|
|
@@ -2374,8 +2376,14 @@
|
|
|
2374
2376
|
})
|
|
2375
2377
|
videoFlagObj.find('button[name=scaleVideo]').click(function(){
|
|
2376
2378
|
let isgray = $(this).hasClass('bggray')
|
|
2377
|
-
if(isgray)
|
|
2378
|
-
|
|
2379
|
+
if(isgray) {
|
|
2380
|
+
$(this).parent().parent().find('.video-box').addClass('scale-scene')
|
|
2381
|
+
$(this).attr('title', '原视频分辨率展示')
|
|
2382
|
+
}
|
|
2383
|
+
else {
|
|
2384
|
+
$(this).parent().parent().find('.video-box').removeClass('scale-scene')
|
|
2385
|
+
$(this).attr('title', '视频画面铺满')
|
|
2386
|
+
}
|
|
2379
2387
|
$(this).toggleClass("bggray")
|
|
2380
2388
|
//jquery方式阻止默认事件 & 冒泡事件
|
|
2381
2389
|
return false;
|