| | |
| | | $(".eidtSummernote").summernote('code', vc.component.editActivitiesViewInfo.context); |
| | | var photos = []; |
| | | photos.push(vc.component.editActivitiesViewInfo.headerImg); |
| | | vc.emit('editActivitiesView', 'uploadImage', 'notifyPhotos', vc.component.editActivitiesViewInfo.photos); |
| | | vc.emit('editActivitiesView', 'uploadImage', 'notifyPhotos', photos); |
| | | }); |
| | | |
| | | vc.on("editActivitiesViewInfo", "notifyUploadImage", function (_param) { |
| | |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "头部照片不能为空" |
| | | }, |
| | | { |
| | | limit: "maxin", |
| | | param: "1,200", |
| | | errInfo: "头部照片格式错误" |
| | | }, |
| | | } |
| | | ], |
| | | 'editActivitiesViewInfo.context': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "活动内容不能为空" |
| | | }, |
| | | { |
| | | limit: "maxin", |
| | | param: "1,4000", |
| | | errInfo: "活动内容太长" |
| | | }, |
| | | } |
| | | ], |
| | | 'editActivitiesViewInfo.startTime': [ |
| | | { |
| | |
| | | errInfo: "开始时间不能为空" |
| | | }, |
| | | { |
| | | limit: "date", |
| | | limit: "dateTime", |
| | | param: "", |
| | | errInfo: "开始时间格式错误" |
| | | }, |
| | |
| | | errInfo: "结束时间不能为空" |
| | | }, |
| | | { |
| | | limit: "date", |
| | | limit: "dateTime", |
| | | param: "", |
| | | errInfo: "结束时间格式错误" |
| | | }, |
| | |
| | | placeholder:'必填,请输入公告内容', |
| | | callbacks : { |
| | | onImageUpload: function(files, editor, $editable) { |
| | | sendEditFile(files); |
| | | vc.component.sendEditFile(files); |
| | | }, |
| | | onChange:function(contents,$editable){ |
| | | vc.component.editActivitiesViewInfo.context = contents; |