ucservice 1.6.1 → 1.6.4
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 +15 -4
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -1332,7 +1332,10 @@
|
|
|
1332
1332
|
entries.forEach((item, index) =>{
|
|
1333
1333
|
let target = item.target
|
|
1334
1334
|
if(document.querySelector(_self.selector)){
|
|
1335
|
-
let videoLi =
|
|
1335
|
+
let videoLi = {}
|
|
1336
|
+
Array.prototype.slice.call(document.querySelector(_self.selector).querySelectorAll('li'), 0).forEach(liItem => {
|
|
1337
|
+
videoLi[$(liItem).attr('index')] = liItem
|
|
1338
|
+
})
|
|
1336
1339
|
_self.VIDEO_DATA.forEach((item, index) => {
|
|
1337
1340
|
let tel = item.video
|
|
1338
1341
|
if (!tel&&item.id) {
|
|
@@ -1362,7 +1365,10 @@
|
|
|
1362
1365
|
entries.forEach((item, index) =>{
|
|
1363
1366
|
let target = item.target
|
|
1364
1367
|
if(document.querySelector(_self.selector)){
|
|
1365
|
-
let videoLi =
|
|
1368
|
+
let videoLi = {}
|
|
1369
|
+
Array.prototype.slice.call(document.querySelector(_self.selector).querySelectorAll('li'), 0).forEach(liItem => {
|
|
1370
|
+
videoLi[$(liItem).attr('index')] = liItem
|
|
1371
|
+
})
|
|
1366
1372
|
_self.VIDEO_DATA.forEach((item, index) => {
|
|
1367
1373
|
let tel = item.video
|
|
1368
1374
|
if (!tel&&item.id) {
|
|
@@ -1663,7 +1669,10 @@
|
|
|
1663
1669
|
|
|
1664
1670
|
//设置旋转了的视频样式
|
|
1665
1671
|
if(document.querySelector(me.selector)){
|
|
1666
|
-
let videoLi =
|
|
1672
|
+
let videoLi = {}
|
|
1673
|
+
Array.prototype.slice.call(document.querySelector(me.selector).querySelectorAll('li'), 0).forEach(liItem => {
|
|
1674
|
+
videoLi[$(liItem).attr('index')] = liItem
|
|
1675
|
+
})
|
|
1667
1676
|
me.VIDEO_DATA.forEach((item, index) => {
|
|
1668
1677
|
let tel = item.video
|
|
1669
1678
|
if (!tel&&item.id) {
|
|
@@ -2118,6 +2127,7 @@
|
|
|
2118
2127
|
})
|
|
2119
2128
|
|
|
2120
2129
|
$(me.selector + ' li').bind("drop", function (ev) {
|
|
2130
|
+
console.log(ev)
|
|
2121
2131
|
ev.preventDefault();
|
|
2122
2132
|
if(src.prop("outerHTML") === $(this).prop("outerHTML")){
|
|
2123
2133
|
return;
|
|
@@ -2133,6 +2143,7 @@
|
|
|
2133
2143
|
src.insertAfter(target);
|
|
2134
2144
|
target.insertBefore($(me.selector +' .video-main li.screen').eq(srcIndex));
|
|
2135
2145
|
}
|
|
2146
|
+
let videoData = me.VIDEO_DATA;
|
|
2136
2147
|
})
|
|
2137
2148
|
},
|
|
2138
2149
|
|
|
@@ -3496,7 +3507,7 @@
|
|
|
3496
3507
|
//<video>注册playing/canplay事件,用于判断视频播放成功
|
|
3497
3508
|
self.tagBox.bind("canplay play playing", function () {
|
|
3498
3509
|
if(self.video){
|
|
3499
|
-
if (self.tagBox.is(':visible')) return;
|
|
3510
|
+
// if (self.tagBox.is(':visible')) return;
|
|
3500
3511
|
// 清除播放监测定时任务,清除内容
|
|
3501
3512
|
self.playSucTimeOutIndex > 0 && clearTimeout(self.playSucTimeOutIndex);
|
|
3502
3513
|
self.tagBox.parent().find(".video-tip").remove();
|