用户钱包及明细.搜索页修复.个人信息移除多余页面.商品列表字段优化,分类子商品展示

This commit is contained in:
落日晚风
2023-11-07 17:49:02 +08:00
parent 627b3d015f
commit a9afb6452d
15 changed files with 563 additions and 525 deletions
+6 -4
View File
@@ -82,7 +82,8 @@
});
if (code === 0) {
state.categoryList = {
children: data
children: data,
style: 'first_one'
};
}
}
@@ -96,17 +97,18 @@
total: 1,
last_page: 1,
};
getGoodsList(state.categoryList.children[val].id);
}
// 这段代码本来是在判断里的
getGoodsList(state.categoryList.children[val].id);
// getGoodsList(state.categoryList.children[val].id);
};
async function getGoodsList(id, page = 1, list_rows = 6) {
state.loadStatus = 'loading';
const res = await sheep.$api.goods.list({
categoryId: id,
pageSize:list_rows,
pageNo:page,
pageSize: list_rows,
pageNo: page,
});
if (res.code === 0) {
let couponList = _.concat(state.pagination.data, res.data.list);