| | |
| | | headerImg: '', |
| | | context: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | photos:[] |
| | | endTime: '' |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | |
| | | _params.context = filterXSS(_params.context); |
| | | vc.copyObject(_params,vc.component.editActivitiesViewInfo); |
| | | $(".eidtSummernote").summernote('code', vc.component.editActivitiesViewInfo.context); |
| | | |
| | | vc.component.editActivitiesViewInfo.photos.push(vc.component.editActivitiesViewInfo.headerImg); |
| | | var photos = []; |
| | | photos.push(vc.component.editActivitiesViewInfo.headerImg); |
| | | vc.emit('editActivitiesView', 'uploadImage', 'notifyPhotos', vc.component.editActivitiesViewInfo.photos); |
| | | }); |
| | | |
| | | vc.on("editActivitiesViewInfo", "notifyUploadImage", function (_param) { |
| | | vc.component.editActivitiesViewInfo.photos = _param; |
| | | if(vc.notNull(_param) && _param.length >0){ |
| | | vc.component.editActivitiesViewInfo.headerImg = _param[0]; |
| | | }else{ |
| | | vc.component.editActivitiesViewInfo.headerImg = ''; |
| | | } |
| | | }); |
| | | |
| | | }, |
| | |
| | | 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: "结束时间格式错误" |
| | | }, |