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.
@@ -13551,15 +13551,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13551
13551
  flag: me._opts.flag
13552
13552
  }); //设置旋转了的视频样式
13553
13553
 
13554
- let videoLi = document.querySelector(me.selector).querySelectorAll('li');
13555
- me.VIDEO_DATA.forEach((item, index) => {
13556
- let tel = item.video;
13554
+ if (document.querySelector(me.selector)) {
13555
+ let videoLi = document.querySelector(me.selector).querySelectorAll('li');
13556
+ me.VIDEO_DATA.forEach((item, index) => {
13557
+ let tel = item.video;
13558
+
13559
+ if (!tel && item.id) {
13560
+ videoLi[index].querySelector('video').style = '';
13561
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13562
+ }
13563
+ });
13564
+ } //设置旋转视频的样式
13557
13565
 
13558
- if (!tel && item.id) {
13559
- videoLi[index].querySelector('video').style = '';
13560
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13561
- }
13562
- }); //设置旋转视频的样式
13563
13566
 
13564
13567
  for (let k = 0; k < _li.length; k++) {
13565
13568
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index'); // if(rotateIndex != 0 && rotateIndex != 2){
Binary file