|
|
@ -1145,7 +1145,7 @@
|
|
|
|
imgListData.push(<?=$value?>);
|
|
|
|
imgListData.push(<?=$value?>);
|
|
|
|
|
|
|
|
|
|
|
|
html += '<div id="' + <?=$value?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
|
|
|
|
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 += '<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 += '<a href="javascript:;" class="jsdelzip table_click" style="float:none;display:inline-block;" img-id="' + <?=$value?> + '">删除</a>';
|
|
|
|
html += '</h4>';
|
|
|
|
html += '</h4>';
|
|
|
@ -1163,6 +1163,7 @@
|
|
|
|
$.each(imgListData,function(index, item) {
|
|
|
|
$.each(imgListData,function(index, item) {
|
|
|
|
if (thisId == item) {
|
|
|
|
if (thisId == item) {
|
|
|
|
imgListData.splice(index,1);
|
|
|
|
imgListData.splice(index,1);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -1176,7 +1177,7 @@
|
|
|
|
uploaderImg.on( 'fileQueued', function( file ) {
|
|
|
|
uploaderImg.on( 'fileQueued', function( file ) {
|
|
|
|
var html = '';
|
|
|
|
var html = '';
|
|
|
|
html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">';
|
|
|
|
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 += '<h4 class="info">' + file.name + '</h4>';
|
|
|
|
html += '<p class="state">等待上传...</p>';
|
|
|
|
html += '<p class="state">等待上传...</p>';
|
|
|
|
html += '</div>';
|
|
|
|
html += '</div>';
|
|
|
@ -1225,6 +1226,7 @@
|
|
|
|
$.each(imgListData,function(index, item) {
|
|
|
|
$.each(imgListData,function(index, item) {
|
|
|
|
if (response.id == item) {
|
|
|
|
if (response.id == item) {
|
|
|
|
imgListData.splice(index,1);
|
|
|
|
imgListData.splice(index,1);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
setFlooringPageImgsVal();
|
|
|
|
setFlooringPageImgsVal();
|
|
|
@ -1232,13 +1234,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
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) {
|
|
|
|
uploaderImg.on('uploadError', function(file) {
|
|
|
|