93 lines
2.9 KiB
JavaScript
93 lines
2.9 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const pages_addstaff_api_addjigou = require("../addstaff/api/addjigou.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:
|
|
loadingData();
|
|
break;
|
|
case 1:
|
|
changeData();
|
|
break;
|
|
case 2:
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/yuangongindex/companyyaoqing"
|
|
});
|
|
break;
|
|
}
|
|
};
|
|
const loadingData = () => {
|
|
common_vendor.index.getStorage({
|
|
key: "openid",
|
|
success: function(res) {
|
|
pages_addstaff_api_addjigou.getMessageList(res.data).then((res2) => {
|
|
if (res2.success) {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/addstaff/all?element=${JSON.stringify(res2.result[0])}`
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
};
|
|
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 common_vendor.e({
|
|
a: `https://www.focusnu.com/media/directive/index/staffmine/${index}.png`,
|
|
b: common_vendor.t(item),
|
|
c: !index
|
|
}, !index ? {} : {}, {
|
|
d: index,
|
|
e: 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
|