Authored by ZhongW

no message

... ... @@ -52,7 +52,6 @@
</div>
</li>
<span style="font-color:red">ps:只支持MP4格式</span>
</ul>
</div>
</div>
... ...
... ... @@ -58,8 +58,17 @@ g.init("/video/queryVideosList");
//
var Bll = {
newVideo: {},
selectedBoId = [],
rendBoList: function (pictureBoList) {
$(".image-list").html('');
$("#addPic").prepend(common.util.__template2($("#template2").html(),
{
pictureBoList: pictureBoList
}
));
},
toast: function (url, item, datacall) {
Bll.pictureBoList = item.pictureBoList || [];
Bll.selectedBoId = [];
var a = new common.dialog({
title: "添加视频",
... ... @@ -70,10 +79,12 @@ var Bll = {
value: "提交", callback: function () {
var data = {};
if (item.__state == 'add') {
data = datacall && datacall(Bll.clonePics, Bll.selectedBoId);
data = datacall && datacall(Bll.newVideo, Bll.selectedBoId);
} else {
data = datacall && datacall(Bll.getNewPics(Bll.clonePics), Bll.selectedBoId);
}
console.log("ajax提交的参数:"+data)
common.util.__ajax({
url: url,
data: data
... ... @@ -110,6 +121,7 @@ var Bll = {
console.log("批量接口返回数据",response);
if (response.status && response.code == 200) {
alert(" 上传成功")
/*for (var i = 0; i < response.datas.length; i++) {
var name = response.names[i];
var index = name.indexOf('.');
... ... @@ -139,6 +151,9 @@ var Bll = {
}
};
//添加
$('#addVideo').on('click', function () {
var item = {
... ... @@ -159,5 +174,9 @@ $('#addVideo').on('click', function () {
'avatar': "",//头像
'modelCard': ""//模特卡
};
Bll.toast('/shotManage/model/addModel', item, "添加视频");
Bll.toast('/shotManage/model/addModel', item, function(){
return {
productPhotoAddStrList: JSON.stringify(pictureBoList)
}
});
});
\ No newline at end of file
... ...