| | |
| | | (function(vc){ |
| | | |
| | | var _fileUrl = 'https://hc.demo.winqi.cn/callComponent/download/getFile/fileByObjId'; |
| | | vc.extends({ |
| | | propTypes: { |
| | | notifyLoadDataComponentName:vc.propTypes.string |
| | |
| | | vc.on('editOwner','openEditOwnerModal',function(_owner){ |
| | | vc.copyObject(_owner,vc.component.editOwnerInfo); |
| | | //根据memberId 查询 照片信息 |
| | | vc.component.editOwnerInfo.ownerPhoto = "https://hc.demo.winqi.cn/callComponent/download/getFileByObjId/file?objId="+ |
| | | vc.component.editOwnerInfo.memberId +"&communityId="+vc.getCommunitys().communityId; |
| | | vc.component.editOwnerInfo.ownerPhoto = _fileUrl+"?objId="+ |
| | | vc.component.editOwnerInfo.memberId +"&communityId="+vc.getCurrentCommunity().communityId+"&fileTypeCd=10000&time="+new Date(); |
| | | $('#editOwnerModel').modal('show'); |
| | | vc.component._initAddOwnerMediaForEdit(); |
| | | }); |
| | |
| | | } |
| | | |
| | | vc.component.editOwnerInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | |
| | | //编辑时 ownerPhoto 中内容不是照片内容,则清空 |
| | | if(vc.component.editOwnerInfo.ownerPhoto.indexOf(_fileUrl) != -1){ |
| | | vc.component.editOwnerInfo.ownerPhoto = ""; |
| | | } |
| | | vc.http.post( |
| | | 'editOwner', |
| | | 'changeOwner', |