messageDetail.html 2.1 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">
    <title>站内信详情</title>
    <script src="../js/fontsize.js"></script>
    <link rel="stylesheet" href="../css/init.css">
    <link rel="stylesheet" href="../css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_793738_tlxymah92x.css">
    <link rel="stylesheet" href="../css/weui.css">
    <link rel="stylesheet" href="../css/myweui.css">
    <link rel="stylesheet" href="../css/referralModule.css">
</head>
<body>
<div class="container">
    <div class="content_box">
        <div class="tab_title detail_title">临床表现</div>
        <div class="tab_time detail_time">2018.08.21</div>
        <div>急诊科全体会议于3月2日在会议中心举行,请相关人员准时参加。</div>
    </div>
</div>


<script src="../js/jquery-2.1.0.js"></script>
<script src="../js/weui.js"></script>
<script src="../js/myweui.js"></script>
<script>
    $(function () {
        var tmpl = '<li class="weui-uploader__file" style="background-image:url(#url#)"></li>',
            $gallery = $("#gallery"), $galleryImg = $("#galleryImg"),
            $uploaderInput = $("#uploaderInput"),
            $uploaderFiles = $("#uploaderFiles")
        ;

        $uploaderInput.on("change", function (e) {
            var src, url = window.URL || window.webkitURL || window.mozURL, files = e.target.files;
            for (var i = 0, len = files.length; i < len; ++i) {
                var file = files[i];

                if (url) {
                    src = url.createObjectURL(file);
                } else {
                    src = e.target.result;
                }

                $uploaderFiles.append($(tmpl.replace('#url#', src)));
            }
        });
        $uploaderFiles.on("click", "li", function () {
            $galleryImg.attr("style", this.getAttribute("style"));
            $gallery.fadeIn(100);
        });
        $gallery.on("click", function () {
            $gallery.fadeOut(100);
        });
    });
</script>
</body>
</html>