|
@@ -79,22 +79,18 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
@@ -79,22 +79,18 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
79
|
});
|
79
|
});
|
80
|
}).on('touchstart', '.icon-edit', function() {
|
80
|
}).on('touchstart', '.icon-edit', function() {
|
81
|
|
81
|
|
82
|
- //var $this = $(this);
|
|
|
83
|
- //
|
|
|
84
|
- //var $cartgood = $this.closest('.shopping-cart-good');
|
|
|
85
|
- //
|
|
|
86
|
- ////var id = $this.closest('.shopping-cart-good').data('id');
|
|
|
87
|
- //
|
|
|
88
|
- //var $viewGood = $cartgood.find('.deps');
|
|
|
89
|
- // $editGoot = $cartgood.find('.calculate-num');
|
|
|
90
|
- //
|
|
|
91
|
- //if ($viewGood.hasClass('show')) {
|
|
|
92
|
- // $viewGood.removeClass('show').addClass('hide');
|
|
|
93
|
- // $editGoot.removeClass('hide').addClass('show');
|
|
|
94
|
- //} else {
|
|
|
95
|
- // $viewGood.removeClass('hide').addClass('show');
|
|
|
96
|
- // $editGoot.removeClass('show').addClass('hide');
|
|
|
97
|
- //}
|
82
|
+ var $this = $(this),
|
|
|
83
|
+ $cartgood = $this.closest('.shopping-cart-good'),
|
|
|
84
|
+ $viewGood = $cartgood.find('.deps'),
|
|
|
85
|
+ $editGoot = $cartgood.find('.calculate-num');
|
|
|
86
|
+
|
|
|
87
|
+ if ($viewGood.hasClass('show')) {
|
|
|
88
|
+ $viewGood.removeClass('show').addClass('hide');
|
|
|
89
|
+ $editGoot.removeClass('hide').addClass('show');
|
|
|
90
|
+ } else {
|
|
|
91
|
+ $viewGood.removeClass('hide').addClass('show');
|
|
|
92
|
+ $editGoot.removeClass('show').addClass('hide');
|
|
|
93
|
+ }
|
98
|
|
94
|
|
99
|
|
95
|
|
100
|
}).on('touchstart', '.icon-del', function(e) {
|
96
|
}).on('touchstart', '.icon-del', function(e) {
|