diff --git a/src/api/login.js b/src/api/login.js index fb1461b..3bdcef9 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -54,7 +54,7 @@ export function GetSmsCode(params){ export function GetStoreCategories() { return new Promise((resolve, reject) => { http({ - url: '/api/mobile/shop/store/biz-category/list', + url: '/api/mobile/shop/shop-base-store-category/list', method: 'post' }).then(res => { resolve(res) @@ -68,17 +68,17 @@ export function GetStoreCategories() { */ export function transformStoreCategories(data) { return data.map(item => ({ - value: item.id, - label: item.category_name, + value: item.store_category_id, + label: item.store_category_name, children: item.children ? [ // 添加一个与一级目录同名的选项 { - value: item.id, - label: `${item.category_name} 分割比率(${item.split_ratio}%)` + value: item.store_category_id, + label: `${item.store_category_name} 分割比例(${item.split_ratio}%)` }, ...item.children.map(child => ({ - value: child.id, - label: `${child.category_name} 分割比率(${child.split_ratio}%)` + value: child.store_category_id, + label: `${child.store_category_name} 分割比例(${child.split_ratio}%)` })) ] : [] })); diff --git a/src/views/HeadMenu.vue b/src/views/HeadMenu.vue index 318951f..e07b996 100644 --- a/src/views/HeadMenu.vue +++ b/src/views/HeadMenu.vue @@ -16,7 +16,7 @@ -