ucservice 2.2.0 → 2.2.2

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.
@@ -15222,20 +15222,21 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15222
15222
 
15223
15223
  let resultHtml = "<div class='result'><div class='result-tip'>" + CONST_CODE.VIDEO_CODE[code] + "</div>";
15224
15224
  let second = 0;
15225
+ let mianVP = videoDom.parents('#videoRef').length;
15225
15226
 
15226
15227
  if (isShowReplayBtn && code != "4002") {
15227
- second = 2;
15228
- resultHtml += "<div class='result-replay'><span id='replay-" + videoObj.index + "' class='replay'>2秒后自动尝试重连,点击立即重连</span></div>";
15228
+ mianVP && (second = 2);
15229
+ resultHtml += "<div class='result-replay'><span id='replay-" + videoObj.index + "' class='replay'>" + (mianVP ? '2秒后自动尝试重连,' : '') + "点击立即重连</span></div>";
15229
15230
  }
15230
15231
 
15231
15232
  resultHtml += "</div>";
15232
15233
  videoDom.append(resultHtml);
15233
15234
  let timer = null;
15234
15235
 
15235
- if (second) {
15236
+ if (second && mianVP) {
15236
15237
  timer = setTimeout(() => {
15237
15238
  second--;
15238
- if (second > 0) document.querySelector('#replay-' + videoObj.index).innerHTML = second + '秒后自动尝试重连,点击立即重连';else if (second == 0) videoObj.videoListener.dispatch("openVideo", {
15239
+ if (second > 0) videoDom.find('#replay-' + videoObj.index).text(second + '秒后自动尝试重连,点击立即重连');else if (second == 0) videoObj.videoListener.dispatch("openVideo", {
15239
15240
  index: videoObj.index,
15240
15241
  video: video,
15241
15242
  id: videoObj.id,
Binary file