Authored by 毕凯

Merge branch 'hotfix/search' into 'master'

首屏未找到数据



See merge request !22
... ... @@ -92,6 +92,13 @@ var C_ID, RES_QTY, argument, optype, filext = {};
var category = $('#category-point').val();
var noResult = '<p class="no-result">未找到相关搜索结果</p>';
// 首屏无数据
if ($fsgc.children().length === 0) {
$goodsContainer.html(noResult);
}
require('../../common');
ellipsis.init();
... ... @@ -474,8 +481,7 @@ function search(opt, filtering) {
url: location.protocol + '//m.yohobuy.com/product/search/search',
data: setting,
success: function(data) {
var noResult = '<p class="no-result">未找到相关搜索结果</p>',
num,
var num,
$container,
goodIds = [],
yasparm,
... ...