处理个人中心 以及数据看板

This commit is contained in:
2026-01-16 16:39:07 +08:00
parent 7bff4f6191
commit ccacfdb4e9
15 changed files with 103 additions and 38 deletions

View File

@@ -22,20 +22,22 @@ const _sfc_main = {
setup(__props) {
const uid = common_vendor.ref(0);
const staffName = common_vendor.ref("");
const staffRole = common_vendor.ref(0);
common_vendor.onLoad((options) => {
init();
});
const init = () => {
common_vendor.index.getStorageSync("user_name");
let staff_name = common_vendor.index.getStorageSync("staff_name");
common_vendor.index.getStorageSync("role");
let role = common_vendor.index.getStorageSync("role");
let user_id = common_vendor.index.getStorageSync("uid");
common_vendor.index.__f__("log", "at pages/mine/index.vue:69", "staff_name", staff_name);
common_vendor.index.__f__("log", "at pages/mine/index.vue:70", "staff_name", staff_name);
uid.value = user_id;
staffName.value = staff_name;
staffRole.value = role;
};
common_vendor.onShow(() => {
common_vendor.index.__f__("log", "at pages/mine/index.vue:79", "init");
common_vendor.index.__f__("log", "at pages/mine/index.vue:81", "init");
init();
});
return (_ctx, _cache) => {
@@ -55,14 +57,17 @@ const _sfc_main = {
g: common_vendor.p({
text: "订单管理"
}),
h: common_vendor.p({
h: staffRole.value == 1
}, staffRole.value == 1 ? {
i: common_vendor.p({
name: "eye"
}),
i: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/data/index")),
j: common_vendor.p({
text: "运营数据"
}),
j: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/data/index")),
k: common_vendor.p({
text: "运营数据"
})
} : {}, {
l: common_vendor.p({
title: ""
})
});