Skip to content

Commit 150ff35

Browse files
committed
fix: 修复重定向页面的定时问题
1 parent f0ad965 commit 150ff35

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

redirect.php

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@
44
*
55
* @package custom
66
*/
7-
$this->need('components/header.php');
87
?>
98

10-
<div class="PAP">
11-
<div class="PAP-content">
12-
<?php $this->content(); ?>
13-
</div>
14-
</div>
9+
<div style="display: flex;height: 100vh;justify-content: center; align-items: center;">
10+
<h2 style="opacity: 0.3; font-weight: 200;font-size: 2.5rem">跳转中...</h2>
11+
</div>
1512

16-
<script type="text/javascript">
17-
setTimeout(window.location.href= '<?php echo $this->fields->redirectURL ;?>',<?php echo $this->fields->redirectSecond ;?>)
18-
</script>
19-
20-
<?php if ($this->fields->enableComment == 1): ?>
21-
<?php $this->need('components/comments.php'); ?>
22-
<?php endif; ?>
23-
<?php $this->need('components/footer.php'); ?>
13+
<script type="text/javascript">
14+
setTimeout(()=>{window.location.href= '<?php echo $this->fields->redirectURL ;?>'},<?php echo $this->fields->redirectSecond ;?>)
15+
</script>

0 commit comments

Comments
 (0)