Authored by 郝肖肖

我的收藏和品牌无数据时提示语及idArr无空时报错修复

... ... @@ -45,7 +45,7 @@ function initSwiper(data) {
idStrReg = /container-(\d+)['"]{1}/gi,
idReg = /\d+/,
idArr = data.match(idStrReg),
idArrLen = idArr.length,
idArrLen = idArr && idArr.length || 0,
containerId;
// $swiperList = $('.swiper-container');
... ... @@ -95,7 +95,7 @@ function loadData($parent, url, page) {
if (data.total === 0) {
$loadingMask.addClass('hide');
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide').addClass('show');
window.rePosFooter();
} else if (data.more === true) {
... ...