Authored by weiqingting

ie8 indexOf 不兼容

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