...
|
...
|
@@ -108,6 +108,13 @@ e.on("validate", function() { |
|
|
return "请上传默认封面";
|
|
|
}
|
|
|
});
|
|
|
e.on("validate",function(){
|
|
|
var limitProductType=$("#limitProductType").val();
|
|
|
var activityId=$.trim($("#activityId").val());
|
|
|
if(limitProductType==2&&activityId==""){
|
|
|
return "请填写排队限购ID";
|
|
|
}
|
|
|
})
|
|
|
|
|
|
e.init();
|
|
|
|
...
|
...
|
@@ -138,7 +145,6 @@ $('.limit-add-btn').click(function(option) { |
|
|
// var $editor = $('#editor'), //文字,图片,视频容器
|
|
|
// type = $('#limit-add-form').attr('type');
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
var Bll={
|
|
|
imgVideo:function(title,item,index){
|
|
|
if(item.attachType==2||item.__attachType==2){item.extend="mp4"};
|
...
|
...
|
@@ -163,30 +169,6 @@ var Bll={ |
|
|
g.reload();
|
|
|
e1.init();
|
|
|
}
|
|
|
=======
|
|
|
var Bll = {
|
|
|
imgVideo: function(title, item, index) {
|
|
|
common.dialog.confirm(title, common.util.__template($("#picDialogTemp").html(), item), function() {
|
|
|
var _html = $.trim($("#imgVideoText").val());
|
|
|
|
|
|
if (_html) {
|
|
|
if (item.attachType) {
|
|
|
//修改
|
|
|
g.__rows[index].attachUrl = _html;
|
|
|
} else {
|
|
|
//添加
|
|
|
g.__rows.push({
|
|
|
"attachType": item.__attachType,
|
|
|
"attachUrl": _html,
|
|
|
"isDefault": 0,
|
|
|
"attachName": $("#attachName").val()
|
|
|
});
|
|
|
}
|
|
|
|
|
|
g.reload();
|
|
|
e1.init();
|
|
|
}
|
|
|
>>>>>>> ab68be0c67e4456aa77357afd5d64fc8218d2b69
|
|
|
});
|
|
|
var a = new common.edit("#upload-wrapper");
|
|
|
a.on("callback", function(obj) {
|
...
|
...
|
|