uploadImage.html 2.05 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>照片</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="src/css/index.css" type="text/css" rel="stylesheet"/>
    <link href="src/css/common.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript">
        ///*屏蔽鼠标右键的默认事件*/
        function stops(){
            return false;
        }
        document.oncontextmenu=stops;
    </script>

</head>
<body>
<div class="">
    <div id="title">
        <img src="src/image/btn_back.png" id="backimage" onclick="window.history.back()"/>图片
        <button id="saveimage" onclick="saveReturn()">保存</button>
    </div>

    <div class="z_photo upimg-div clear" >
        <section class="z_file fl">
            <img src="src/image/a11.png" class="add-img">
            <input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple />
        </section>
    </div>
</div>
<aside class="mask works-mask">
    <div class="mask-content">
        <p class="del-p ">您确定要删除作品图片吗?</p>
        <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
    </div>
</aside>
<script src="dist/jquery/jquery-3.2.1.min.js"></script>
<script src="src/js/saasService.js"></script>
<script src="src/js/imgUp.js"></script>
<script>
    var strImg = JSON.parse(localStorage.getItem('Imgarr'))
    var tagImg = ''
    // console.log(strImg)
    for(var i=0;i<strImg.length;i++){
        tagImg+= "<section class=\"up-section fl\"><span class=\"up-span\"></span><img class=\"close-upimg\" src=\"src/image/sc.png\"><img class=\"up-img\" id="+strImg[i].id+" src="+strImg[i].photoPath+"><p class=\"img-name-p\">201995-120HG1030762.jpg</p><input id=\"taglocation\" name=\"taglocation\" value=\"\" type=\"hidden\"><input id=\"tags\" name=\"tags\" value=\"\" type=\"hidden\"></section>"
    }
    $('.upimg-div').prepend(tagImg)

</script>
</body>
</html>