Commit 55f57af4334456a4d1b8146735b0e32667684381

Authored by 梁星国
1 parent f219a73d

提交调整UI和参数

CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/Controller/CNLiveBOraganizationDetailController.m
@@ -128,23 +128,23 @@ @@ -128,23 +128,23 @@
128 CNLiveBOrganizationImageVDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveBOrganizationImageVDetailCell forIndexPath:indexPath]; 128 CNLiveBOrganizationImageVDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveBOrganizationImageVDetailCell forIndexPath:indexPath];
129 [cell editUIWithIndexPath:indexPath detailModel:self.detailModel]; 129 [cell editUIWithIndexPath:indexPath detailModel:self.detailModel];
130 return cell; 130 return cell;
131 - 131 +
132 132
133 }else { 133 }else {
134 CNLiveBOrganizationDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveBOrganizationDetailCell forIndexPath:indexPath]; 134 CNLiveBOrganizationDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveBOrganizationDetailCell forIndexPath:indexPath];
135 [cell editUIWithIndexPath:indexPath detailModel:self.detailModel]; 135 [cell editUIWithIndexPath:indexPath detailModel:self.detailModel];
136 return cell; 136 return cell;
137 } 137 }
138 -  
139 - 138 +
  139 +
140 }else { 140 }else {
141 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath]; 141 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
142 [cell setBackgroundColor:[UIColor yellowColor]]; 142 [cell setBackgroundColor:[UIColor yellowColor]];
143 return cell; 143 return cell;
144 - 144 +
145 145
146 } 146 }
147 - 147 +
148 } 148 }
149 149
150 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { 150 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
@@ -156,7 +156,7 @@ @@ -156,7 +156,7 @@
156 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { 156 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
157 157
158 if (section == 0) { 158 if (section == 0) {
159 - return [UIView new]; 159 + return [UIView new];
160 160
161 }else { 161 }else {
162 return [UIView new]; 162 return [UIView new];
@@ -172,9 +172,172 @@ @@ -172,9 +172,172 @@
172 }else if (indexPath.row == 12){ 172 }else if (indexPath.row == 12){
173 return 200; 173 return 200;
174 }else { 174 }else {
  175 +
  176 + BOOL isDetail = NO;
  177 + if (self.detailModel) {
  178 + if (self.detailModel.account) {
  179 + isDetail = YES;
  180 + }
  181 + }
  182 +
  183 + if (indexPath.row == 0) {
  184 +
  185 + NSString *titleStr = @"公司全称:";
  186 + NSString *content = @"";
  187 + if (isDetail) {
  188 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.company?self.detailModel.account.company:@""];
  189 + }
  190 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  191 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  192 + if (descHeight < 32) {
  193 + descHeight = 32;
  194 + }
  195 + return descHeight;
  196 +
  197 +
  198 + }else if (indexPath.row == 2) {
  199 +
  200 + NSString *titleStr = @"企业简称:";
  201 + NSString *content = @"";
  202 + if (isDetail) {
  203 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.sname?self.detailModel.account.sname:@""];
  204 + }
  205 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  206 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  207 + if (descHeight < 32) {
  208 + descHeight = 32;
  209 + }
  210 + return descHeight;
  211 +
  212 + }else if (indexPath.row == 3) {
  213 +
  214 + NSString *titleStr = @"企业代码:";
  215 + NSString *content = @"";
  216 + if (isDetail) {
  217 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.sp_code?self.detailModel.account.sp_code:@""];
  218 + }
  219 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  220 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  221 + if (descHeight < 32) {
  222 + descHeight = 32;
  223 + }
  224 + return descHeight;
  225 +
  226 + }else if (indexPath.row == 4) {
  227 +
  228 + NSString *titleStr = @"企业简介:";
  229 + NSString *content = @"";
  230 + if (isDetail) {
  231 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.jianjie?self.detailModel.account.jianjie:@""];
  232 + }
  233 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  234 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  235 + if (descHeight < 32) {
  236 + descHeight = 32;
  237 + }
  238 + return descHeight;
  239 +
  240 + }else if (indexPath.row == 5) {
  241 +
  242 + NSString *titleStr = @"企业地址:";
  243 + NSString *content = @"";
  244 + if (isDetail) {
  245 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.address?self.detailModel.account.address:@""];
  246 + }
  247 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  248 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  249 + if (descHeight < 32) {
  250 + descHeight = 32;
  251 + }
  252 + return descHeight;
  253 +
  254 + }else if (indexPath.row == 6) {
  255 +
  256 + NSString *titleStr = @"企业类型:";
  257 + NSString *content = @"";
  258 + if (isDetail) {
  259 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.com_type_id?self.detailModel.account.com_type_id:@""];
  260 + }
  261 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  262 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  263 + if (descHeight < 32) {
  264 + descHeight = 32;
  265 + }
  266 + return descHeight;
  267 +
  268 + }else if (indexPath.row == 7) {
  269 +
  270 + NSString *titleStr = @"网站:";
  271 + NSString *content = @"";
  272 + if (isDetail) {
  273 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.siteDomain?self.detailModel.account.siteDomain:@""];
  274 + }
  275 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  276 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  277 + if (descHeight < 32) {
  278 + descHeight = 32;
  279 + }
  280 + return descHeight;
  281 +
  282 + }else if (indexPath.row == 8) {
  283 + NSString *titleStr = @"企业法人:";
  284 + NSString *content = @"";
  285 + if (isDetail) {
  286 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.qiyefaren?self.detailModel.account.qiyefaren:@""];
  287 + }
  288 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  289 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  290 + if (descHeight < 32) {
  291 + descHeight = 32;
  292 + }
  293 + return descHeight;
  294 +
  295 + }else if (indexPath.row == 9) {
  296 + NSString *titleStr = @"联系人:";
  297 + NSString *content = @"";
  298 + if (isDetail) {
  299 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.contacts?self.detailModel.account.contacts:@""];
  300 + }
  301 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  302 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  303 + if (descHeight < 32) {
  304 + descHeight = 32;
  305 + }
  306 + return descHeight;
  307 +
  308 + }else if (indexPath.row == 10) {
  309 + NSString *titleStr = @"合同编号:";
  310 + NSString *content = @"";
  311 + if (isDetail) {
  312 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.htno?self.detailModel.account.htno:@""];
  313 + }
  314 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  315 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  316 + if (descHeight < 32) {
  317 + descHeight = 32;
  318 + }
  319 + return descHeight;
  320 + }else if (indexPath.row == 11) {
  321 + NSString *titleStr = @"营业执照号:";
  322 + NSString *content = @"";
  323 + if (isDetail) {
  324 + content = [NSString stringWithFormat:@"%@",self.detailModel.account.idCard?self.detailModel.account.idCard:@""];
  325 + }
  326 + NSString *contentStr = [NSString stringWithFormat:@"%@ %@",titleStr,content];
  327 + CGFloat descHeight = [contentStr boundingRectWithSize:CGSizeMake(KScreenWidth-2*10, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12]} context:nil].size.height + 20;
  328 + if (descHeight < 32) {
  329 + descHeight = 32;
  330 + }
  331 + return descHeight;
  332 +
  333 + }else {
  334 +
  335 + }
  336 +
  337 +
175 return 32; 338 return 32;
176 } 339 }
177 - 340 +
178 }else { 341 }else {
179 return 0.01; 342 return 0.01;
180 } 343 }
@@ -213,41 +376,41 @@ @@ -213,41 +376,41 @@
213 376
214 #pragma mark - TODO: 记得加入验证 377 #pragma mark - TODO: 记得加入验证
215 //URL: https://api.cnlive.com/open/api2/auser/getAccount.action? 378 //URL: https://api.cnlive.com/open/api2/auser/getAccount.action?
216 - NSString *strUrl = CNLiveBOrganizationValidattionStatusUrl;  
217 - NSDictionary *dict = @{  
218 - @"sid": [NSString stringWithFormat:@"%@",CNUserShareModel.uid],  
219 - @"sign":@""  
220 - };  
221 - [QMUITips showLoadingInView:self.view];  
222 - [CNLiveNetworking setAllowRequestDefaultArgument:YES];  
223 - [CNLiveNetworking setupShowDataResult:NO];  
224 - [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodPOST URLString:strUrl Param:dict CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {  
225 - [QMUITips hideAllTipsInView:self.view];  
226 -  
227 - NSLog(@"点播详情数据 = %@",responseObject);  
228 -  
229 - NSString *resultCode = [NSString stringWithFormat:@"%@", responseObject[@"errorCode"]];  
230 - NSError *err = nil;  
231 - id data = nil;  
232 - if([resultCode isEqualToString:@"0"]) {  
233 - data = responseObject[@"data"];  
234 - } else {  
235 - @try {  
236 - err = [[NSError alloc] initWithDomain:responseObject[@"errorMessage"] code:[resultCode integerValue] userInfo:nil];  
237 - } @catch (NSException *exception) {  
238 - err = [[NSError alloc] initWithDomain:@"接口异常" code:500 userInfo:nil];  
239 - }  
240 - }  
241 -  
242 - if (!error) {  
243 - CNLiveOrganizationDetailModel *detailModel = [CNLiveOrganizationDetailModel mj_objectWithKeyValues:data];  
244 - self.detailModel = detailModel;  
245 - [self.tableView reloadData];  
246 -  
247 - } 379 + NSString *strUrl = CNLiveBOrganizationValidattionStatusUrl;
  380 + NSDictionary *dict = @{
  381 + @"sid": [NSString stringWithFormat:@"%@",CNUserShareModel.uid],
  382 + @"sign":@""
  383 + };
  384 + [QMUITips showLoadingInView:self.view];
  385 + [CNLiveNetworking setAllowRequestDefaultArgument:YES];
  386 + [CNLiveNetworking setupShowDataResult:NO];
  387 + [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodPOST URLString:strUrl Param:dict CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {
  388 + [QMUITips hideAllTipsInView:self.view];
  389 +
  390 + NSLog(@"点播详情数据 = %@",responseObject);
  391 +
  392 + NSString *resultCode = [NSString stringWithFormat:@"%@", responseObject[@"errorCode"]];
  393 + NSError *err = nil;
  394 + id data = nil;
  395 + if([resultCode isEqualToString:@"0"]) {
  396 + data = responseObject[@"data"];
  397 + } else {
  398 + @try {
  399 + err = [[NSError alloc] initWithDomain:responseObject[@"errorMessage"] code:[resultCode integerValue] userInfo:nil];
  400 + } @catch (NSException *exception) {
  401 + err = [[NSError alloc] initWithDomain:@"接口异常" code:500 userInfo:nil];
  402 + }
  403 + }
  404 +
  405 + if (!error) {
  406 + CNLiveOrganizationDetailModel *detailModel = [CNLiveOrganizationDetailModel mj_objectWithKeyValues:data];
  407 + self.detailModel = detailModel;
  408 + [self.tableView reloadData];
  409 +
  410 + }
248 #pragma mark - TODO: 报错信息 411 #pragma mark - TODO: 报错信息
249 -  
250 - }]; 412 +
  413 + }];
251 414
252 415
253 416
CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/Controller/CNLiveBOrganizationValidattionController.m
@@ -707,6 +707,16 @@ @@ -707,6 +707,16 @@
707 return; 707 return;
708 } 708 }
709 709
  710 + if (!self.companyId || self.companyId.length == 0) {
  711 + [QMUITips showWithText:@"请输入企业代码" inView:AppKeyWindow hideAfterDelay:0.5];
  712 + return;
  713 + }
  714 +
  715 + if (!self.companyContent || self.companyContent.length == 0) {
  716 + [QMUITips showWithText:@"请输入企业简介" inView:AppKeyWindow hideAfterDelay:0.5];
  717 + return;
  718 + }
  719 +
710 if (!self.tipModel) { 720 if (!self.tipModel) {
711 [QMUITips showWithText:@"请选择企业类型" inView:AppKeyWindow hideAfterDelay:0.5]; 721 [QMUITips showWithText:@"请选择企业类型" inView:AppKeyWindow hideAfterDelay:0.5];
712 return; 722 return;
@@ -852,28 +862,106 @@ @@ -852,28 +862,106 @@
852 862
853 863
854 NSString *strUrl = CNLiveBOrganizationUpLoadUrl; 864 NSString *strUrl = CNLiveBOrganizationUpLoadUrl;
  865 +
  866 +
  867 + if (!self.footerView.agreementBtn.isSelected) {
  868 + [QMUITips showWithText:@"请同意安全协议" inView:AppKeyWindow hideAfterDelay:0.5];
  869 + return;
  870 + }
  871 +
  872 + if (!self.companyName || self.companyName.length == 0) {
  873 + [QMUITips showWithText:@"请输入公司全称" inView:AppKeyWindow hideAfterDelay:0.5];
  874 + return;
  875 + }
  876 +
  877 + if (!self.logoUrl || self.logoUrl.length == 0) {
  878 + [QMUITips showWithText:@"提交失败,请重试" inView:AppKeyWindow hideAfterDelay:0.5];
  879 + return;
  880 + }
  881 +
  882 + if (!self.companyShortName || self.companyShortName.length == 0) {
  883 + [QMUITips showWithText:@"请输入企业简称" inView:AppKeyWindow hideAfterDelay:0.5];
  884 + return;
  885 + }
  886 +
  887 + if (!self.companyId || self.companyId.length == 0) {
  888 + [QMUITips showWithText:@"请输入企业代码" inView:AppKeyWindow hideAfterDelay:0.5];
  889 + return;
  890 + }
  891 +
  892 + if (!self.companyContent || self.companyContent.length == 0) {
  893 + [QMUITips showWithText:@"请输入企业简介" inView:AppKeyWindow hideAfterDelay:0.5];
  894 + return;
  895 + }
  896 +
  897 + if (!self.tipModel) {
  898 + [QMUITips showWithText:@"请选择企业类型" inView:AppKeyWindow hideAfterDelay:0.5];
  899 + return;
  900 + }
  901 +
  902 + if (!self.webUrl || self.webUrl.length == 0) {
  903 + [QMUITips showWithText:@"请输入企业网站访问链接" inView:AppKeyWindow hideAfterDelay:0.5];
  904 + return;
  905 + }
  906 +
  907 + if (!self.legalPerson || self.legalPerson.length == 0) {
  908 + [QMUITips showWithText:@"请输入企业法人姓名" inView:AppKeyWindow hideAfterDelay:0.5];
  909 + return;
  910 + }
  911 +
  912 + if (!self.contact || self.contact.length == 0) {
  913 + [QMUITips showWithText:@"请输入企业联系人姓名" inView:AppKeyWindow hideAfterDelay:0.5];
  914 + return;
  915 + }
  916 +
  917 + if (!self.licenseCount || self.licenseCount.length == 0) {
  918 + [QMUITips showWithText:@"请输入营业执照号" inView:AppKeyWindow hideAfterDelay:0.5];
  919 + return;
  920 + }
  921 +
  922 + if (!self.licenseImageUrl || self.companyShortName.length == 0) {
  923 + [QMUITips showWithText:@"提交失败,请重试" inView:AppKeyWindow hideAfterDelay:0.5];
  924 + return;
  925 + }
  926 +
  927 + NSString *sid = [NSString stringWithFormat:@"%@",@"10514570"];
  928 + NSString *mobile = [NSString stringWithFormat:@"%@",@"15027621766"];
  929 + NSString *userLogo = [NSString stringWithFormat:@"%@",@"http://yweb0.cnliveimg.com/images/headImg/2019/1211/1576034177571_small.jpg"];
  930 + NSString *company = [NSString stringWithFormat:@"%@",self.companyName ? self.companyName : @""];
  931 + NSString *logo = [NSString stringWithFormat:@"%@",self.logoUrl ? self.logoUrl : @""];
  932 + NSString *sname = [NSString stringWithFormat:@"%@",self.companyShortName ? self.companyShortName : @""];
  933 + NSString *sp_code = [NSString stringWithFormat:@"%@",self.companyId ? self.companyId : @""];
  934 + NSString *jianjie = [NSString stringWithFormat:@"%@",self.companyContent ? self.companyContent : @""];
  935 + NSString *address = [NSString stringWithFormat:@"%@",self.companyAdress ? self.companyAdress : @""];
  936 + NSString *com_type_id = [NSString stringWithFormat:@"%@",self.tipModel.ID ? self.tipModel.ID : @""];
  937 + NSString *siteDomain = [NSString stringWithFormat:@"%@",self.webUrl ? self.webUrl : @""];
  938 + NSString *qiyefaren = [NSString stringWithFormat:@"%@",self.legalPerson ? self.legalPerson : @""];
  939 + NSString *contacts = [NSString stringWithFormat:@"%@",self.contact ? self.contact : @""];
  940 + NSString *htno = [NSString stringWithFormat:@"%@",self.contractCount ? self.contractCount : @""];
  941 + NSString *idCard = [NSString stringWithFormat:@"%@",self.licenseCount ? self.licenseCount : @""];
  942 + NSString *idCardPic = [NSString stringWithFormat:@"%@",self.licenseImageUrl ? self.licenseImageUrl : @""];
  943 +
855 NSMutableDictionary *dict = @{ 944 NSMutableDictionary *dict = @{
856 - @"sid": @"10514575",  
857 - @"mobile": @"15027621766",  
858 - @"userLogo": @"http://yweb0.cnliveimg.com/images/headImg/2019/1211/1576034177571_small.jpg",  
859 - @"company": @"123",//企业全称  
860 -// @"logo": self.logoUrl,//logo  
861 - @"sname": @"123",//企业简称  
862 - @"sp_code": @"123",//企业代码  
863 - @"jianjie": @"123",//企业简介  
864 - @"address": @"123",//地址  
865 - @"com_type_id": @"2",//企业类型  
866 - @"siteDomain": @"www.cnlive.com",//网站  
867 - @"qiyefaren": @"l23",//企业法人  
868 - @"contacts": @"l23",//联系人  
869 - @"idCard": @"12345678912",//营业执照号  
870 -// @"idCardPic": self.licenseImageUrl,//营业执照  
871 - @"htno":@"" 945 + @"sid": sid,
  946 + @"mobile": mobile,
  947 + @"userLogo": userLogo,
  948 + @"company": company,//企业全称
  949 + @"logo": logo,//logo
  950 + @"sname": sname,//企业简称
  951 + @"sp_code": sp_code,//企业代码
  952 + @"jianjie": jianjie,//企业简介
  953 + @"address": address,//地址
  954 + @"com_type_id": com_type_id,//企业类型
  955 + @"siteDomain": siteDomain,//网站
  956 + @"qiyefaren": qiyefaren,//企业法人
  957 + @"contacts": contacts,//联系人
  958 + @"htno":htno,//合同编号,
  959 + @"idCard": idCard,//营业执照号
  960 + @"idCardPic": idCardPic//营业执照
  961 +
872 }.mutableCopy; 962 }.mutableCopy;
873 - [dict setValue:self.logoUrl forKey:@"logo"];  
874 - [dict setValue:self.licenseImageUrl forKey:@"idCardPic"];  
875 963
876 - NSString *contentDic = [self objectToJson:dict]; 964 + NSString *contentDic = [NSString stringWithFormat:@"%@",[self objectToJson:dict]];
877 contentDic = [contentDic stringByReplacingOccurrencesOfString:@"\\/" withString:@"/"]; 965 contentDic = [contentDic stringByReplacingOccurrencesOfString:@"\\/" withString:@"/"];
878 NSMutableDictionary *dicCotent = [NSMutableDictionary dictionary]; 966 NSMutableDictionary *dicCotent = [NSMutableDictionary dictionary];
879 [dicCotent setValue:contentDic forKey:@"account"]; 967 [dicCotent setValue:contentDic forKey:@"account"];
@@ -899,8 +987,6 @@ @@ -899,8 +987,6 @@
899 } 987 }
900 } 988 }
901 989
902 -  
903 -  
904 }]; 990 }];
905 991
906 992
CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/View/CNLiveBOrganizationDetailCell.m
@@ -257,6 +257,7 @@ @@ -257,6 +257,7 @@
257 _contentL.textAlignment = NSTextAlignmentLeft; 257 _contentL.textAlignment = NSTextAlignmentLeft;
258 _contentL.textColor = RGBOF(0xB9B9B9); 258 _contentL.textColor = RGBOF(0xB9B9B9);
259 _contentL.numberOfLines = 0; 259 _contentL.numberOfLines = 0;
  260 + [_contentL sizeToFit];
260 } 261 }
261 return _contentL; 262 return _contentL;
262 } 263 }
@@ -311,19 +312,13 @@ @@ -311,19 +312,13 @@
311 [self setBackgroundColor:[UIColor whiteColor]]; 312 [self setBackgroundColor:[UIColor whiteColor]];
312 [self addSubview:self.titleL]; 313 [self addSubview:self.titleL];
313 [self addSubview:self.contentImageV]; 314 [self addSubview:self.contentImageV];
  315 + self.titleL.frame = CGRectMake(10, 10, 72, 12);
314 self.contentImageV.frame = CGRectMake(95, 10, 60, 60); 316 self.contentImageV.frame = CGRectMake(95, 10, 60, 60);
315 } 317 }
316 318
317 #pragma mark - ***layoutUI*** 319 #pragma mark - ***layoutUI***
318 - (void)layoutUI { 320 - (void)layoutUI {
319 321
320 - __weak typeof(self) weakSelf = self;  
321 - [self.titleL mas_makeConstraints:^(MASConstraintMaker *make) {  
322 - make.left.equalTo(weakSelf.mas_left).offset(10);  
323 - make.top.equalTo(weakSelf.mas_top).offset(10);  
324 - make.width.mas_equalTo(72);  
325 - make.height.mas_equalTo(12);  
326 - }];  
327 } 322 }
328 323
329 #pragma mark - ***editUI*** 324 #pragma mark - ***editUI***