code review by hf: do fixes bug to use yoho coin
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -30,6 +30,9 @@ function init() { | @@ -30,6 +30,9 @@ function init() { | ||
30 | // info 必须是 JSON 字符串 | 30 | // info 必须是 JSON 字符串 |
31 | try { | 31 | try { |
32 | info = JSON.parse(info); | 32 | info = JSON.parse(info); |
33 | + | ||
34 | + // 2015/12/31 hf: fixes bug to 购物车页面调用该JS, 会导致有YOHO币,值却没有传给服务端. 因此需要再设置一下 | ||
35 | + info['yohoCoin'] = $('.coin').data('yoho-coin') || 0; | ||
33 | } catch (e) { | 36 | } catch (e) { |
34 | init(); | 37 | init(); |
35 | } | 38 | } |
-
Please register or login to post a comment