Authored by whb

修改bug

... ... @@ -352,7 +352,7 @@ define('yohood', function(require, exports) {
$(".search-btn").trigger("click.search");
});
$(".search-btn").bind("click.search", function() {
var brand = $.trim($("input[type=text]").val());
var brand = encodeURIComponent($.trim($("input[type=text]").val()));
var template = '<ul class="brand-list cooperation-list clearfix">{li}</ul>';
var noSearchTemplate = '<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>';
var html = '';
... ... @@ -601,14 +601,14 @@ define('yohood', function(require, exports) {
var titleStyle = '';
var html = '<div class="layout-item clearfix">' +
'<div class="image-box">' +
'<a href="' + url + '" target="_blank" title="' + title + '">' +
'<a href="' + url + '" target="_blank" title="' + $('<p>'+title+'</p>').text() + '">' +
'<img src="' + img + '" alt="" style="' + imgStyle + '">' +
'{playIcon}' +
'</a>' +
'</div>' +
'<div class="content">' +
'<h2 {titleStyle}>' +
'<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' +
'<a href="' + url + '" title="' + $('<p>'+title+'</p>').text() + '" target="_blank">' + topic + '</a>' +
'</h2>' +
'</div>' +
'</div>';
... ...