Authored by weiqingting

ie8 indexOf 不兼容

@@ -20,7 +20,7 @@ if (homePage === 'brands') { @@ -20,7 +20,7 @@ if (homePage === 'brands') {
20 require('./brands'); 20 require('./brands');
21 } 21 }
22 22
23 -if (['boys','girls','kids','lifestyle'].indexOf(homePage) > -1) { 23 +if ($.inArray(homePage,['boys','girls','kids','lifestyle'])>-1) {
24 require('../common/new-arrivls')({ 24 require('../common/new-arrivls')({
25 type: homePage, 25 type: homePage,
26 url: '/common/getNewArrival', 26 url: '/common/getNewArrival',