do modify product detail page bugs
Showing
3 changed files
with
11 additions
and
12 deletions
@@ -37,7 +37,6 @@ class IndexController extends AbstractAction | @@ -37,7 +37,6 @@ class IndexController extends AbstractAction | ||
37 | * 设置升级公告路由 | 37 | * 设置升级公告路由 |
38 | * | 38 | * |
39 | */ | 39 | */ |
40 | - | ||
41 | public function systemUpdateAction() | 40 | public function systemUpdateAction() |
42 | { | 41 | { |
43 | $this->setTitle('关于系统升级的公告'); | 42 | $this->setTitle('关于系统升级的公告'); |
@@ -79,7 +79,7 @@ class DetailModel | @@ -79,7 +79,7 @@ class DetailModel | ||
79 | $result['goodsPrice'] = array(); | 79 | $result['goodsPrice'] = array(); |
80 | $result['goodsPrice']['currentPrice'] = $baseInfo['productPriceBo']['formatSalesPrice']; | 80 | $result['goodsPrice']['currentPrice'] = $baseInfo['productPriceBo']['formatSalesPrice']; |
81 | if ($baseInfo['productPriceBo']['formatMarketPrice'] !== $baseInfo['productPriceBo']['formatSalesPrice']) { | 81 | if ($baseInfo['productPriceBo']['formatMarketPrice'] !== $baseInfo['productPriceBo']['formatSalesPrice']) { |
82 | - $result['goodsPrice']['previousPrice'] = strtr($baseInfo['productPriceBo']['formatMarketPrice'], array('¥' => '')); | 82 | + $result['goodsPrice']['previousPrice'] = $baseInfo['productPriceBo']['formatMarketPrice']; |
83 | } | 83 | } |
84 | } | 84 | } |
85 | // VIP商品价格 | 85 | // VIP商品价格 |
@@ -87,7 +87,7 @@ class DetailModel | @@ -87,7 +87,7 @@ class DetailModel | ||
87 | $build = array(); | 87 | $build = array(); |
88 | foreach ($baseInfo['productPriceBo']['vipPrices'] as $value) { | 88 | foreach ($baseInfo['productPriceBo']['vipPrices'] as $value) { |
89 | $build['level'] = $value['vipLevel']; | 89 | $build['level'] = $value['vipLevel']; |
90 | - $build['text'] = strtr($value['vipPrice'], array('¥' => '')); | 90 | + $build['text'] = $value['vipPrice']; |
91 | $build['currentLevel'] = ($value['vipLevel'] == $vipLevel) ? true : false; | 91 | $build['currentLevel'] = ($value['vipLevel'] == $vipLevel) ? true : false; |
92 | $result['vipLevel']['list'][] = $build; | 92 | $result['vipLevel']['list'][] = $build; |
93 | } | 93 | } |
@@ -43,7 +43,7 @@ class SearchModel | @@ -43,7 +43,7 @@ class SearchModel | ||
43 | } | 43 | } |
44 | 44 | ||
45 | // 调用接口查询数据 (使用新的 Elastic Engine) | 45 | // 调用接口查询数据 (使用新的 Elastic Engine) |
46 | - $listData = SearchData::searchElasticByCondition($condition); | 46 | + $listData = SearchData::searchElasticByCondition($condition); |
47 | // 调用接口查询数据 (使用老的 Sphinx Engine) | 47 | // 调用接口查询数据 (使用老的 Sphinx Engine) |
48 | // $listData = SearchData::searchByCondition($condition); | 48 | // $listData = SearchData::searchByCondition($condition); |
49 | // 处理返回的数据 | 49 | // 处理返回的数据 |
@@ -87,22 +87,22 @@ class SearchModel | @@ -87,22 +87,22 @@ class SearchModel | ||
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
90 | - // 设置选定的gender | ||
91 | - $gender = '1,2,3'; | ||
92 | - if (isset($condition['gender'])) { | ||
93 | - $gender = $condition['gender']; | ||
94 | - } | 90 | + // 设置选定的gender |
91 | + $gender = '1,2,3'; | ||
92 | + if (isset($condition['gender'])) { | ||
93 | + $gender = $condition['gender']; | ||
94 | + } | ||
95 | 95 | ||
96 | // 区别各种列表页面的筛选数据 | 96 | // 区别各种列表页面的筛选数据 |
97 | if (isset($condition['brand'])) { | 97 | if (isset($condition['brand'])) { |
98 | $listData = BrandData::filterBrandData($condition); | 98 | $listData = BrandData::filterBrandData($condition); |
99 | - $exclude = 'brand'; | 99 | + $exclude = 'brand'; |
100 | } else if (isset($condition['sort'])) { | 100 | } else if (isset($condition['sort'])) { |
101 | $listData = ClassData::filterClassData($condition); | 101 | $listData = ClassData::filterClassData($condition); |
102 | - $exclude = 'group_sort'; | 102 | + $exclude = 'group_sort'; |
103 | } else { | 103 | } else { |
104 | $listData = SearchData::searchByCondition($condition); | 104 | $listData = SearchData::searchByCondition($condition); |
105 | - $exclude = null; | 105 | + $exclude = null; |
106 | } | 106 | } |
107 | 107 | ||
108 | if (isset($listData['data']['filter'])) { | 108 | if (isset($listData['data']['filter'])) { |
-
Please register or login to post a comment