Authored by 毕凯

店铺图片店铺 logo

... ... @@ -129,7 +129,7 @@ exports.shop = function(req, res, next) {
const params = Object.assign({
limit: 12,
yh_channel: (req.yoho.channel && channels[req.yoho.channel]) || '1',
imageType: req.query.displayStyle === '1' ? '1' : '2',
imageType: req.query.displayStyle === '0' ? '1' : '2',
season: req.query.season || '1',
port: '1'
}, req.query.searchCondition);
... ...
<div class="shop-container{{#is-equal-or numOfOneRow '2'}} shop-two{{^}} shop-three{{/is-equal-or}} shop-individuation">
{{#renderData}}
{{#is-equal-or ../numOfOneRow '2'}}
<a{{#is-equal-or ../jump2Shop '1'}} href="{{href}}"{{/is-equal-or}} class="pull-left shop-box">
<a href="{{href}}" class="pull-left shop-box">
<div class="shop-img">
<img class="left-icon" src="{{image2 ../lefTopImg q=85}}" alt="">
{{#is-equal-or ../displayStyle '1'}}
<img src="{{image2 pic_popular w=187 h=275 q=85}}" alt="">
{{^}}
<img src="{{image2 shop_logo w=187 h=275 q=85}}" alt="">
{{/is-equal-or}}
</div>
<div class="shop-bottom-bar" style="background-image: url({{image2 ../brandImg w=290 h=60 q=85}})">
<span class="shop-name" style="{{#if ../shopNameFontColor}}color: {{../shopNameFontColor}}{{/if}}">{{shop_name}}</span>
</div>
</a>
{{^}}
<a{{#is-equal-or ../jump2Shop '1'}} href="{{href}}"{{/is-equal-or}} class="pull-left shop-box {{#is-equal-or ../displayStyle '0'}}shop-logo{{/is-equal-or}}">
<a href="{{href}}" class="pull-left shop-box {{#is-equal-or ../displayStyle '0'}}shop-logo{{/is-equal-or}}">
<div class="shop-img">
<img class="left-icon" src="{{image2 ../lefTopImg q=85}}" alt="">
{{#is-equal-or ../displayStyle '1'}}
<img src="{{image2 pic_popular w=187 h=275 q=85}}" alt="">
{{^}}
<img src="{{image2 shop_logo w=156 h=106 q=85}}" {{#is-equal-or ../displayStyle '0'}}class="shop-logo-img"{{/is-equal-or}} alt="">
{{/is-equal-or}}
<span class="shop-name" style="{{#if ../shopNameFontColor}}color: {{../shopNameFontColor}}{{/if}}">{{shop_name}}</span>
</div>
<div class="shop-bottom-bar" style="background-image: url({{image2 ../brandImg w=290 h=60 q=85}});">
... ...
... ... @@ -286,7 +286,11 @@ function shopGroupInit() {
config.renderData = res.data;
config.renderData.forEach(shop => {
if (config.jump2Shop === '0' && config.linkParams) {
shop.href = config.linkParams.replace(/\$shop_id/gi, shop.shops_id);
} else {
shop.href = `//m.yohobuy.com/product/shop?domain=${shop.shop_domain}&openby:yohobuy={"action":"go.shop","params":{"shop_id":${shop.shops_id},"shop_template_type":${shop.shop_template_type || "1"},"is_red_shop":${shop.is_red_shop || 1}}}`; // eslint-disable-line
}
});
$this.replaceWith(shopTmpl(config));
... ...