ucservice 1.5.6 → 1.5.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.
@@ -13542,15 +13542,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13542
13542
  flag: me._opts.flag
13543
13543
  }); //设置旋转了的视频样式
13544
13544
 
13545
- let videoLi = document.querySelector(me.selector).querySelectorAll('li');
13546
- me.VIDEO_DATA.forEach((item, index) => {
13547
- let tel = item.video;
13545
+ if (document.querySelector(me.selector)) {
13546
+ let videoLi = document.querySelector(me.selector).querySelectorAll('li');
13547
+ me.VIDEO_DATA.forEach((item, index) => {
13548
+ let tel = item.video;
13549
+
13550
+ if (!tel && item.id) {
13551
+ videoLi[index].querySelector('video').style = '';
13552
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13553
+ }
13554
+ });
13555
+ } //设置旋转视频的样式
13548
13556
 
13549
- if (!tel && item.id) {
13550
- videoLi[index].querySelector('video').style = '';
13551
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13552
- }
13553
- }); //设置旋转视频的样式
13554
13557
 
13555
13558
  for (let k = 0; k < _li.length; k++) {
13556
13559
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index'); // if(rotateIndex != 0 && rotateIndex != 2){
Binary file