Commit 3345fa1f authored by admin's avatar admin

跳转错误的bug

parent 46d2d8de
...@@ -650,6 +650,24 @@ ...@@ -650,6 +650,24 @@
// cell点击事件 // cell点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
if (_titleArray.count == 5) {
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 {
QuestionDetailViewController *questionDetailVC = [[QuestionDetailViewController alloc] init];
QuestionModel *question = self.allQuestionArray[indexPath.row];
questionDetailVC.questionUuid = question.uuid;
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:questionDetailVC animated:YES];
}
} else {
if (indexPath.section == 0) { if (indexPath.section == 0) {
InspectTaskViewController *inspectTaskVC = [[InspectTaskViewController alloc] init]; InspectTaskViewController *inspectTaskVC = [[InspectTaskViewController alloc] init];
TaskListModel *taskList = self.taskListDataArray[indexPath.row]; TaskListModel *taskList = self.taskListDataArray[indexPath.row];
...@@ -685,6 +703,7 @@ ...@@ -685,6 +703,7 @@
}
} }
} }
......
...@@ -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