Commit b47dfc768b56abd3b909acced4aaa9da78efbeb6
1 parent
4e7c7691
0.1.8
Showing
5 changed files
with
18 additions
and
12 deletions
CNLiveCommuntyModule.podspec
CNLiveCommuntyModule/Classes/ViewController/CNLiveCommuntInformViewController.m
| ... | ... | @@ -325,8 +325,14 @@ |
| 325 | 325 | CNLiveCommuntSubInputTableView * inpView = [CNLiveCommuntSubInputTableView setTableView:tableView SubDict:self.dataSource[indexPath.row] indexs:indexPath.row UserInfo:@{} ReloadBlock:^(NSDictionary * _Nonnull paramDict, NSString * _Nonnull contentString) { |
| 326 | 326 | NSMutableDictionary * tempDict = [paramDict mutableCopy]; |
| 327 | 327 | [tempDict setObject:contentString forKey:@"content"]; |
| 328 | - NSInteger index = [weakSelf.dataSource indexOfObject:paramDict]; | |
| 329 | - [weakSelf.dataSource replaceObjectAtIndex:index withObject:tempDict]; | |
| 328 | + | |
| 329 | + if ([[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"联系地址"] || [[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"联系人"] || [[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"联系电话"] || [[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"问题描述"]) { | |
| 330 | + NSInteger index = 0; | |
| 331 | + if ([[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"联系地址"]) index = 1; | |
| 332 | + if ([[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"联系电话"]) index = 2; | |
| 333 | + if ([[paramDict stringValueForKey:@"name" default:@""] isEqualToString:@"问题描述"]) index = 5; | |
| 334 | + [weakSelf.dataSource replaceObjectAtIndex:index withObject:tempDict]; | |
| 335 | + } | |
| 330 | 336 | }]; |
| 331 | 337 | inpView.delegate = self; |
| 332 | 338 | inpView.imageArray = self.imageArray; | ... | ... |
CNLiveCommuntyModule/Classes/ViewController/CNLiveCommuntyOrderViewController.m
| ... | ... | @@ -304,7 +304,7 @@ |
| 304 | 304 | if (self.showType == CNLiveCommuntyOrderShowTypeListCompletOrder) return 3; |
| 305 | 305 | if (self.showType == CNLiveCommuntyOrderShowTypeListFailureOrder) return 2; |
| 306 | 306 | if (self.showType == CNLiveCommuntyOrderShowTypeChatYetOrder) return 1; |
| 307 | - if (self.showType == CNLiveCommuntyOrderShowTypeChatReadyOrder) return [self.createMdoel.repairId isNotBlank] && ![self.createMdoel.repairId isEqualToString:[CNUserInfoManager manager].userInfoModel.uid]?1:2; | |
| 307 | + if (self.showType == CNLiveCommuntyOrderShowTypeChatReadyOrder) return [self.createMdoel.repairId isNotBlank] && [self.createMdoel.repairId isEqualToString:[CNUserInfoManager manager].userInfoModel.uid]?2:1; | |
| 308 | 308 | if (self.showType == CNLiveCommuntyOrderShowTypeChatCompletOrder) return 1; |
| 309 | 309 | } |
| 310 | 310 | return 0; | ... | ... |
CNLiveCommuntyModule/Classes/ViewModel/CNLiveCommuntViewModel.m
| ... | ... | @@ -290,7 +290,7 @@ |
| 290 | 290 | CNLiveCommuntyActivityMaintainsCreateModel * createModel = [CNLiveCommuntyActivityMaintainsCreateModel mj_objectWithKeyValues:responseObject]; |
| 291 | 291 | createModel.imgs = [createModel.img componentsSeparatedByString:@","].mutableCopy; |
| 292 | 292 | [createModel.imgs removeObject:@""]; |
| 293 | - if (createModel.showType == 1 && [createModel.repairId isNotBlank] && ![createModel.userId isEqualToString:createModel.repairId]) createModel.showType = 0; | |
| 293 | + if (createModel.showType == 1 && [createModel.repairId isNotBlank] && ![[CNUserInfoManager manager].userInfoModel.uid isEqualToString:createModel.repairId]) createModel.showType = 0; | |
| 294 | 294 | if (isChat && createModel.showType == 0) createModel.showType = 4; |
| 295 | 295 | if (isChat && createModel.showType == 1) createModel.showType = 5; |
| 296 | 296 | if (isChat && createModel.showType == 3) createModel.showType = 6; | ... | ... |
Example/CNLiveCommuntyModule/CNLIVEViewController.m
| ... | ... | @@ -144,15 +144,15 @@ |
| 144 | 144 | [self.navigationController pushViewController:signUpView animated:YES]; |
| 145 | 145 | } |
| 146 | 146 | if (indexPath.row == 6) { |
| 147 | - NSString * cmnt_id = [[NSUserDefaults standardUserDefaults] objectForKey:@"cmnt_id"]; | |
| 148 | - if ([cmnt_id isNotBlank]) { | |
| 149 | - CNLiveCommuntyOrderViewController * orderVC = [[CNLiveCommuntyOrderViewController alloc] initWithMaintenId:cmnt_id]; | |
| 150 | - [self.navigationController pushViewController:orderVC animated:YES]; | |
| 151 | - }else{ | |
| 147 | +// NSString * cmnt_id = [[NSUserDefaults standardUserDefaults] objectForKey:@"cmnt_id"]; | |
| 148 | +// if ([cmnt_id isNotBlank]) { | |
| 149 | +// CNLiveCommuntyOrderViewController * orderVC = [[CNLiveCommuntyOrderViewController alloc] initWithMaintenId:cmnt_id]; | |
| 150 | +// [self.navigationController pushViewController:orderVC animated:YES]; | |
| 151 | +// }else{ | |
| 152 | 152 | |
| 153 | - CNLiveCommuntyOrderViewController * orderVC = [[CNLiveCommuntyOrderViewController alloc] initWithMaintenId:@"cmnt2022032232427862564"]; | |
| 153 | + CNLiveCommuntyOrderViewController * orderVC = [[CNLiveCommuntyOrderViewController alloc] initWithMaintenId:@"cm2022032420637"]; | |
| 154 | 154 | [self.navigationController pushViewController:orderVC animated:YES]; |
| 155 | - } | |
| 155 | +// } | |
| 156 | 156 | |
| 157 | 157 | } |
| 158 | 158 | if (indexPath.row == 7) { | ... | ... |