...
|
...
|
@@ -127,21 +127,7 @@ edit.prototype = { |
|
|
}
|
|
|
|
|
|
/*初始化文件上传*/
|
|
|
<<<<<<< HEAD
|
|
|
if ($('input[type="file"]', that.el).length > 0) {
|
|
|
$('input[type="file"]', that.el).each(function() {
|
|
|
var src = $(this).attr("value");
|
|
|
var _id = $(this).attr("id") || $(this).attr("name");
|
|
|
var Temp = '<ul class="upload-image-list" id="img-' + _id + '">';
|
|
|
Temp += '<li class="fileinput-button">';
|
|
|
Temp += '<a class="fileinput-button-icon" href="javascript:void(0);">';
|
|
|
if (src) {
|
|
|
var ext = src.split('.').pop().toLowerCase();
|
|
|
if (ext == "mp4") {
|
|
|
Temp += '<video width="76" height="80" src="' + src + '"></video>';
|
|
|
} else {
|
|
|
Temp += '<img width="76" height="80" src="' + src + '">';
|
|
|
=======
|
|
|
|
|
|
if($('input[type="file"]',that.el).length>0){
|
|
|
$('input[type="file"]',that.el).each(function(){
|
|
|
var src=$(this).attr("value");
|
...
|
...
|
@@ -158,11 +144,7 @@ edit.prototype = { |
|
|
}
|
|
|
}else{
|
|
|
Temp+='+';
|
|
|
>>>>>>> master
|
|
|
}
|
|
|
} else {
|
|
|
Temp += '+';
|
|
|
}
|
|
|
Temp += '</a>';
|
|
|
Temp += '</li>';
|
|
|
Temp += '</ul>';
|
...
|
...
|
@@ -180,7 +162,6 @@ edit.prototype = { |
|
|
// $(this).attr("value",response.data);
|
|
|
// }
|
|
|
// });
|
|
|
<<<<<<< HEAD
|
|
|
$('input[type="file"]', that.el).ajaxfileupload({
|
|
|
'action': '/ajax/upload',
|
|
|
'params': {
|
...
|
...
|
@@ -188,14 +169,6 @@ edit.prototype = { |
|
|
"bucket": that.option.bucket || 'smart',
|
|
|
__type: "upload"
|
|
|
},
|
|
|
=======
|
|
|
if(!that.option.bucket){
|
|
|
alert("bucket不存在");
|
|
|
}
|
|
|
$('input[type="file"]',that.el).ajaxfileupload({
|
|
|
'action': '/ajax/upload',
|
|
|
'params':{"userId":543883,"bucket":that.option.bucket,__type:"upload"},
|
|
|
>>>>>>> master
|
|
|
'onComplete': function(response) {
|
|
|
if (response.status && response.code == 200) {
|
|
|
var _w = $(this).next().find('.fileinput-button-icon');
|
...
|
...
|
|