| | |
| | | |
| | | vc.on("addActivitiesView", "notifyUploadImage", function (_param) { |
| | | if(!vc.isEmpty(_param) && _param.length >0){ |
| | | vc.component.addActivitiesView.headerImg = _param[0]; |
| | | vc.component.addActivitiesViewInfo.headerImg = _param[0]; |
| | | }else{ |
| | | vc.component.addActivitiesView.headerImg = ''; |
| | | vc.component.addActivitiesViewInfo.headerImg = ''; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "头部照片不能为空" |
| | | }, |
| | | { |
| | | limit: "maxin", |
| | | param: "1,200", |
| | | errInfo: "头部照片格式错误" |
| | | }, |
| | | } |
| | | ], |
| | | 'addActivitiesViewInfo.context': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "活动内容不能为空" |
| | | }, |
| | | { |
| | | limit: "maxin", |
| | | param: "1,4000", |
| | | errInfo: "活动内容太长" |
| | | }, |
| | | } |
| | | ], |
| | | 'addActivitiesViewInfo.startTime': [ |
| | | { |
| | |
| | | errInfo: "开始时间不能为空" |
| | | }, |
| | | { |
| | | limit: "date", |
| | | limit: "dateTime", |
| | | param: "", |
| | | errInfo: "开始时间格式错误" |
| | | }, |
| | |
| | | errInfo: "结束时间不能为空" |
| | | }, |
| | | { |
| | | limit: "date", |
| | | limit: "dateTime", |
| | | param: "", |
| | | errInfo: "结束时间格式错误" |
| | | }, |