approval.html 7.24 KB
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache,no-store, must-revalidate">
    <link rel="icon" href="./favicon.ico">
    <title>FedEx 在线申报工具</title>
    <style>
        html,
        body {
            margin: 0px;
            padding: 0px;
        }

        .head {
            width: 100%;
            height: 64px;
            overflow: hidden;
            background-color: #4d148c;
        }

        .head-content {
            display: flex;
            width: 1000px;
            height: 63px;
            margin: 0 auto;
            justify-content: space-between;
            line-height: 63px;
            color: #fff;
        }

        .head-content>img {
            width: 5.5rem;
            height: 63px;
            object-fit: contain
        }

        .footer {
            position: fixed;
            width: 100%;
            height: 187px;
            left: 0px;
            bottom: 0px
        }

        .footer-content {
            padding: 30px 120px;
            background-color: #f8f8f8;
        }

        .footer-content-title {
            font-weight: 600;
            color: #4D148C;
            margin-bottom: 10px;
        }

        .footer-content-link {
            display: flex;
            font-weight: 400;
            color: #333 !important;
            justify-content: flex-start;
        }

        .footer-content-link>a {
            margin-right: 60px;
            text-decoration: none;
            color: #333;
        }

        .footer-link {
            width: 100%;
            height: 75px;
            background-color: #4D148C;
        }

        .footer-link-content {
            display: flex;
            width: 80%;
            height: 55px;
            line-height: 55px;
            margin: 0 auto;
            justify-content: space-between;
            color: #fff;
            font-size: 14px;
        }

        /* .footer-link-content>div:first-child {
        } */

        .footer-link-content>div:last-child>a {
            margin-right: 30px;
            color: #fff !important;
            text-decoration: none
        }

        .footer-link-bottom {
            text-align: center;
            color: rgba(255, 255, 255, 0.38);
            font-size: 0.625rem;
        }

        .footer-link-bottom>a {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.38);
            margin: 0 10px;
        }

        .content {
            position: relative;
        }

        .approval {
            width: 40%;
            text-align: center;
            margin: 150px auto;
        }

        .approval-img {
            display: inline-block;
            width: 120px;
            object-fit: contain;
        }

        .approval-title {
            font-size: 20px;
            font-weight: 600;
            color: #4D148C;
            margin-top: 20px;
        }

        .approval-tip {
            font-size: 14px;
            font-weight: 400;
            margin-top: 40px;
            color: #999
        }
    </style>
</head>

<body>
    <div class="head">
        <div class="head-content">
            <img src="./otherHtml-img/logo.png" alt="">
            <div>FedEx在线申报工具</div>
        </div>
    </div>

    <div class="content">
        <div class="approval">
            <img class="approval-img" src="./otherHtml-img/unlink.png" alt="">
            <div class="approval-title">系统连接异常,请稍后再试!</div>
            <div class="approval-tip">该页面将于 <span class="tiem" style="font-weight: 500;color:#666">30s</span> 后关闭</div>
        </div>
    </div>

    <div class="footer">
        <div class="footer-content">
            <div class="footer-content-title">用户指南</div>
            <div class="footer-content-link"><a href="https://declaration.fedex.com.cn/Exp/manager-server/FedEx.pdf"
                    target="_blank">图文版使用指南</a><a
                    href="https://declaration.fedex.com.cn/Exp/manager-server/OperationManual_cp.mp4"
                    target="_blank">视频版使用指南</a><a href="https://www.fedex.com/zh-cn/privacy-policy.html">隐私政策</a></div>
        </div>
        <div class="footer-link">
            <div class="footer-link-content">
                <div>FedEx在线申报工具</div>
                <div>
                    <a href="https://www.fedex.com/zh-cn/terms-of-use.html" target="_blank">使用条款</a>
                    <a href="https://www.fedex.com/content/dam/fedex/apac-asia-pacific/MVP-APAC/images/2019/Q3/CN_EN_2019_1_Master_image_NA_business_license_marketing_913515423.jpg"
                        target="_blank">营业执照</a>
                    <a href="https://www.fedex.com/content/dam/fedex/apac-asia-pacific/downloads/fedex-express-delivery-business-permit-cn.jpg"
                        target="_blank">快递业务经营许可证</a>
                </div>
            </div>
            <div class="footer-link-bottom">
                FedEx Express China <a
                    href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010102007222"
                    target="_blank">沪公网安备
                    31010102007222号 </a><a href="https://beian.miit.gov.cn/#/Integrated/recordQuery"
                    target="_blank">京ICP备18052618号-3</a>
            </div>
        </div>
    </div>
</body>

<script>
    let approval = document.getElementsByClassName('approval')
    let tip = document.getElementsByClassName('tiem')
    let img = document.getElementsByClassName('approval-img')
    let title = document.getElementsByClassName('approval-title')
    let num = 30
    let interval = setInterval(() => {
        tip[0].innerText = `${num}s`
        if (num == 0) {
            clearInterval(interval)
            window.close()
        } else {
            num--
        }
    }, 1000);
    window.onload = function () {
        let search = location.search.replace('?', '').split('&')
        let data = {}
        search.forEach(item => {
            data[item.split('=')[0]] = item.split('=')[1]
        })
        if (search != '') {
            if (data.type == '0') {
                title[0].innerText = '系统连接异常,请稍后再试!'
                img[0].src = "./otherHtml-img/unApproval.png"
            } else if (data.type == '1') {
                title[0].innerText = '审批通过!'
                img[0].src = "./otherHtml-img/approval.png"
            } else if (data.type == '2') {
                title[0].innerText = '已审批,无需重复审批!'
                img[0].src = "./otherHtml-img/overApproval.png"
            } else {
                title[0].innerText = "链接超时,无法完成审批!"
                img[0].src = "./otherHtml-img/unlink.png"
            }
        } else {
            title[0].innerText = "链接超时,无法完成审批!"
            img[0].src = "./otherHtml-img/unlink.png"
        }
    }
</script>

</html>