Authored by Targaryen

change-modified

const $ = require('yoho-jquery');
function productlistWith() {
function productlistWith($data) {
let $productList = $('.product-list');
if ($data) {
$productList = $data.find('.product-list');
}
$productList.each(function() {
$(this).css('width', $(this).children().length * 8.5 + 'rem');
});
... ...
... ... @@ -223,7 +223,10 @@ function loadMore($container, opt, url) {
return;
}
$container.append(data);
let $data = $(data);
productlistWith($data);
$container.append($data);
$swiper = $container.find('.swiper-container');
if ($swiper.length) {
... ... @@ -252,7 +255,6 @@ function loadMore($container, opt, url) {
opt.page++;
productlistWith();
searching = false;
delete opt.isTab;
... ...