|
|
@@ -491,6 +491,7 @@
|
|
|
self.sortIndex = 0;
|
|
|
self.editedRow = -1;
|
|
|
self.deletedRow = -1;
|
|
|
+ self.indexPath = [NSIndexPath indexPathForRow:-1 inSection:0];
|
|
|
|
|
|
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(refresh_btn_click:)];
|
|
|
// tap.minimumPressDuration = 0.8; //定义按的时间
|
|
|
@@ -1172,11 +1173,14 @@
|
|
|
}
|
|
|
|
|
|
cell.backgroundColor = [UIColor whiteColor];// [UIColor whiteColor];;
|
|
|
- if (indexPath.row == self.editedRow) {
|
|
|
- cell.backgroundColor = UIColorFromRGB(0xff9933);
|
|
|
- }
|
|
|
- if (indexPath.row == self.deletedRow) {
|
|
|
- cell.backgroundColor = UIColorFromRGB(0x336699);
|
|
|
+// if (indexPath.row == self.editedRow) {
|
|
|
+// cell.backgroundColor = UIColorFromRGB(0xEAEBED);
|
|
|
+// }
|
|
|
+// if (indexPath.row == self.deletedRow) {
|
|
|
+// cell.backgroundColor = UIColorFromRGB(0xEAEBED);
|
|
|
+// }
|
|
|
+ if (indexPath.row == self.indexPath.row) {
|
|
|
+ cell.backgroundColor = UIColorFromRGB(0xEAEBED);
|
|
|
}
|
|
|
|
|
|
return cell;
|
|
|
@@ -1464,6 +1468,9 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:
|
|
|
if([[cart_json valueForKey:@"result"] intValue]==2)
|
|
|
{
|
|
|
self.deletedRow = delete_last ? -1 : self.indexPath.row;
|
|
|
+ if (delete_last) {
|
|
|
+ self.indexPath = [NSIndexPath indexPathForRow:count - 2 inSection:0];
|
|
|
+ }
|
|
|
[self reload_data];
|
|
|
}
|
|
|
else
|