Showing
1 changed file
with
6 additions
and
2 deletions
@@ -36,8 +36,12 @@ function getProductInfo(skn, promotionId) { | @@ -36,8 +36,12 @@ function getProductInfo(skn, promotionId) { | ||
36 | return; | 36 | return; |
37 | } | 37 | } |
38 | console.log(res); | 38 | console.log(res); |
39 | - $chosePanel.html(panelTmpl(res)); | ||
40 | - chosePanel.show(); | 39 | + if (res.code === 200) { |
40 | + $chosePanel.html(panelTmpl(res.data)); | ||
41 | + chosePanel.show(); | ||
42 | + } else { | ||
43 | + tip.show(res.message || '网络错误'); | ||
44 | + } | ||
41 | }).fail(function() { | 45 | }).fail(function() { |
42 | tip.show('网络错误'); | 46 | tip.show('网络错误'); |
43 | }); | 47 | }); |
-
Please register or login to post a comment