Merge branch 'develop/wap' of http://git.dev.yoho.cn/web/yohobuy into develop/wap
Showing
1 changed file
with
2 additions
and
6 deletions
@@ -9,7 +9,7 @@ var $ = require('jquery'); | @@ -9,7 +9,7 @@ var $ = require('jquery'); | ||
9 | var $resend = $('#resend'); | 9 | var $resend = $('#resend'); |
10 | 10 | ||
11 | var tip = require('../../plugin/tip'), | 11 | var tip = require('../../plugin/tip'), |
12 | - showErrTip = tip.show; | 12 | + showTip = tip.show; |
13 | 13 | ||
14 | $resend.on('touchstart', function(e) { | 14 | $resend.on('touchstart', function(e) { |
15 | e.preventDefault(); | 15 | e.preventDefault(); |
@@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) { | @@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) { | ||
18 | url: $resend.data('url'), | 18 | url: $resend.data('url'), |
19 | type: 'GET', | 19 | type: 'GET', |
20 | success: function(data) { | 20 | success: function(data) { |
21 | - if (data.code === 200) { | ||
22 | - showErrTip(data.message); | ||
23 | - } else { | ||
24 | - showErrTip(data.message); | ||
25 | - } | 21 | + showTip(data.message); |
26 | } | 22 | } |
27 | }); | 23 | }); |
28 | }); | 24 | }); |
-
Please register or login to post a comment