| | |
| | | |
| | | // 文件上传成功,给item添加成功class, 用样式标记上传成功。 |
| | | bindedObj.on('uploadSuccess', function(file,response) { |
| | | if (200 == response.code) { |
| | | var uploadPath = null; |
| | | if (typeof response === "string") { |
| | | uploadPath = response; |
| | | } else if (response != null) { |
| | | uploadPath = response.data || response.str || response.url || response.imgUrl; |
| | | } |
| | | if (uploadPath) { |
| | | Feng.success("上传成功"); |
| | | $("#" + me.pictureId).val(response.data); |
| | | $("#" + me.pictureId).val(uploadPath); |
| | | } else { |
| | | Feng.error("上传失败"); |
| | | } |
| | |
| | | |
| | | window.$WebUpload = $WebUpload; |
| | | |
| | | }()); |
| | | }()); |