Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
5 additions
and
0 deletions
@@ -595,9 +595,13 @@ class Helpers | @@ -595,9 +595,13 @@ class Helpers | ||
595 | $oneGoods['inValid'] = true; | 595 | $oneGoods['inValid'] = true; |
596 | } elseif ($value['goods_type'] == 'gift' && !isset($value['isAdvanceBuy'])) { | 596 | } elseif ($value['goods_type'] == 'gift' && !isset($value['isAdvanceBuy'])) { |
597 | $oneGoods['isGift'] = true; | 597 | $oneGoods['isGift'] = true; |
598 | + $oneGoods['salesPrice'] = self::transPrice($value['sales_price']); | ||
599 | + $oneGoods['price'] = self::transPrice($value['sale_price']); | ||
598 | } elseif ($value['goods_type'] == 'price_gift') { | 600 | } elseif ($value['goods_type'] == 'price_gift') { |
599 | $oneGoods['showCheckbox'] = true; | 601 | $oneGoods['showCheckbox'] = true; |
600 | $oneGoods['isAdvanceBuy'] = true; | 602 | $oneGoods['isAdvanceBuy'] = true; |
603 | + $oneGoods['salesPrice'] = self::transPrice($value['sales_price']); | ||
604 | + $oneGoods['price'] = self::transPrice($value['sale_price']); | ||
601 | } else { | 605 | } else { |
602 | $oneGoods['showCheckbox'] = true; | 606 | $oneGoods['showCheckbox'] = true; |
603 | } | 607 | } |
@@ -634,6 +638,7 @@ class Helpers | @@ -634,6 +638,7 @@ class Helpers | ||
634 | $gift['promotionTitle'] = $value['promotion_title']; | 638 | $gift['promotionTitle'] = $value['promotion_title']; |
635 | 639 | ||
636 | foreach ($value['goods_list'] as $single) { | 640 | foreach ($value['goods_list'] as $single) { |
641 | + $oneGoods = array(); | ||
637 | $oneGoods['id'] = $single['product_skn']; | 642 | $oneGoods['id'] = $single['product_skn']; |
638 | $oneGoods['name'] = $single['product_name']; | 643 | $oneGoods['name'] = $single['product_name']; |
639 | $oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 160) : ''; | 644 | $oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 160) : ''; |
-
Please register or login to post a comment