Authored by zhangxiaoru

error

@@ -71,7 +71,8 @@ let getCateData = (channel) => { @@ -71,7 +71,8 @@ let getCateData = (channel) => {
71 }, { 71 }, {
72 cache: true 72 cache: true
73 }).then((result) => { 73 }).then((result) => {
74 - if (!result.code || result.code !== 200 || !result.data) { 74 +
  75 + if (!result || !result.code || result.code !== 200 || !result.data) {
75 return []; 76 return [];
76 } 77 }
77 78
@@ -862,6 +862,10 @@ if ($brandHeader.data('isbaseshop') === true) { @@ -862,6 +862,10 @@ if ($brandHeader.data('isbaseshop') === true) {
862 url: location.protocol + '//m.yohobuy.com/product/search/filter', 862 url: location.protocol + '//m.yohobuy.com/product/search/filter',
863 data: defaultOpt, 863 data: defaultOpt,
864 success: function(data) { 864 success: function(data) {
  865 + if (data === '') {
  866 + return false;
  867 + }
  868 +
865 $goodsContainer.append(data); 869 $goodsContainer.append(data);
866 870
867 // 初始化filter&注册filter回调 871 // 初始化filter&注册filter回调