diff --git a/pages/index/index.vue b/pages/index/index.vue index c2382d1..c3a7c6a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -325,14 +325,14 @@ const goodClassTow = ref([]); // 二级分类 const goodClassThree = ref([]); // 三级分类 const classMap = new Map(); - const getgoodClassList = (pid = 0, three = 0) => { + const getgoodClassList = (pid = 0, three = 1) => { let page_no = classMap.get(pid) || 1; // console.log(classMap.get(pid)); goodClassListApi({ pid: pid, page_no: page_no, page_size: 30, - leve: three, + level: three, store_id: STORE_INFO.id || '' // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。 }).then(res => { if (pid == 0) { // 加载一级分类时设置全部分类