feat: 首页改造

This commit is contained in:
2026-07-13 18:14:00 +08:00
parent 85fff5c363
commit c6015b8295
15 changed files with 2726 additions and 1399 deletions
+3
View File
@@ -193,9 +193,11 @@ export default {
},
// 查询分类
async getSort(pId) {
const params = {
parentId: pId,
};
console.log('查询分类', params,pId);
const resp = await getCascadeCategory(params);
if (resp && resp.bizcode === 100) {
return resp.data;
@@ -207,6 +209,7 @@ export default {
},
// 点击左边的栏目切换
async swichMenu(item, index) {
console.log('点击左边的栏目切换',item, index, "item, index");
if (index == this.current) return;
this.tabbarContentLoading = true;
const firstData = await this.getSort(item.id);