code review by chenglong.wang
Showing
2 changed files
with
24 additions
and
0 deletions
@@ -127,10 +127,22 @@ orderHammer.on('tap', function(e) { | @@ -127,10 +127,22 @@ orderHammer.on('tap', function(e) { | ||
127 | }, | 127 | }, |
128 | success: function(data) { | 128 | success: function(data) { |
129 | if (data.code === 200) { | 129 | if (data.code === 200) { |
130 | + dialog.showDialog({ | ||
131 | + dialogText: '删除订单成功', | ||
132 | + autoHide: true, | ||
133 | + fast: true | ||
134 | + }); | ||
130 | 135 | ||
131 | //删除订单页面刷新 | 136 | //删除订单页面刷新 |
132 | history.go(0); | 137 | history.go(0); |
133 | } | 138 | } |
139 | + }, | ||
140 | + error: function() { | ||
141 | + dialog.showDialog({ | ||
142 | + dialogText: '删除订单失败', | ||
143 | + autoHide: true, | ||
144 | + fast: true | ||
145 | + }); | ||
134 | } | 146 | } |
135 | }); | 147 | }); |
136 | }); | 148 | }); |
@@ -152,10 +164,22 @@ orderHammer.on('tap', function(e) { | @@ -152,10 +164,22 @@ orderHammer.on('tap', function(e) { | ||
152 | }, | 164 | }, |
153 | success: function(data) { | 165 | success: function(data) { |
154 | if (data.code === 200) { | 166 | if (data.code === 200) { |
167 | + dialog.showDialog({ | ||
168 | + dialogText: '取消订单成功', | ||
169 | + autoHide: true, | ||
170 | + fast: true | ||
171 | + }); | ||
155 | 172 | ||
156 | //取消订单页面刷新 | 173 | //取消订单页面刷新 |
157 | history.go(0); | 174 | history.go(0); |
158 | } | 175 | } |
176 | + }, | ||
177 | + error: function() { | ||
178 | + dialog.showDialog({ | ||
179 | + dialogText: '取消订单失败', | ||
180 | + autoHide: true, | ||
181 | + fast: true | ||
182 | + }); | ||
159 | } | 183 | } |
160 | }); | 184 | }); |
161 | }); | 185 | }); |
-
Please register or login to post a comment