<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>精准导购系统企业号应用</title>
    <link rel="stylesheet" href="/static/css/wechat/weui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/static/css/wechat/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="/static/css/wechat/style.css?v=04130944">
</head>

<body ontouchstart>
<header>
    <div class="header">
        <a href="javascript:backToUrl();" class="btn-a-back"><i class="iconfont">&#xe61f;</i></a>
        <h2 id="message">testUpload</h2>
        <a href="/project/testupload" class="btn-add-visit" style="color: #4284d9;">test</a>
    </div>
</header>

<div class="weui-cells weui-cells_form mt0">
    <div class="weui-cell">
        <div class="weui-cell__bd">
            <div class="weui-uploader">
                <div class="weui-uploader__hd">
                    <p class="weui-uploader__title">图片上传</p>
                    <div class="weui-uploader__info" id="imageCount">0/6</div>
                </div>
                <div class="weui-uploader__bd">
                    <ul class="weui-uploader__files" id="uploaderFiles">
                        <!--<li class="weui-uploader__file weui-uploader__file_status"-->
                        <!--style="background-image:url(../images/pic_160.png)">-->
                        <!--</li>-->
                    </ul>
                    <div class="weui-uploader__input-box">
                        <input id="uploaderInput" name="file" class="weui-uploader__input" type="file"
                               accept="image/jpg,image/jpeg,image/png,image/gif;capture=camera">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="btn-modify">
    <a class="weui-btn weui-btn_blue" href="javascript:saveStatus()" id="showToast">提交</a>
</div>


<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/statistics.js"></script>
<script type="text/javascript" src="/static/js/history.js"></script>
<script type="text/javascript" src="/static/js/template.js"></script>
<script type="text/javascript" src="/static/js/utils.js"></script>
<script type="text/javascript" src="/static/js/ajaxfileupload.js?v=2222"></script>
<script type="text/javascript" src="/static/js/exif.js"></script>
<script type="text/javascript">
    var imageCount = 0;
    var $loadingToast = $('#loadingToast');


    $(function () {

        $("#uploaderInput").on("change", function (e) {
            EXIF.getData(e.target.files[0], function () {
                $("#message").text(EXIF.getTag(this, "Orientation"));
            });
        });
    });
    //    $(function () {
    //        asyncUploadImage();
    //    });
</script>
</body>
</html>
