Browse Source

修正图片删除不能上传

li 7 years ago
parent
commit
49c053f4c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/serviceIssue.js

+ 2 - 2
js/serviceIssue.js

@ -34,7 +34,6 @@ $(document).ready(function() {
34 34
			"url": "/ajax/ware/qo",
35 35
			"type": "GET",
36 36
			"success": function(data) {
37
				console.log(data);
38 37
				if(data.success) {
39 38
					$("#uploadDd").siblings().remove();
40 39
					$("#fileList").append("<dd></dd><dd></dd>");
@ -132,6 +131,7 @@ $(document).ready(function() {
132 131
	// 当有文件添加进来的时候
133 132
	uploader.on('fileQueued', function(file) {
134 133
		var $len = $("#fileList").find("img").length;
134
		fileId = file.id;
135 135
		if($len == 0 || $len == 1) {
136 136
			var oRemove = $("#fileList").find("dd");
137 137
			oRemove.eq(oRemove.length - 1).remove();
@ -174,6 +174,7 @@ $(document).ready(function() {
174 174
	uploader.on('uploadSuccess', function(file, data) {
175 175
		if(data.success) {
176 176
			temp.push(data.data[0].uri);
177
			uploader.removeFile(fileId);
177 178
		} else {
178 179
			$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
179 180
		}
@ -394,7 +395,6 @@ $(document).ready(function() {
394 395

395 396
	}
396 397
	$("#expertli").on("click", "li", function() {
397
		console.log($("#expertli").find(".selectNull").length)
398 398
		if(!$(this).find(".selectNull").hasClass("selectAdd"))
399 399
		if($("#expertli").find(".selectAdd").length>=5) {
400 400
			$.MsgBox.Alert('提示','相关资源最多选择5个');