This commit is contained in:
Jerry Yan 2019-12-18 20:10:00 +08:00
parent 5d3da9d75d
commit 69b32166d7
3 changed files with 5 additions and 5 deletions

View File

@ -289,12 +289,12 @@ mui.plusReady(function() {
//获取商品总规格列表 //获取商品总规格列表
var page = 1; var page = 1;
var pageSize = 100; var pageSize = 10000;
var isjiazai = 1; var isjiazai = 1;
function getRecommend(page, pageSize, defaultVal) { function getRecommend(page, pageSize, defaultVal) {
var recommenddata = { var recommenddata = {
page: page ? page : 1, page: page ? page : 1,
pageSize: pageSize ? pageSize : 100 pageSize: pageSize ? pageSize : 10000
} }
recommenddata.shopId = shopId recommenddata.shopId = shopId
if (isjiazai == 0) { if (isjiazai == 0) {

View File

@ -56,7 +56,7 @@ mui.plusReady(function() {
document.querySelector('.mui-scroll-wrapper').addEventListener('scroll', function(e) { document.querySelector('.mui-scroll-wrapper').addEventListener('scroll', function(e) {
if (scroll.y == scroll.maxScrollY) { if (scroll.y == scroll.maxScrollY) {
if (isloading == true) { if (isloading == false) {
page++; page++;
getRecommend(page, pageSize); getRecommend(page, pageSize);
} }

View File

@ -293,7 +293,7 @@ mui('.classify').on('tap', '.class_block', function() {
if (classifyId == '') { if (classifyId == '') {
url = 'ac3.html'; url = 'ac3.html';
} }
JZL.openWindow(url, url, {classifyId: classifyId}); JZL.openWindow(url, url, {classifyId: classifyId, from_id: 1});
}) })
//为你推荐 //为你推荐
@ -315,7 +315,7 @@ $('.header').on('blur', '#keyword', function() {
}) })
$(".header").on('tap', '.search button', function(e) { $(".header").on('tap', '.search button', function(e) {
var searchName = $('#keyword').val(); var searchName = $('#keyword').val();
JZL.openWindow('goodslist.html', 'goodslist.html', {data_keyword: searchName}); JZL.openWindow('goodslist.html', 'goodslist.html', {data_keyword: searchName, from_id: 1});
$('#keyword').val("") $('#keyword').val("")
// JZL.openWindow('shopsList.html', 'shopsList.html', {data_keyword: searchName}); // JZL.openWindow('shopsList.html', 'shopsList.html', {data_keyword: searchName});
//JZL.openWindow('shopgoodList.html', 'shopgoodList.html', {data_keyword: searchName}); //JZL.openWindow('shopgoodList.html', 'shopgoodList.html', {data_keyword: searchName});