Commit 3345fa1f authored by admin's avatar admin

跳转错误的bug

parent 46d2d8de
...@@ -650,41 +650,60 @@ ...@@ -650,41 +650,60 @@
// cell点击事件 // cell点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
if (indexPath.section == 0) { if (_titleArray.count == 5) {
InspectTaskViewController *inspectTaskVC = [[InspectTaskViewController alloc] init]; if (indexPath.section == 0) {
TaskListModel *taskList = self.taskListDataArray[indexPath.row]; InspectTaskViewController *inspectTaskVC = [[InspectTaskViewController alloc] init];
inspectTaskVC.uuid = taskList.uuid; TaskListModel *taskList = self.taskListDataArray[indexPath.row];
inspectTaskVC.store_uuid = taskList.store_uuid; inspectTaskVC.uuid = taskList.uuid;
inspectTaskVC.multiplier = (CGFloat)taskList.reportCount / taskList.questionCount ; inspectTaskVC.store_uuid = taskList.store_uuid;
self.hidesBottomBarWhenPushed = YES; inspectTaskVC.multiplier = (CGFloat)taskList.reportCount / taskList.questionCount ;
[self.navigationController pushViewController:inspectTaskVC animated:YES]; self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:inspectTaskVC animated:YES];
} else if (indexPath.section == 1) {
if (indexPath.row == 0) {
NSLog(@"不能点击");
} else { } else {
RankListModel *rankList = _allRankListArray[indexPath.row - 1]; QuestionDetailViewController *questionDetailVC = [[QuestionDetailViewController alloc] init];
RankDetailViewController *rankDetailVC = [[RankDetailViewController alloc] init]; QuestionModel *question = self.allQuestionArray[indexPath.row];
rankDetailVC.indexRow = indexPath.section - 2; questionDetailVC.questionUuid = question.uuid;
rankDetailVC.uuid = rankList.uuid;
rankDetailVC.store_uuid = rankList.store_uuid;
rankDetailVC.storeAddress = rankList.storeAddress;
rankDetailVC.storePictures = rankList.storePictures;
self.hidesBottomBarWhenPushed = YES; self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:rankDetailVC animated:YES]; [self.navigationController pushViewController:questionDetailVC animated:YES];
} }
} else { } else {
QuestionDetailViewController *questionDetailVC = [[QuestionDetailViewController alloc] init];
QuestionModel *question = self.allQuestionArray[indexPath.row];
questionDetailVC.questionUuid = question.uuid;
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:questionDetailVC animated:YES];
if (indexPath.section == 0) {
InspectTaskViewController *inspectTaskVC = [[InspectTaskViewController alloc] init];
TaskListModel *taskList = self.taskListDataArray[indexPath.row];
inspectTaskVC.uuid = taskList.uuid;
inspectTaskVC.store_uuid = taskList.store_uuid;
inspectTaskVC.multiplier = (CGFloat)taskList.reportCount / taskList.questionCount ;
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:inspectTaskVC animated:YES];
} else if (indexPath.section == 1) {
if (indexPath.row == 0) {
NSLog(@"不能点击");
} else {
RankListModel *rankList = _allRankListArray[indexPath.row - 1];
RankDetailViewController *rankDetailVC = [[RankDetailViewController alloc] init];
rankDetailVC.indexRow = indexPath.section - 2;
rankDetailVC.uuid = rankList.uuid;
rankDetailVC.store_uuid = rankList.store_uuid;
rankDetailVC.storeAddress = rankList.storeAddress;
rankDetailVC.storePictures = rankList.storePictures;
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:rankDetailVC animated:YES];
}
} else {
QuestionDetailViewController *questionDetailVC = [[QuestionDetailViewController alloc] init];
QuestionModel *question = self.allQuestionArray[indexPath.row];
questionDetailVC.questionUuid = question.uuid;
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:questionDetailVC animated:YES];
}
} }
} }
......
...@@ -87,6 +87,8 @@ ...@@ -87,6 +87,8 @@
{ {
// url // url
NSString *url = [NSString stringWithFormat:@"%@%@%@", kRedStarURL, kLoginURL, username]; NSString *url = [NSString stringWithFormat:@"%@%@%@", kRedStarURL, kLoginURL, username];
url = [url stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
// password // password
NSString *passwordMD5 = [CommonFunc md5:password]; NSString *passwordMD5 = [CommonFunc md5:password];
// 参数 // 参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment