Authored by zhangxiaoru

品类样式

... ... @@ -283,7 +283,8 @@ const _formShopData = (data, shopId, isApp) => {
_.forEach(resData, (cate) => {
hotCategory.data.list.push({
url: cate.url,
src: helpers.image(cate.src)
src: helpers.image(cate.src),
name: cate.name
});
});
... ... @@ -455,6 +456,9 @@ const getShopData = (req, shopId, uid, isApp) => {
let shopData = {};
let channel = req.yoho.channel;
/* 变量污染临时处理 */
shopId = shopId.replace(/\//, '');
return _getShopInfo(shopId, uid).then(shopInfoResult => {
/* 基础店铺返回程序内的跳转信号,跳转到基础店铺 */
... ...
... ... @@ -97,7 +97,7 @@
{{! 热门品类}}
<div class="first">
{{# hotCategory}}
{{> resources/hot-category}}
{{> shop/hot-category}}
{{/ hotCategory}}
</div>
... ...
{{#data}}
<div class="hot-category">
{{> common/floor-header}}
{{# banner}}
<a class="category-banner" href="{{url}}">
<img class="lazy" data-original="{{src}}">
</a>
{{/ banner}}
<ul class="category-list clearfix">
{{# list}}
<li>
<a href="{{url}}">
<div class="img-box">
<img class="lazy" data-original="{{image src 140 140}}" alt="">
</div>
</a>
<div class="img-cover">{{name}}</div>
</li>
{{/ list}}
</ul>
</div>
{{/data}}
\ No newline at end of file
... ...