Authored by OF1706

service

... ... @@ -289,7 +289,7 @@ exports.getSearchLessProduct = (channel, uid, udid, page) => {
id: it.product_id,
skn: it.product_skn,
title: it.product_name,
img: it.default_images ? helpers.image(it.default_pic, 100, 100) : '',
img: it.default_images ? helpers.image(it.default_images, 100, 100) : '',
alt: it.product_name,
price: '¥' + transPrice(it.sales_price),
marketPrice: '¥' + transPrice(it.market_price)
... ...
... ... @@ -60,7 +60,7 @@
{{#if_cond goods.length '>' 20 }}
<div class="search-suggest-less">
"<em>{{name}}</em>"&nbsp;搜索结果太少了,试试{{#suggest}}&nbsp;"<a href="{{href}}">{{.}}</a>"&nbsp;{{/suggest}}关键词搜索

{{#if suggest}}"<em>{{name}}</em>"&nbsp;搜索结果太少了,试试{{#suggest}}&nbsp;"<a href="/?query={{.}}">{{.}}</a>"&nbsp;{{/suggest}}关键词搜索
{{/if}}
</div>
{{/if_cond}}
... ... @@ -97,9 +97,9 @@
</div>
<div>
<div class="lazy-load-object-2">
<textarea class="latest-walk-datalazyload" style="visibility: hidden;">
<script>getSearchRecommend();</script>
</textarea>
<textarea class="latest-walk-datalazyload" style="visibility: hidden;">
<script>getSearchRecommend();</script>
</textarea>
</div>
</div>
{{/if_cond}}
... ...
... ... @@ -10,9 +10,11 @@
<p class="price">
<span class="sale-price {{#if marketPrice}}sale-price-new{{/if}}">{{price}}</span>
{{#if marketPrice}}<span class="market-price">{{marketPrice}}</span>{{/if}}
</p>
</p>
<p>{{this.price}},{{this.title}}</p>
</li>
{{/each}}
</ul>
<div class="img-brand-switch">
{{#hasPrev}}
... ...
... ... @@ -39,22 +39,22 @@ function getSearchRecommend() {
return;
}
for (i = 0; i < res.length; i++) {
cur = res[i];
recommendGood.push({
href: cur.url,
img: cur.pic_url,
title: cur.product_name,
price: cur.price,
marketPrice: cur.market_price
});
}
// for (i = 0; i < res.length; i++) {
// cur = res[i];
//
// recommendGood.push({
// href: cur.url,
// img: cur.pic_url,
// title: cur.product_name,
// price: cur.price,
// marketPrice: cur.market_price
// });
// }
$recommendSlide.html(recommendTpl({
item: recommendGood,
hasNext: recommendGood && recommendGood.length > 5,
hasPrev: recommendGood && recommendGood.length > 5
item: res,
hasNext: res && res.length > 5,
hasPrev: res && res.length > 5
}));
lazyLoad($recommendSlide.find('.lazy'));
... ...