...
|
...
|
@@ -145,10 +145,11 @@ |
|
|
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
success: function (res) {
|
|
|
var html = '';
|
|
|
$(res.localIds).each(function (key, localId) {
|
|
|
console.log(localId);
|
|
|
uploadImages(localId,1);
|
|
|
html += uploadImages(localId,2);
|
|
|
});
|
|
|
$('#dom2').prepend(html);
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
@@ -158,9 +159,11 @@ |
|
|
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
success: function (res) {
|
|
|
var html = '';
|
|
|
$(res.localIds).each(function (key, localId) {
|
|
|
uploadImages(localId,2);
|
|
|
html += uploadImages(localId,2);
|
|
|
});
|
|
|
$('#dom1').prepend(html);
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
@@ -185,7 +188,7 @@ |
|
|
" <img src=\"__CDN__/assets/advertising/img/close.png\"/>\n" +
|
|
|
" </div>\n" +
|
|
|
" </div>";
|
|
|
$('#dom1').prepend(html);
|
|
|
return html;
|
|
|
}else if(type == 2){
|
|
|
var html = "<div class=\"images\">\n" +
|
|
|
" <img src=\""+res.data+"\" class=\"images_two\"/>\n" +
|
...
|
...
|
@@ -194,7 +197,7 @@ |
|
|
" <img src=\"__CDN__/assets/advertising/img/close.png\"/>\n" +
|
|
|
" </div>\n" +
|
|
|
" </div>";
|
|
|
$('#dom2').prepend(html);
|
|
|
return html;
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
|