|
@ -131,6 +131,7 @@ $(function() {
|
131
|
131
|
// 当有文件添加进来的时候
|
132
|
132
|
uploader.on('fileQueued', function(file) {
|
133
|
133
|
var $len = $("#fileList").find("img").length;
|
|
134
|
fileId = file.id;
|
134
|
135
|
if($len == 0 || $len == 1) {
|
135
|
136
|
var oRemove = $("#fileList").find("dd");
|
136
|
137
|
oRemove.eq(oRemove.length - 1).remove();
|
|
@ -173,6 +174,7 @@ $(function() {
|
173
|
174
|
uploader.on('uploadSuccess', function(file, data) {
|
174
|
175
|
if(data.success) {
|
175
|
176
|
temp.push(data.data[0].uri);
|
|
177
|
uploader.removeFile(fileId);
|
176
|
178
|
} else {
|
177
|
179
|
$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
|
178
|
180
|
}
|