|
@@ -17,6 +17,7 @@
|
|
|
#import "KVViewController.h"
|
|
#import "KVViewController.h"
|
|
|
#import <QuickLook/QuickLook.h>
|
|
#import <QuickLook/QuickLook.h>
|
|
|
#import "config.h"
|
|
#import "config.h"
|
|
|
|
|
+#import "RAConvertor.h"
|
|
|
|
|
|
|
|
static const int delta = 25;
|
|
static const int delta = 25;
|
|
|
|
|
|
|
@@ -100,7 +101,8 @@ static const int delta = 25;
|
|
|
-(void)cellDoubleTapAction:(UIGestureRecognizer*)gestureRecognizer
|
|
-(void)cellDoubleTapAction:(UIGestureRecognizer*)gestureRecognizer
|
|
|
{
|
|
{
|
|
|
NSLog(@"cell double tap");
|
|
NSLog(@"cell double tap");
|
|
|
-
|
|
|
|
|
|
|
+ UITableViewCell* cell = (UITableViewCell*)[gestureRecognizer view];
|
|
|
|
|
+ NSIndexPath* indexPath=[self.tableview indexPathForCell:cell];
|
|
|
//strongSelf.content_action
|
|
//strongSelf.content_action
|
|
|
if(self.content_action!=nil)
|
|
if(self.content_action!=nil)
|
|
|
{
|
|
{
|
|
@@ -132,7 +134,20 @@ static const int delta = 25;
|
|
|
}
|
|
}
|
|
|
else if([module isEqualToString:@"kv_detail"])
|
|
else if([module isEqualToString:@"kv_detail"])
|
|
|
{
|
|
{
|
|
|
- NSMutableDictionary *params = action[@"params"];
|
|
|
|
|
|
|
+ NSMutableDictionary *params = [NSMutableDictionary new];
|
|
|
|
|
+ params[@"query_id"] = self.params[@"query_id"];
|
|
|
|
|
+
|
|
|
|
|
+ NSMutableDictionary *criteria =[NSMutableDictionary new];
|
|
|
|
|
+ for(NSString* key in [action[@"params"] allKeys] )
|
|
|
|
|
+ {
|
|
|
|
|
+ NSArray* item =self.content_data[[NSString stringWithFormat:@"item_%ld",indexPath.row]];
|
|
|
|
|
+ int idx =[action[@"params"][key] intValue];
|
|
|
|
|
+ criteria[key]=item[ idx];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ params[@"criteria"]=[RAConvertor dict2string:action[@"params"]] ;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
UIAlertView * waitalert = [RAUtils waiting_alert:@"Loading..." title:@"Please wait"];
|
|
UIAlertView * waitalert = [RAUtils waiting_alert:@"Loading..." title:@"Please wait"];
|