Authored by ZhongW

no message

@@ -52,7 +52,6 @@ @@ -52,7 +52,6 @@
52 52
53 </div> 53 </div>
54 </li> 54 </li>
55 - <span style="font-color:red">ps:只支持MP4格式</span>  
56 </ul> 55 </ul>
57 </div> 56 </div>
58 </div> 57 </div>
@@ -58,8 +58,17 @@ g.init("/video/queryVideosList"); @@ -58,8 +58,17 @@ g.init("/video/queryVideosList");
58 58
59 // 59 //
60 var Bll = { 60 var Bll = {
  61 + newVideo: {},
  62 + selectedBoId = [],
  63 + rendBoList: function (pictureBoList) {
  64 + $(".image-list").html('');
  65 + $("#addPic").prepend(common.util.__template2($("#template2").html(),
  66 + {
  67 + pictureBoList: pictureBoList
  68 + }
  69 + ));
  70 + },
61 toast: function (url, item, datacall) { 71 toast: function (url, item, datacall) {
62 - Bll.pictureBoList = item.pictureBoList || [];  
63 Bll.selectedBoId = []; 72 Bll.selectedBoId = [];
64 var a = new common.dialog({ 73 var a = new common.dialog({
65 title: "添加视频", 74 title: "添加视频",
@@ -70,10 +79,12 @@ var Bll = { @@ -70,10 +79,12 @@ var Bll = {
70 value: "提交", callback: function () { 79 value: "提交", callback: function () {
71 var data = {}; 80 var data = {};
72 if (item.__state == 'add') { 81 if (item.__state == 'add') {
73 - data = datacall && datacall(Bll.clonePics, Bll.selectedBoId); 82 + data = datacall && datacall(Bll.newVideo, Bll.selectedBoId);
74 } else { 83 } else {
75 data = datacall && datacall(Bll.getNewPics(Bll.clonePics), Bll.selectedBoId); 84 data = datacall && datacall(Bll.getNewPics(Bll.clonePics), Bll.selectedBoId);
76 } 85 }
  86 +
  87 + console.log("ajax提交的参数:"+data)
77 common.util.__ajax({ 88 common.util.__ajax({
78 url: url, 89 url: url,
79 data: data 90 data: data
@@ -110,6 +121,7 @@ var Bll = { @@ -110,6 +121,7 @@ var Bll = {
110 console.log("批量接口返回数据",response); 121 console.log("批量接口返回数据",response);
111 if (response.status && response.code == 200) { 122 if (response.status && response.code == 200) {
112 alert(" 上传成功") 123 alert(" 上传成功")
  124 +
113 /*for (var i = 0; i < response.datas.length; i++) { 125 /*for (var i = 0; i < response.datas.length; i++) {
114 var name = response.names[i]; 126 var name = response.names[i];
115 var index = name.indexOf('.'); 127 var index = name.indexOf('.');
@@ -139,6 +151,9 @@ var Bll = { @@ -139,6 +151,9 @@ var Bll = {
139 } 151 }
140 }; 152 };
141 153
  154 +
  155 +
  156 +
142 //添加 157 //添加
143 $('#addVideo').on('click', function () { 158 $('#addVideo').on('click', function () {
144 var item = { 159 var item = {
@@ -159,5 +174,9 @@ $('#addVideo').on('click', function () { @@ -159,5 +174,9 @@ $('#addVideo').on('click', function () {
159 'avatar': "",//头像 174 'avatar': "",//头像
160 'modelCard': ""//模特卡 175 'modelCard': ""//模特卡
161 }; 176 };
162 - Bll.toast('/shotManage/model/addModel', item, "添加视频"); 177 + Bll.toast('/shotManage/model/addModel', item, function(){
  178 + return {
  179 + productPhotoAddStrList: JSON.stringify(pictureBoList)
  180 + }
  181 + });
163 }); 182 });