|
@@ -43,6 +43,7 @@ $(function() {
|
|
|
$img0.attr("src", "/js/lib/imageupload/img/a7.png").appendTo($section);
|
|
$img0.attr("src", "/js/lib/imageupload/img/a7.png").appendTo($section);
|
|
|
var $img = $("<img class='up-img up-opcity' id='user_pic'>");
|
|
var $img = $("<img class='up-img up-opcity' id='user_pic'>");
|
|
|
$img.attr("src", imgArr[i]);
|
|
$img.attr("src", imgArr[i]);
|
|
|
|
|
+ $img.attr("path", imgArr[i]);
|
|
|
$img.appendTo($section);
|
|
$img.appendTo($section);
|
|
|
var $p = $("<p class='img-name-p'>");
|
|
var $p = $("<p class='img-name-p'>");
|
|
|
$p.html(fileList[i].name).appendTo($section);
|
|
$p.html(fileList[i].name).appendTo($section);
|
|
@@ -55,6 +56,7 @@ $(function() {
|
|
|
//上传
|
|
//上传
|
|
|
uploadFile(fileList[i], "file", function(data) {
|
|
uploadFile(fileList[i], "file", function(data) {
|
|
|
$img.attr("src", base_server_url + data.path);
|
|
$img.attr("src", base_server_url + data.path);
|
|
|
|
|
+ $img.attr("path", data.path);
|
|
|
}, function(error) {
|
|
}, function(error) {
|
|
|
console.log(error)
|
|
console.log(error)
|
|
|
});
|
|
});
|