修复首页一些图片的大小,修改筛选参数的一些处理逻辑
Showing
4 changed files
with
11 additions
and
41 deletions
@@ -113,7 +113,11 @@ class NewsaleData | @@ -113,7 +113,11 @@ class NewsaleData | ||
113 | }); | 113 | }); |
114 | 114 | ||
115 | $param = Yohobuy::param(); | 115 | $param = Yohobuy::param(); |
116 | - $param['method'] = 'app.search.newProduct'; | 116 | + if(!is_null($dayLimit)) { |
117 | + $param['method'] = 'app.search.newProduct'; | ||
118 | + }else { | ||
119 | + $param['method'] = 'app.search.sales'; | ||
120 | + } | ||
117 | $param['page'] = $page; | 121 | $param['page'] = $page; |
118 | $param['limit'] = $limit; | 122 | $param['limit'] = $limit; |
119 | $param['order'] = $order; | 123 | $param['order'] = $order; |
@@ -145,22 +149,7 @@ class NewsaleData | @@ -145,22 +149,7 @@ class NewsaleData | ||
145 | 149 | ||
146 | // 构建url地址列表 | 150 | // 构建url地址列表 |
147 | $urlList = array(); | 151 | $urlList = array(); |
148 | - $param['p_d'] = '0.1,0.3'; | ||
149 | - $param['client_secret'] = Sign::getSign($param); | ||
150 | - $urlList['1-3折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | ||
151 | - | ||
152 | - $param['p_d'] = '0.4,0.6'; | ||
153 | - unset($param['client_secret']); | ||
154 | - $param['client_secret'] = Sign::getSign($param); | ||
155 | - $urlList['4-6折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | ||
156 | - | ||
157 | - $param['p_d'] = '0.7,0.9'; | ||
158 | - unset($param['client_secret']); | ||
159 | - $param['client_secret'] = Sign::getSign($param); | ||
160 | - $urlList['7-9折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | ||
161 | - | ||
162 | $param['p_d'] = '0.1,0.9'; | 152 | $param['p_d'] = '0.1,0.9'; |
163 | - unset($param['client_secret']); | ||
164 | $param['client_secret'] = Sign::getSign($param); | 153 | $param['client_secret'] = Sign::getSign($param); |
165 | $urlList['ALL'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | 154 | $urlList['ALL'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); |
166 | 155 |
@@ -314,7 +314,7 @@ class FloorProcess | @@ -314,7 +314,7 @@ class FloorProcess | ||
314 | if (isset($one['url'])) { | 314 | if (isset($one['url'])) { |
315 | $one['url'] = Helpers::getFilterUrl($one['url']); | 315 | $one['url'] = Helpers::getFilterUrl($one['url']); |
316 | } | 316 | } |
317 | - $one['img'] = Helpers::getImageUrl($one['src'], 640, 400); | 317 | + $one['img'] = Helpers::getImageUrl($one['src'], 640, 403); |
318 | unset($one['src']); | 318 | unset($one['src']); |
319 | } | 319 | } |
320 | $data['banner'] = $data['big_image']; | 320 | $data['banner'] = $data['big_image']; |
@@ -324,7 +324,7 @@ class FloorProcess | @@ -324,7 +324,7 @@ class FloorProcess | ||
324 | if (isset($one['url'])) { | 324 | if (isset($one['url'])) { |
325 | $one['url'] = Helpers::getFilterUrl($one['url']); | 325 | $one['url'] = Helpers::getFilterUrl($one['url']); |
326 | } | 326 | } |
327 | - $one['img'] = Helpers::getImageUrl($one['src'], 212, 192); | 327 | + $one['img'] = Helpers::getImageUrl($one['src'], 191, 191); |
328 | unset($one['src']); | 328 | unset($one['src']); |
329 | } | 329 | } |
330 | $result['creativeLife'] = $data; | 330 | $result['creativeLife'] = $data; |
@@ -60,7 +60,7 @@ class NewsaleController extends AbstractAction | @@ -60,7 +60,7 @@ class NewsaleController extends AbstractAction | ||
60 | $data = array(); | 60 | $data = array(); |
61 | $data['discount'] = true; | 61 | $data['discount'] = true; |
62 | $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); | 62 | $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); |
63 | - $goodsList = \Product\NewsaleModel::getSaleProducts($channel, 20); | 63 | + $goodsList = \Product\NewsaleModel::getSaleProducts($channel, 60); |
64 | if (!empty($goodsList)) { | 64 | if (!empty($goodsList)) { |
65 | $data += $goodsList; | 65 | $data += $goodsList; |
66 | } | 66 | } |
@@ -72,26 +72,7 @@ class NewsaleController extends AbstractAction | @@ -72,26 +72,7 @@ class NewsaleController extends AbstractAction | ||
72 | 'price' => 0, | 72 | 'price' => 0, |
73 | 'size' => 0, | 73 | 'size' => 0, |
74 | 'dayLimit' => 1, | 74 | 'dayLimit' => 1, |
75 | - 'discount' => '0.1,0.3' | ||
76 | - ); | ||
77 | - $data['tabs'] = array( | ||
78 | - array( | ||
79 | - 'title' => '1-3折', | ||
80 | - 'dataId' => '0.1,0.3', | ||
81 | - 'focus' => true | ||
82 | - ), | ||
83 | - array( | ||
84 | - 'title' => '4-6折', | ||
85 | - 'dataId' => '0.4,0.6', | ||
86 | - ), | ||
87 | - array( | ||
88 | - 'title' => '7-9折', | ||
89 | - 'dataId' => '0.7,0.9', | ||
90 | - ), | ||
91 | - array( | ||
92 | - 'title' => 'ALL', | ||
93 | - 'dataId' => '0.1,0.9', | ||
94 | - ) | 75 | + 'discount' => '0.1,0.9' |
95 | ); | 76 | ); |
96 | 77 | ||
97 | $this->_view->display('sale', $data); | 78 | $this->_view->display('sale', $data); |
@@ -113,7 +94,7 @@ class NewsaleController extends AbstractAction | @@ -113,7 +94,7 @@ class NewsaleController extends AbstractAction | ||
113 | $price = $this->get('price', null); | 94 | $price = $this->get('price', null); |
114 | $p_d = $this->get('discount', null); | 95 | $p_d = $this->get('discount', null); |
115 | $channel = $this->getCookie('_Channel', 'boys'); | 96 | $channel = $this->getCookie('_Channel', 'boys'); |
116 | - $dayLimit = $this->get('dayLimit', '1'); | 97 | + $dayLimit = $this->get('dayLimit', null); |
117 | $limit = $this->get('limit', 60); | 98 | $limit = $this->get('limit', 60); |
118 | $page = $this->get('page', 1); | 99 | $page = $this->get('page', 1); |
119 | 100 |
-
Please register or login to post a comment