75 lines
3.0 KiB
JavaScript
75 lines
3.0 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const utils_helper = require("../../utils/helper.js");
|
|
if (!Array) {
|
|
const _easycom_nut_avatar2 = common_vendor.resolveComponent("nut-avatar");
|
|
const _easycom_nut_icon2 = common_vendor.resolveComponent("nut-icon");
|
|
const _easycom_nut_grid_item2 = common_vendor.resolveComponent("nut-grid-item");
|
|
const _easycom_nut_grid2 = common_vendor.resolveComponent("nut-grid");
|
|
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
|
|
(_easycom_nut_avatar2 + _easycom_nut_icon2 + _easycom_nut_grid_item2 + _easycom_nut_grid2 + _easycom_nut_cell_group2)();
|
|
}
|
|
const _easycom_nut_avatar = () => "../../uni_modules/nutui-uni/components/avatar/avatar.js";
|
|
const _easycom_nut_icon = () => "../../uni_modules/nutui-uni/components/icon/icon.js";
|
|
const _easycom_nut_grid_item = () => "../../uni_modules/nutui-uni/components/griditem/griditem.js";
|
|
const _easycom_nut_grid = () => "../../uni_modules/nutui-uni/components/grid/grid.js";
|
|
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
|
|
if (!Math) {
|
|
(_easycom_nut_avatar + _easycom_nut_icon + _easycom_nut_grid_item + _easycom_nut_grid + _easycom_nut_cell_group)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "index",
|
|
setup(__props) {
|
|
const uid = common_vendor.ref(0);
|
|
const staffName = common_vendor.ref("");
|
|
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 user_id = common_vendor.index.getStorageSync("uid");
|
|
common_vendor.index.__f__("log", "at pages/mine/index.vue:188", "staff_name", staff_name);
|
|
uid.value = user_id;
|
|
staffName.value = staff_name;
|
|
};
|
|
common_vendor.onShow(() => {
|
|
common_vendor.index.__f__("log", "at pages/mine/index.vue:203", "init");
|
|
init();
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: uid.value > 0
|
|
}, uid.value > 0 ? {
|
|
b: common_vendor.p({
|
|
size: "large"
|
|
}),
|
|
c: common_vendor.t(staffName.value),
|
|
d: common_vendor.t(uid.value)
|
|
} : {}, {
|
|
e: common_vendor.p({
|
|
name: "order"
|
|
}),
|
|
f: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=0")),
|
|
g: common_vendor.p({
|
|
text: "订单管理"
|
|
}),
|
|
h: common_vendor.p({
|
|
name: "eye"
|
|
}),
|
|
i: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/shopOrder/index?tab=0")),
|
|
j: common_vendor.p({
|
|
text: "运营数据"
|
|
}),
|
|
k: common_vendor.p({
|
|
title: ""
|
|
})
|
|
});
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-569e925a"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/index.js.map
|