67 lines
2.8 KiB
JavaScript
67 lines
2.8 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const pages_addjigou_api_addjigou = require("../addjigou/api/addjigou.js");
|
|
const _sfc_main = {
|
|
__name: "workjoin",
|
|
setup(__props) {
|
|
const type = common_vendor.ref(0);
|
|
const workArray = common_vendor.ref([]);
|
|
common_vendor.onLoad((options) => {
|
|
type.value = options.type || "";
|
|
if (type.value) {
|
|
pages_addjigou_api_addjigou.getMessageList(common_vendor.index.getStorageSync("tel")).then((res) => {
|
|
workArray.value = res.result;
|
|
});
|
|
}
|
|
});
|
|
common_vendor.onPullDownRefresh(() => {
|
|
pages_addjigou_api_addjigou.getMessageList(common_vendor.index.getStorageSync("tel")).then((res) => {
|
|
workArray.value = res.result;
|
|
common_vendor.index.stopPullDownRefresh();
|
|
});
|
|
});
|
|
const goback = () => {
|
|
common_vendor.index.navigateBack();
|
|
};
|
|
const again = (item) => {
|
|
common_vendor.index.__f__("log", "at pages/login/workjoin.vue:85", "????", item);
|
|
common_vendor.index.setStorageSync("baddata", item);
|
|
common_vendor.index.setStorageSync("specicalid", item.id);
|
|
common_vendor.index.setStorageSync("backhuancun", {});
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/addjigou/name`
|
|
});
|
|
};
|
|
const jumpToAll = (element) => {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/addjigou/all?element=${JSON.stringify(element)}`
|
|
});
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: type.value === `1` ? `https://www.focusnu.com/media/directive/index/workjoin/man.png` : `https://www.focusnu.com/media/directive/index/workjoin/bgcren.png`,
|
|
b: common_vendor.t(type.value === `1` ? `机构加盟` : `员工入驻`),
|
|
c: common_vendor.o(goback),
|
|
d: common_vendor.t(type.value === "1" ? `机构加盟审核列表` : `员工入驻审核列表`),
|
|
e: common_vendor.f(workArray.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t(item.comName),
|
|
b: common_vendor.t(item.updateTime),
|
|
c: common_vendor.t(item.status == 1 ? "审核中" : item.status == 2 ? `审核完成` : item.status == 3 ? `驳回` : `待提交`),
|
|
d: common_vendor.t(item.status == 3 ? `,驳回备注:${item.content}` : ``),
|
|
e: item.status == 3 || item.status == 0
|
|
}, item.status == 3 || item.status == 0 ? {
|
|
f: common_vendor.o(($event) => again(item), index)
|
|
} : {}, {
|
|
g: common_vendor.o(($event) => jumpToAll(item), index),
|
|
h: index
|
|
});
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-808c8183"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/workjoin.js.map
|