hldy_xcx/unpackage/dist/dev/mp-weixin/pages/yuangongindex/mine.js

68 lines
2.1 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Math) {
(exit + downMenu)();
}
const exit = () => "../../compontent/public/exit.js";
const downMenu = () => "../../compontent/public/yuangongdownmenu.js";
const _sfc_main = {
__name: "mine",
setup(__props) {
const phone = common_vendor.ref("");
common_vendor.ref("");
const platId = common_vendor.ref("");
const exitshow = common_vendor.ref(false);
common_vendor.onMounted(() => {
phone.value = common_vendor.index.getStorageSync("tel");
platId.value = common_vendor.index.getStorageSync("platId");
});
const cardMenu = [`审核记录`, `员工功能`];
const change = () => {
common_vendor.index.navigateTo({
url: `/pages/login/threeselectonespec`
});
};
const exitshowopen = () => {
exitshow.value = true;
};
const clickButton = (index) => {
switch (index) {
case 0:
changeData();
break;
}
};
const changeData = () => {
common_vendor.index.navigateTo({
url: "/pages/yuangongindex/workjoin"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => exitshow.value = false),
b: common_vendor.p({
show: exitshow.value
}),
c: common_vendor.t(platId.value),
d: common_vendor.t(phone.value),
e: common_vendor.f(cardMenu, (item, index, i0) => {
return {
a: `https://www.focusnu.com/media/directive/index/staffmine/${index}.png`,
b: common_vendor.t(item),
c: index,
d: common_vendor.o(($event) => clickButton(index), index)
};
}),
f: common_vendor.o(change),
g: common_vendor.o(exitshowopen),
h: common_vendor.p({
itemTarget: 2
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4a2cd26c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/yuangongindex/mine.js.map