403.php 1.56 KB
<?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>