|
|
|
@ -414,6 +414,7 @@
|
|
|
|
|
|
|
|
|
|
function uploadFile() {
|
|
|
|
|
if (uploaderFile === false) {
|
|
|
|
|
iconInfo = {userId:"kazaff", md5:"",icon:1}; //用户会话信息
|
|
|
|
|
uploaderFile = true;
|
|
|
|
|
var uploader = WebUploader.create({
|
|
|
|
|
// 选完文件后,是否自动上传。
|
|
|
|
@ -432,8 +433,8 @@
|
|
|
|
|
paste: document.body,
|
|
|
|
|
accept: {
|
|
|
|
|
title: '文件',
|
|
|
|
|
extensions: 'png,gif,jpg,jpeg,bmp,txt,doc*,xlsx,asp,pdf',
|
|
|
|
|
mimeTypes: '.png,.gif,.jpg,.jpeg,.bmp,.txt,.doc*,.xlsx,.asp,.pdf',
|
|
|
|
|
extensions: 'png,gif,jpg,jpeg,bmp,txt,doc*,xls*,asp',
|
|
|
|
|
mimeTypes: '.png,.gif,.jpg,.jpeg,.bmp,.txt,.doc*,.xls*,.asp',
|
|
|
|
|
},
|
|
|
|
|
// 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
|
|
|
|
|
resize: false,
|
|
|
|
@ -443,6 +444,7 @@
|
|
|
|
|
thumb:true,
|
|
|
|
|
compress:false,
|
|
|
|
|
prepareNextFile: true,
|
|
|
|
|
formData: function(){return $.extend(true, {}, iconInfo);},
|
|
|
|
|
chunked:false,
|
|
|
|
|
duplicate: true
|
|
|
|
|
});
|
|
|
|
@ -500,6 +502,7 @@
|
|
|
|
|
|
|
|
|
|
uploader.on( 'uploadSuccess', function( file, response ) {
|
|
|
|
|
var text = '已上传';
|
|
|
|
|
console.log(response);
|
|
|
|
|
if (response.status == 1) {
|
|
|
|
|
$('#transfer_proof').val(response.id);
|
|
|
|
|
} else {
|
|
|
|
|