docs: function search(fromScroll) {
                  var type = getFocusNavType(),
                      setting = {},
                      hadNum = 0,
                      nav;
  
                  nav = navInfo[type];
  
                  //重新加载重置start和end
                  if (nav.reload) {
                      nav.start = 0;
                      nav.end = false;
                      nav.empty = false;
                  }
  
                  //请求数据setting
                  $.extend(setting, curFilter, {
                      type: type,
                      direction: nav.direction,
                      start: nav.start + 1,
                      promotionId: promotionId,
                      clientType: clientType,
                      contentCode: contentCode
                  });
  
                  if (nav.end) {
                      $loading.addClass('hide');
                      $noMore.removeClass('hide');
                  } else {
                      $loading.removeClass('hide');
                      $noMore.addClass('hide');
                  }
  
                  if (nav.end && nav.empty) {
                      $noMore.addClass('hide');
                  }
  
                  if (!nav.reload && nav.end) {
                      //不需要重新加载并且数据请求结束
                      return;
                  }
  
                  canLoadAjax = false;
                  $.ajax({
                      type: 'GET',
                      url: '/activity/search',
                      data: setting
                  }).then(function(data) {
                      var html = '',
                          $container,
                          res,
                          goods,
                          len,
                          i;
                      if (data.success) {
                          res = data.data;
                          goods = res.goods;
                          len = goods.length;
  
                          //插入HTML
                          switch (setting.type) {
                              case 'newest':
                                  $container = $npc;
                                  break;
                              case 'price':
                                  $container = $pc;
                                  break;
                              case 'sale':
                                  $container = $svc;
                                  break;
                          }
                          if (!fromScroll && len === 0) { //由非scroll触发并且返回结果为空的代表未查到数据
                              nav.empty = true;
                              //无返回数据
                              html = '<p class="search-tip">未找到相关搜索结果</p>';
                          } else {
                              nav.empty = false;
                              hadNum = $container.find('.good-info').length;
                              for (i = 0; i < len; i++) {
                                  html += Mustache.render(tpl, goods[i]);
                              }
                          }
                          if (nav.reload || (!fromScroll && len === 0)) {
                              hadNum = 0;
                              $container.html(html);
                          } else {
                              $container.append(html);
                          }
  
                          //lazyload加载新插入的图片
                          if (hadNum === 0) {
                              lazyLoad($container.find('.good-info img.lazy'));
                          } else {
                              lazyLoad($container.find('.good-info:gt(' + (hadNum - 1) + ') img.lazy'));
                          }
                          //重置navInfo
                          if (res.end) {
                              nav.end = true;
                              //设置加载更多显示
                              $loading.addClass('hide');
                              //若无数据项返回则不显示noMore
                              if (!fromScroll && len === 0) {
                                  $noMore.addClass('hide');
                              } else {
                                  $noMore.removeClass('hide');
                              }
                          }
                          nav.reload = false;
                          nav.start++;
  
                          //重置可请求标识
                          canLoadAjax = true;
                      }
                  });
              }