master
chenxiaojun 5 years ago
parent 1cfba9a3b5
commit 8ffc9038c4

@ -1129,13 +1129,6 @@
return false;
});
if(!response.chunk){
var url = response.path + "/" +response.name;
// $("#file_name").val(response.name);
$("#file_url").val(url);
// $("#file_size").val(response.size);
}
//alert($("#file_name").val()+";"+$("#file_url").val()+";"+$("#file_size").val())
});
uploaderImg.on('uploadError', function(file) {

@ -1145,7 +1145,7 @@
imgListData.push(<?=$value?>);
html += '<div id="' + <?=$value?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
html += '<a href=""><img src="<?=get_cover($value,"path")?>" style="width: 100px;height: 100px;"></a>';
html += '<a href="javascript:;"><img src="<?=get_cover($value,"path")?>" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info" style="text-align: center;">';
html += '<a href="javascript:;" class="jsdelzip table_click" style="float:none;display:inline-block;" img-id="' + <?=$value?> + '">删除</a>';
html += '</h4>';
@ -1163,6 +1163,7 @@
$.each(imgListData,function(index, item) {
if (thisId == item) {
imgListData.splice(index,1);
return false;
}
});
@ -1176,7 +1177,7 @@
uploaderImg.on( 'fileQueued', function( file ) {
var html = '';
html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">';
html += '<a href=""><img src="" style="width: 100px;height: 100px;"></a>';
html += '<a href="javascript:;"><img src="" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info">' + file.name + '</h4>';
html += '<p class="state">等待上传...</p>';
html += '</div>';
@ -1225,6 +1226,7 @@
$.each(imgListData,function(index, item) {
if (response.id == item) {
imgListData.splice(index,1);
return false;
}
});
setFlooringPageImgsVal();
@ -1232,13 +1234,6 @@
return false;
});
if(!response.chunk){
var url = response.path + "/" +response.name;
// $("#file_name").val(response.name);
$("#file_url").val(url);
// $("#file_size").val(response.size);
}
//alert($("#file_name").val()+";"+$("#file_url").val()+";"+$("#file_size").val())
});
uploaderImg.on('uploadError', function(file) {

Loading…
Cancel
Save