Showing
1 changed file
with
4 additions
and
5 deletions
@@ -32,19 +32,18 @@ const _getRelatedData = (idList) => { | @@ -32,19 +32,18 @@ const _getRelatedData = (idList) => { | ||
32 | method: 'h5.product.batch' | 32 | method: 'h5.product.batch' |
33 | }).then((result) => { | 33 | }).then((result) => { |
34 | 34 | ||
35 | - let goods = [], | ||
36 | - productList = []; | 35 | + let goods = []; |
37 | 36 | ||
38 | if (result && result.data && result.data.product_list && result.code === 200) { | 37 | if (result && result.data && result.data.product_list && result.code === 200) { |
39 | 38 | ||
40 | _.forEach(result.data.product_list, function(val) { | 39 | _.forEach(result.data.product_list, function(val) { |
41 | 40 | ||
42 | - if (val.student_price) { | ||
43 | - productList.push(val); | 41 | + if (!val.student_price) { |
42 | + val.student_price = val.vip2_price; | ||
44 | } | 43 | } |
45 | }); | 44 | }); |
46 | 45 | ||
47 | - goods = productProcess.processProductList(productList); | 46 | + goods = productProcess.processProductList(result.data.product_list); |
48 | 47 | ||
49 | return goods; | 48 | return goods; |
50 | } else { | 49 | } else { |
-
Please register or login to post a comment