Authored by yyq

fix price

... ... @@ -69,7 +69,10 @@ exports.index = (req, res, next) => {
res.render('shop/index', shopObj);
} else { // 基础模版
Object.assign(shopObj, {page: 'list'});
Object.assign(shopObj, {
page: 'list',
pageClass: 'static-list-page'
});
// 基础店铺装修为空则不cache
if (!shopObj.brand || !shopObj.brand.shopBanner) {
... ... @@ -109,6 +112,7 @@ exports.list = (req, res, next) => {
if (shopObj.templateType === 2) { // 经典模板
Object.assign(shopObj, {
page: 'shop',
pageClass: 'static-list-page',
shopId: req.query.shopId,
shopKey: req.query.query || ''
});
... ... @@ -119,7 +123,10 @@ exports.list = (req, res, next) => {
}
res.render('shop/list', shopObj);
} else { // 基础模版
Object.assign(shopObj, {page: 'list'});
Object.assign(shopObj, {
page: 'list',
pageClass: 'static-list-page'
});
// 基础店铺装修为空则不cache
if (!shopObj.brand || !shopObj.brand.shopBanner) {
... ...
... ... @@ -545,6 +545,8 @@ exports.handleSaleFilterData = (origin, params, baseUrl) => {
dest.price.push(price);
});
dest.priceSeatUrl = priceHref.replace('{price}', '{seat}');
}
// 处理用户自主填写的价格区间
... ...
<div class="product-page yoho-page product-list-page">
<div class="product-page yoho-page product-list-page {{pageClass}}">
{{# brand}}
{{> list/list}}
{{/brand}}
{{/ brand}}
</div>
... ...
<div class="shop-index-page product-list-page product-page yoho-page center-content">
<div class="shop-index-page product-list-page product-page yoho-page center-content {{pageClass}}">
<div class="center-content clearfix">
{{> common/path-nav}}
... ...