officialAccount/unpackage/dist/dev/mp-weixin/pages/login/workjoin.js

76 lines
3.0 KiB
JavaScript
Raw Normal View History

2025-06-09 17:33:50 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
2025-06-11 17:33:34 +08:00
const pages_addjigou_api_addjigou = require("../addjigou/api/addjigou.js");
2025-06-09 17:33:50 +08:00
const _sfc_main = {
__name: "workjoin",
setup(__props) {
const type = common_vendor.ref(0);
2025-06-11 17:33:34 +08:00
const workArray = common_vendor.ref([]);
2025-06-13 13:42:14 +08:00
common_vendor.onPullDownRefresh(() => {
common_vendor.index.__f__("log", "at pages/login/workjoin.vue:68", "下拉刷新触发");
pages_addjigou_api_addjigou.getMessageList(common_vendor.index.getStorageSync("tel")).then((res) => {
workArray.value = res.result;
common_vendor.index.stopPullDownRefresh();
});
});
2025-06-09 17:33:50 +08:00
common_vendor.onLoad((options) => {
type.value = options.type || "";
2025-06-13 13:42:14 +08:00
if (type.value) {
2025-06-11 17:33:34 +08:00
pages_addjigou_api_addjigou.getMessageList(common_vendor.index.getStorageSync("tel")).then((res) => {
workArray.value = res.result;
});
2025-06-09 17:33:50 +08:00
}
2025-06-11 17:33:34 +08:00
});
2025-06-09 17:33:50 +08:00
const goback = () => {
common_vendor.index.navigateBack();
};
2025-06-13 13:42:14 +08:00
const again = (item) => {
common_vendor.index.setStorageSync("baddata", item);
common_vendor.index.setStorageSync("specicalid", item.id);
common_vendor.index.navigateTo({
url: `/pages/addjigou/name`
});
};
const jumpToAll = (element) => {
common_vendor.index.navigateTo({
url: `/pages/addjigou/all?element=${JSON.stringify(element)}`
});
};
2025-06-09 17:33:50 +08:00
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$1,
b: common_assets._imports_1$1,
c: type.value === `1` ? `/static/index/workjoin/man.png` : `/static/index/workjoin/bgcren.png`,
d: common_vendor.t(type.value === `1` ? `机构加盟` : `员工入驻`),
2025-06-13 13:42:14 +08:00
e: common_assets._imports_0$2,
2025-06-09 17:33:50 +08:00
f: common_vendor.o(goback),
g: common_vendor.t(type.value === "1" ? `机构加盟审核列表` : `员工入驻审核列表`),
2025-06-11 17:33:34 +08:00
h: common_vendor.f(workArray.value, (item, index, i0) => {
2025-06-09 17:33:50 +08:00
return common_vendor.e({
2025-06-11 17:33:34 +08:00
a: common_vendor.t(item.comName),
b: common_vendor.t(item.updateTime),
2025-06-13 13:42:14 +08:00
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
2025-06-09 17:33:50 +08:00
});
}),
i: common_vendor.o(() => {
}),
j: common_vendor.o(() => {
}),
k: common_vendor.o(() => {
})
};
};
}
};
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