Showing
1 changed file
with
3 additions
and
3 deletions
@@ -112,7 +112,7 @@ orderHammer.on('tap', function(e) { | @@ -112,7 +112,7 @@ orderHammer.on('tap', function(e) { | ||
112 | //Order delete | 112 | //Order delete |
113 | $.ajax({ | 113 | $.ajax({ |
114 | type: 'GET', | 114 | type: 'GET', |
115 | - url: '/home/delOrder', | 115 | + url: '/home/deleteOrder', |
116 | data: { | 116 | data: { |
117 | id: id | 117 | id: id |
118 | }, | 118 | }, |
@@ -136,8 +136,8 @@ orderHammer.on('tap', function(e) { | @@ -136,8 +136,8 @@ orderHammer.on('tap', function(e) { | ||
136 | success: function(data) { | 136 | success: function(data) { |
137 | if (data.code === 200) { | 137 | if (data.code === 200) { |
138 | 138 | ||
139 | - //取消订单 | ||
140 | - alert('order cancel'); | 139 | + //取消订单页面刷新 |
140 | + location.href = location.href; | ||
141 | } | 141 | } |
142 | } | 142 | } |
143 | }); | 143 | }); |
-
Please register or login to post a comment