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