Authored by Rock Zhang

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

... ... @@ -30,7 +30,8 @@ var defaultOpt = {
color: $('#color').val(),
size: $('#size').val(),
price: $('#price').val(),
discount: $('#discount').val()
discount: $('#discount').val(),
query: $('#query').val()
};
var $listNav = $('#list-nav'),
... ...
... ... @@ -122,6 +122,10 @@
{{#if discount}}
<input id="discount" type="hidden" value={{discount}}>
{{/if}}
{{#if query}}
<input id="query" type="hidden" value={{query}}>
{{/if}}
{{/ goodList}}
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -79,8 +79,8 @@ class ListModel
// 获取品牌介绍信息, 有缓存1小时
$introData = BrandData::getBrandIntro($id, $uid);
if (isset($introData['data']['brand_intro'])) {
$result['brandHome']['id'] = $id;
$result['brandHome']['intro'] = $introData['data']['brand_intro'];
$result['id'] = $id;
$result['intro'] = $introData['data']['brand_intro'];
// 顶部导航的标题
$title = isset($introData['data']['brand_name']) ? $introData['data']['brand_name'] : '';
}
... ... @@ -88,7 +88,7 @@ class ListModel
// 获取品牌banner的数据, 有缓存1小时
$bannerData = BrandData::getBrandBanner($id);
if (isset($bannerData['data']['banner'])) {
$result['brandHome']['banner'] = Helpers::getImageUrl($bannerData['data']['banner'], 640, 75);
$result['banner'] = Helpers::getImageUrl($bannerData['data']['banner'], 640, 75);
}
return $result;
... ...
... ... @@ -4,7 +4,7 @@ use Yaf\Application;
define('SITE_MAIN', 'http://mtesth5.yohobuy.com'); // 网站主域名
define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
define('SUB_DOMAIN', '.m.yohobuy.com'); // 子域名后缀
define('SUB_DOMAIN', '.mtesth5.yohobuy.com'); // 子域名后缀
define('USE_CACHE', true); // 缓存的开关
define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
... ...