uploadImage.html
2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!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>