40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../../layui/css/layui.css">
|
|
<script type="text/javascript" src="../../../js/libs/jquery-3.6.0.js"></script>
|
|
<script type="text/javascript" src="../../../layui/layui.js"></script>
|
|
<script type="text/javascript" src="../../../../public/public.js"></script>
|
|
<script type="text/javascript" src="../../../js/publicJs.js"></script>
|
|
<script type="text/javascript" src="../../../js/jq.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id = "photodiv"></div>
|
|
</body>
|
|
<script type="text/javascript">
|
|
var username = localStorage.getItem("username");
|
|
var uploadTime = localStorage.getItem("uploadTime");
|
|
var photoPath = localStorage.getItem("photoPath");
|
|
var photoType = localStorage.getItem("photoType");
|
|
var photos = photoPath.split(",");
|
|
var html='<div>';
|
|
for(var i = 0; i < photos.length; i++){
|
|
html += '<div style=" width: 85%;margin-left: 6%;">';
|
|
if (photoType == '1' ||photoType == '2'||photoType == '3' ||photoType == '4'|| photoType == '5' ){
|
|
html += '<img align="middle" style="margin-left: 29%; text-align: center; text-align: center; width: 48%;height: 20%;" src="' + photoPath + '" style=""/>';
|
|
html += '<p style="margin-left: 40%;border-radius: 5px;">上传人:' + username + '</p>';
|
|
html += '</div>';
|
|
}else{
|
|
html += '<img align="middle" style="margin-left: 10%; text-align: center; width: 85%;height: 20%;" src="' +conphoto+ photos[i] + '" style=""/>';
|
|
html += '<hr>';
|
|
html += '</div>';
|
|
}
|
|
}
|
|
html += '<p style="margin-left: 40%;border-radius: 5px;">上传时间:' + uploadTime + '</p>';
|
|
html += '</div>';
|
|
$("#photodiv").append(html);
|
|
</script>
|
|
</html> |