From eace8e317df09d3677120f42813b4f3e186d89dd Mon Sep 17 00:00:00 2001 From: mixtan <424491071@qq.com> Date: Mon, 16 Jun 2025 21:34:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=94=B9=E7=BB=8F=E8=90=A5?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=96=B0=E6=8E=A5=E5=8F=A3=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 14 +++++++------- src/views/HeadMenu.vue | 41 +++++++++++++++++++++++++---------------- src/views/help/Help.vue | 28 ++++++++++++++-------------- 3 files changed, 46 insertions(+), 37 deletions(-) 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 @@ -