Authored by whb

fixed bug

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