...
|
...
|
@@ -49,12 +49,12 @@ Page({ |
|
|
onLoad: function (option) {
|
|
|
try{
|
|
|
if(option){
|
|
|
let categoryId = option.categoryId;
|
|
|
let firstProductSkn = option.firstProductSkn ? option.firstProductSkn : '';
|
|
|
let categoryId = option.categoryId || '';
|
|
|
let firstProductSkn = option.firstProductSkn || '';
|
|
|
let sort = option.sort ? option.sort : '';
|
|
|
let subCategoryId = option.subCategoryId ? option.subCategoryId : '';
|
|
|
let title = option.title ? option.title : '';
|
|
|
let gender = option.gender ? option.gender : '';
|
|
|
let subCategoryId = option.subCategoryId || '';
|
|
|
let title = option.title || '';
|
|
|
let gender = option.gender || '';
|
|
|
console.log("categoryId:"+categoryId+"==subCategoryId:"+subCategoryId+"==sort:"+sort+"==firstProductSkn:"+firstProductSkn);
|
|
|
|
|
|
this.data.categoryId = categoryId;
|
...
|
...
|
@@ -124,11 +124,11 @@ Page({ |
|
|
if(tabData && tabData.page){
|
|
|
page = tabData.page;
|
|
|
}
|
|
|
this.fechProductList(tab,page);
|
|
|
this.fechProductList(tab, page);
|
|
|
}
|
|
|
|
|
|
},
|
|
|
fechProductList: function (tab,currentPage) {
|
|
|
fechProductList: function (tab, currentPage) {
|
|
|
let filterParams = this.data.filterParams;
|
|
|
let id = tab.id;
|
|
|
let orderType = tab.iconType;
|
...
|
...
|
@@ -167,6 +167,7 @@ Page({ |
|
|
let param = {
|
|
|
method: "app.search.category",
|
|
|
firstProductSkn: firstProductSkn,
|
|
|
order,
|
|
|
gender,
|
|
|
limit: 60,
|
|
|
page: currentPage,
|
...
|
...
|
@@ -207,6 +208,9 @@ Page({ |
|
|
// tablist[id].iconUrl = iconUrl;
|
|
|
// console.log("id:"+id)
|
|
|
|
|
|
console.log('====================================');
|
|
|
console.log(tabs);
|
|
|
console.log('====================================');
|
|
|
that.setData({
|
|
|
tabs: tabs,
|
|
|
activeIndex: id,
|
...
|
...
|
|