Authored by Rock Zhang

修复首页一些图片的大小,修改筛选参数的一些处理逻辑

... ... @@ -113,7 +113,11 @@ class NewsaleData
});
$param = Yohobuy::param();
if(!is_null($dayLimit)) {
$param['method'] = 'app.search.newProduct';
}else {
$param['method'] = 'app.search.sales';
}
$param['page'] = $page;
$param['limit'] = $limit;
$param['order'] = $order;
... ... @@ -145,22 +149,7 @@ class NewsaleData
// 构建url地址列表
$urlList = array();
$param['p_d'] = '0.1,0.3';
$param['client_secret'] = Sign::getSign($param);
$urlList['1-3折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
$param['p_d'] = '0.4,0.6';
unset($param['client_secret']);
$param['client_secret'] = Sign::getSign($param);
$urlList['4-6折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
$param['p_d'] = '0.7,0.9';
unset($param['client_secret']);
$param['client_secret'] = Sign::getSign($param);
$urlList['7-9折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
$param['p_d'] = '0.1,0.9';
unset($param['client_secret']);
$param['client_secret'] = Sign::getSign($param);
$urlList['ALL'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
... ...
... ... @@ -314,7 +314,7 @@ class FloorProcess
if (isset($one['url'])) {
$one['url'] = Helpers::getFilterUrl($one['url']);
}
$one['img'] = Helpers::getImageUrl($one['src'], 640, 400);
$one['img'] = Helpers::getImageUrl($one['src'], 640, 403);
unset($one['src']);
}
$data['banner'] = $data['big_image'];
... ... @@ -324,7 +324,7 @@ class FloorProcess
if (isset($one['url'])) {
$one['url'] = Helpers::getFilterUrl($one['url']);
}
$one['img'] = Helpers::getImageUrl($one['src'], 212, 192);
$one['img'] = Helpers::getImageUrl($one['src'], 191, 191);
unset($one['src']);
}
$result['creativeLife'] = $data;
... ...
... ... @@ -150,7 +150,7 @@ class ListProcess
'subs' => array(
array(
'chosed' => true,
'dataId' => 0,
'dataId' => '0.1,0.9',
'name' => '所有商品'
)
)
... ...
... ... @@ -60,7 +60,7 @@ class NewsaleController extends AbstractAction
$data = array();
$data['discount'] = true;
$data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
$goodsList = \Product\NewsaleModel::getSaleProducts($channel, 20);
$goodsList = \Product\NewsaleModel::getSaleProducts($channel, 60);
if (!empty($goodsList)) {
$data += $goodsList;
}
... ... @@ -72,26 +72,7 @@ class NewsaleController extends AbstractAction
'price' => 0,
'size' => 0,
'dayLimit' => 1,
'discount' => '0.1,0.3'
);
$data['tabs'] = array(
array(
'title' => '1-3折',
'dataId' => '0.1,0.3',
'focus' => true
),
array(
'title' => '4-6折',
'dataId' => '0.4,0.6',
),
array(
'title' => '7-9折',
'dataId' => '0.7,0.9',
),
array(
'title' => 'ALL',
'dataId' => '0.1,0.9',
)
'discount' => '0.1,0.9'
);
$this->_view->display('sale', $data);
... ... @@ -113,7 +94,7 @@ class NewsaleController extends AbstractAction
$price = $this->get('price', null);
$p_d = $this->get('discount', null);
$channel = $this->getCookie('_Channel', 'boys');
$dayLimit = $this->get('dayLimit', '1');
$dayLimit = $this->get('dayLimit', null);
$limit = $this->get('limit', 60);
$page = $this->get('page', 1);
... ...