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

68 lines
2.4 KiB
JavaScript
Raw Normal View History

2025-09-09 17:45:04 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const pages_yuangongindex_api = require("./api.js");
const _sfc_main = {
__name: "workjoin",
setup(__props) {
common_vendor.ref(0);
const workArray = common_vendor.ref([]);
common_vendor.ref(false);
const statusarray = ["loading", "success", "fail"];
common_vendor.onLoad((options) => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
pages_yuangongindex_api.getEmployeesOrgRela(res.data).then((res2) => {
workArray.value = res2.result;
});
}
});
});
common_vendor.onPullDownRefresh(() => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
pages_yuangongindex_api.getEmployeesOrgRela(res.data).then((res2) => {
workArray.value = res2.result;
});
}
});
common_vendor.index.stopPullDownRefresh();
});
const goBack = () => {
common_vendor.index.navigateBack();
};
const again = (item) => {
2025-09-10 17:23:15 +08:00
common_vendor.index.navigateTo({
url: "/pages/yuangongindex/searchjigou"
2025-09-09 17:45:04 +08:00
});
};
const jumpToAll = (element) => {
2025-09-10 17:23:15 +08:00
common_vendor.index.__f__("log", "at pages/yuangongindex/workjoin.vue:123", "????", element.applyStatus);
2025-09-09 17:45:04 +08:00
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(goBack),
b: common_vendor.f(workArray.value, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.comName),
2025-09-10 17:23:15 +08:00
b: common_vendor.t(item.comLegalPerson),
c: common_vendor.t(item.tel),
d: common_vendor.t(item.comRegisterAddress),
e: `https://www.focusnu.com/media/directive/index/${statusarray[Number(item.applyStatus) - 1]}.png`,
f: item.applyStatus != 1 && item.applyStatus != 2
2025-09-09 17:45:04 +08:00
}, item.applyStatus != 1 && item.applyStatus != 2 ? {
2025-09-10 17:23:15 +08:00
g: common_vendor.o(($event) => again(), index)
2025-09-09 17:45:04 +08:00
} : {}, {
2025-09-10 17:23:15 +08:00
h: common_vendor.o(($event) => jumpToAll(item), index),
i: index
2025-09-09 17:45:04 +08:00
});
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9f30267b"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/yuangongindex/workjoin.js.map