Showing
1 changed file
with
4 additions
and
2 deletions
@@ -90,9 +90,11 @@ $('.invoice').on('touchend', '.checkbox', function() { | @@ -90,9 +90,11 @@ $('.invoice').on('touchend', '.checkbox', function() { | ||
90 | 90 | ||
91 | function orderCompute(firstEnter) { | 91 | function orderCompute(firstEnter) { |
92 | var yohoCoin = orderInfo('yohoCoin'); | 92 | var yohoCoin = orderInfo('yohoCoin'); |
93 | + | ||
93 | if (firstEnter) { | 94 | if (firstEnter) { |
94 | yohoCoin = 0; | 95 | yohoCoin = 0; |
95 | } | 96 | } |
97 | + | ||
96 | $.ajax({ | 98 | $.ajax({ |
97 | method: 'POST', | 99 | method: 'POST', |
98 | url: '/cart/index/orderCompute', | 100 | url: '/cart/index/orderCompute', |
@@ -183,7 +185,7 @@ function submitOrder() { | @@ -183,7 +185,7 @@ function submitOrder() { | ||
183 | var url; | 185 | var url; |
184 | 186 | ||
185 | if (!res) { | 187 | if (!res) { |
186 | - tip.show('网络出错'); | 188 | + tip.show('系统繁忙,请稍后再试!'); |
187 | return; | 189 | return; |
188 | } | 190 | } |
189 | if (res.code === 200) { | 191 | if (res.code === 200) { |
@@ -200,7 +202,7 @@ function submitOrder() { | @@ -200,7 +202,7 @@ function submitOrder() { | ||
200 | tip.show(res.message); | 202 | tip.show(res.message); |
201 | } | 203 | } |
202 | }).fail(function() { | 204 | }).fail(function() { |
203 | - tip.show('网络出错'); | 205 | + tip.show('系统繁忙,请稍后再试!'); |
204 | }).always(function() { | 206 | }).always(function() { |
205 | isSubmiting = false; | 207 | isSubmiting = false; |
206 | loading.hideLoadingMask(); | 208 | loading.hideLoadingMask(); |
-
Please register or login to post a comment