|
@@ -390,6 +390,10 @@
|
|
|
|
|
|
|
|
NSString* product_id = [item_json valueForKey:@"product_id"];
|
|
NSString* product_id = [item_json valueForKey:@"product_id"];
|
|
|
|
|
|
|
|
|
|
+ int is_rate = [item_json[@"is_rate"] intValue];
|
|
|
|
|
+ if(is_rate==1)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
DetailViewController* dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"DetailViewController" ];
|
|
DetailViewController* dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"DetailViewController" ];
|
|
|
// dvc
|
|
// dvc
|
|
|
|
|
|
|
@@ -2030,7 +2034,8 @@
|
|
|
NSMutableDictionary * item_json = [self.content_arr[indexPath.row ] mutableCopy];// [[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]]
|
|
NSMutableDictionary * item_json = [self.content_arr[indexPath.row ] mutableCopy];// [[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]]
|
|
|
NSString* product_id = [item_json valueForKey:@"product_id"];
|
|
NSString* product_id = [item_json valueForKey:@"product_id"];
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ int is_rate = [item_json[@"is_rate"] intValue];
|
|
|
|
|
+
|
|
|
NSMutableArray* arr=[@[] mutableCopy];
|
|
NSMutableArray* arr=[@[] mutableCopy];
|
|
|
|
|
|
|
|
if(product_id.length>0)
|
|
if(product_id.length>0)
|
|
@@ -2038,10 +2043,10 @@
|
|
|
|
|
|
|
|
[arr addObject:deleteRowAction];
|
|
[arr addObject:deleteRowAction];
|
|
|
|
|
|
|
|
- if(product_id.length>0)
|
|
|
|
|
|
|
+ if(product_id.length>0&& is_rate==0)
|
|
|
[arr addObject:addWatchAction];
|
|
[arr addObject:addWatchAction];
|
|
|
|
|
|
|
|
- if(appDelegate.can_set_cart_price && product_id.length>0)
|
|
|
|
|
|
|
+ if(appDelegate.can_set_cart_price && product_id.length>0&& is_rate==0)
|
|
|
{
|
|
{
|
|
|
[arr addObject:editRowAction];
|
|
[arr addObject:editRowAction];
|
|
|
// [arr addObject:freeRowAction];
|
|
// [arr addObject:freeRowAction];
|