<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit">
<meta name="decorator" content="front"/>
<title>文件上传</title>
<script src="${CONTEXT_PATH}/assets/jquery/jquery-1.11.3.min.js" type="text/javascript"></script>
<link href="${CONTEXT_PATH}/assets/stream/css/style.css" type="text/css" rel="stylesheet" />
<link href="${CONTEXT_PATH}/assets/stream/css/stream-v1.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <!--头部下面的一行文字-->
    <p class="sys-text">正在使用创未来提交文件</p>
    <!--内容-->
    <div class="clm-back-content">
      <div class="content-left center">
        <h2 class="content-h2">速度上传文件</h2>
        <p class="content-p">请使用订单详情中的上传文件按钮，进入扫一扫页面，扫描下方二维码。</p>
        <img src="${qrcode}" class="content-img">
        <a class="content-a">首次使用欢迎下载手机创未来</a>
      </div>
      <div class="content-right">
      <img src="${CONTEXT_PATH}/assets/images/computer.png">
      </div>
    </div>
    <script type="text/javascript">
    var interval = null;
    function getData(){
    
        $.get("${CONTEXT_PATH}/web/qrcode/upload/login?t=" + Math.random(), function(data){
            if(data.status === "2000"){
                clearInterval(interval);
                window.location.href="${CONTEXT_PATH}/web/qrcode/upload/add?t=" + Math.random();
            }
        });
    }
    $(document).ready(function(){
        interval = setInterval(getData, 1000);// 美秒循环一次
    });
    </script>
</body>
</html>