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 @@ -
+
{{ @@ -101,7 +101,7 @@ const userStore = useUserStore(); // 从 userStore 中获取登录状态 const isLoggedIn = ref(userStore.isLoggedIn); const mobile = ref(""); -const approval_status = ref(""); +const approval_status = ref(0); // 每次页面加载时检查 token onMounted(() => { @@ -144,7 +144,7 @@ const handleOpenStartPage = () => { return; } - if (approval_status == 4) { + if (approval_status.value == 4) { router.push({ name: "start" }); } else { router.push({ name: "check" }); // 已登录跳转到 check 页面 @@ -152,7 +152,7 @@ const handleOpenStartPage = () => { }; const handleUserInfoClick = () => { - if (approval_status == 4) { + if (approval_status.value == 4) { router.push({ name: "start" }); } else { router.push({ name: "check" }); @@ -288,7 +288,7 @@ onUnmounted(() => { } -.header-right { +.header_right { display: flex; justify-content: flex-end; align-items: center; @@ -301,21 +301,30 @@ onUnmounted(() => { } @media (max-width: 768px) { - .header { - padding: 0 10px; - } - .header-menu { - display: none; - } - - .hamburger-menu { - display: block; - } - .logo { img { height: 28px; } } + + .header { + padding: 0 10px; + } + + .header_right { + gap: 5px; +} + + .header-menu { + display: none; + } + + .start { + display: none; + } + + .sub_menu { + display: block; + } } diff --git a/src/views/help/Help.vue b/src/views/help/Help.vue index a0716a1..3c4046b 100644 --- a/src/views/help/Help.vue +++ b/src/views/help/Help.vue @@ -1,13 +1,9 @@ @@ -15,14 +11,15 @@ - \ No newline at end of file