|
@@ -247,7 +247,27 @@ import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
|
|
countdownModal.appendChild(text);
|
|
|
countdownMask.appendChild(countdownModal);
|
|
|
document.body.appendChild(countdownMask);
|
|
|
-
|
|
|
+
|
|
|
+ if(triggerMode === 2 ||(data.data.url == '' && triggerMode === 3)){
|
|
|
+ const close = document.createElement('div');
|
|
|
+ close.innerText = '关闭';
|
|
|
+ close.style.marginTop = '26px';
|
|
|
+ close.style.background = '#007bff';
|
|
|
+ close.style.color = '#fff';
|
|
|
+ close.style.border = 'none';
|
|
|
+ close.style.borderRadius = '10px';
|
|
|
+ close.style.padding = '8px 16px';
|
|
|
+ close.style.cursor = 'pointer';
|
|
|
+ close.style.fontSize='14px'
|
|
|
+
|
|
|
+ // 添加关闭事件处理
|
|
|
+ close.onclick = function() {
|
|
|
+ document.body.removeChild(countdownMask);
|
|
|
+ };
|
|
|
+ countdownModal.appendChild(close);
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
const timer = setInterval(() => {
|
|
|
countdown--;
|
|
|
text.innerText = `即将跳转,${countdown}秒...`;
|