feat: add status
This commit is contained in:
@@ -16,7 +16,7 @@ export function useWxSDK() {
|
||||
"chooseImage",
|
||||
"uploadImage",
|
||||
"previewImage",
|
||||
"updateAppMessageShareData",
|
||||
"updateTimelineShareData",
|
||||
"updateAppMessageShareData",
|
||||
"chooseWXPay",
|
||||
],
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
<script setup>
|
||||
import { userApi } from '@/api/userApi';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import {
|
||||
BsBox2Fill,
|
||||
BsGearFill,
|
||||
BsPersonFill,
|
||||
BsPinMapFill
|
||||
} from 'vue-icons-plus/bs';
|
||||
import { userApi } from "@/api/userApi";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { BsBox2Fill, BsGearFill, BsPersonFill, BsPinMapFill } from "vue-icons-plus/bs";
|
||||
|
||||
const userInfo = ref({});
|
||||
|
||||
@@ -14,37 +9,32 @@ onMounted(async () => {
|
||||
try {
|
||||
const { data } = await userApi.profile();
|
||||
userInfo.value = data;
|
||||
console.log('User profile:', userInfo.value);
|
||||
console.log("User profile:", userInfo.value);
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch user profile:', error);
|
||||
console.error("Failed to fetch user profile:", error);
|
||||
}
|
||||
});
|
||||
|
||||
const menuGroups = [
|
||||
{
|
||||
title: '账号与信息',
|
||||
items: [
|
||||
{ label: '个人资料', icon: BsPersonFill, link: '/profile/edit' },
|
||||
]
|
||||
title: "账号与信息",
|
||||
items: [{ label: "个人资料", icon: BsPersonFill, link: "/profile/edit" }],
|
||||
},
|
||||
{
|
||||
title: '订单与服务',
|
||||
title: "订单与服务",
|
||||
items: [
|
||||
{ label: '我的订单', icon: BsBox2Fill, link: '/orders' },
|
||||
{ label: '我的地址', icon: BsPinMapFill, link: '/address' },
|
||||
]
|
||||
{ label: "我的订单", icon: BsBox2Fill, link: "/orders" },
|
||||
{ label: "我的地址", icon: BsPinMapFill, link: "/address" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: '设置',
|
||||
items: [
|
||||
{ label: '系统设置', icon: BsGearFill, link: '/settings' },
|
||||
]
|
||||
}
|
||||
title: "设置",
|
||||
items: [{ label: "系统设置", icon: BsGearFill, link: "/settings" }],
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<div class="bg-white p-4 shadow-lg border-b border-gray-300">
|
||||
<div class="flex items-center gap-4 p-4 border-gray-100">
|
||||
<div class="w-16 h-16 border rounded-full border-gray-200 bg-gray-200 overflow-hidden">
|
||||
@@ -71,5 +61,4 @@ const menuGroups = [
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user