Authored by whb

fixed bug

... ... @@ -128,7 +128,7 @@ define('yohood', function(require, exports) {
}
html += '<li><a href="' + v.url + '" target="_blank" title="' + v.name + '">' +
'<div class="img-box"><img src="' + pic + '" alt=""><span class="' + topClass + '">TOP ' + (++pos) + '</span></div>' +
'<p class="goods-name">' + tools.limitWords(v.name, 60) + '</p>' +
'<p class="goods-name">' + tools.limitWords(v.name.replace(/\s+/g, ' '), 50) + '</p>' +
'<p class="price">' + market_price + '¥' + price + '</p></a></li>';
if (pos % 5 == 0) {
temp += template.replace('{li}', html);
... ...