|
|
@@ -1459,7 +1459,7 @@
|
|
|
OrderDetailSignatureCell * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
|
|
|
NSString* img_url = [self.content_data valueForKey:@"sign_url"];
|
|
|
|
|
|
- cell.sign_img.userInteractionEnabled = YES;
|
|
|
+ cell.sign_img.userInteractionEnabled = NO;
|
|
|
__block BOOL hasTapGesture = NO;
|
|
|
[cell.sign_img.gestureRecognizers enumerateObjectsUsingBlock:^(__kindof UIGestureRecognizer * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
|
|
|
@@ -1475,6 +1475,23 @@
|
|
|
[cell.sign_img addGestureRecognizer:signatureTap];
|
|
|
}
|
|
|
|
|
|
+ int status_code = [[self.content_data valueForKey:@"orderStatus"] intValue];
|
|
|
+ bool offline_edit =[[self.content_data valueForKey:@"offline_edit"] boolValue];
|
|
|
+ if(status_code==1) {
|
|
|
+
|
|
|
+ if(appDelegate.offline_mode==false||offline_edit) {
|
|
|
+ cell.sign_img.userInteractionEnabled = YES;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ else if(status_code==0) {
|
|
|
+ if(appDelegate.offline_mode==false||offline_edit) {
|
|
|
+ cell.sign_img.userInteractionEnabled = YES;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
NSString* file_name=[img_url lastPathComponent];
|
|
|
NSData* img_data=[iSalesDB load_cached_img:file_name loadFrom:img_url];
|
|
|
if(img_data!=nil)
|