62d73041
xu
app-wx
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?php
use yii\helpers\Url;
$assets = $this->getAssetManager();
$asset = $assets->getBundle('app\wx\assets\AppAsset');
?>
<style>
.error-wrap {
margin:0 auto;
width:95%;
margin-top: 50px;
padding: 0 5px;
font-size: 18px;
font-weight: bold;
}
</style>
<div class="error-wrap">
<div style="text-align: center"><img src="<?= $asset->baseUrl . '/i/error.jpg' ?>" /></div>
<div style="margin-bottom: 10px">一瞬间,访客风起云涌,页面进不去了...</div>
<div style="">我们将在<span id="num" class="text-danger">10</span>秒后为您跳转回首页</div>
<div style="line-height: 28px;margin-top: 30px;">
<p>在使用系统的过程中,遇到问题或者有好的建议,请一定告诉我们。我们深宅多年练就的功能,就是为了化问题为神奇。</p>
<p style="margin-bottom: 30px"> 邮箱:tech@jiwork.com (求约)</p>
</div>
</div>
<script>
function countDown(period, intv, callback) {
var num = document.getElementById("num");
var timeRemain = period - 1;
var setText = function (text) {
num.innerHTML = text;
}
var t = setInterval(function () {
setText(timeRemain);
timeRemain -= 1;
if (timeRemain < 0) {
clearInterval(t);
if (callback) {
callback();
}
}
}, intv);
}
countDown(10, 1000, function () {
location.href = "<?php echo Url::home(); ?>";
});
</script>
|