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

65 lines
2.2 KiB
JavaScript
Raw Normal View History

2025-06-27 08:56:14 +08:00
"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) {
2025-06-30 17:33:35 +08:00
common_vendor.ref(0);
2025-06-27 08:56:14 +08:00
const workArray = common_vendor.ref([]);
2025-06-30 17:33:35 +08:00
common_vendor.ref(false);
const statusarray = ["loading", "success", "fail"];
2025-06-27 08:56:14 +08:00
common_vendor.onLoad((options) => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
2025-06-30 17:33:35 +08:00
pages_addjigou_api_addjigou.getMessageList(res.data).then((res2) => {
workArray.value = res2.result;
});
2025-06-27 08:56:14 +08:00
}
});
});
common_vendor.onPullDownRefresh(() => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
2025-06-30 17:33:35 +08:00
pages_addjigou_api_addjigou.getMessageList(res.data).then((res2) => {
workArray.value = res2.result;
});
2025-06-27 08:56:14 +08:00
}
});
common_vendor.index.stopPullDownRefresh();
});
2025-06-30 17:33:35 +08:00
const goBack = () => {
common_vendor.index.navigateBack();
2025-06-27 08:56:14 +08:00
};
const jumpToAll = (element) => {
common_vendor.index.navigateTo({
url: `/pages/addjigou/all?element=${JSON.stringify(element)}`
});
};
return (_ctx, _cache) => {
return {
2025-06-30 17:33:35 +08:00
a: common_vendor.o(goBack),
b: common_vendor.f(workArray.value, (item, index, i0) => {
2025-07-01 17:29:13 +08:00
return common_vendor.e({
2025-06-27 08:56:14 +08:00
a: common_vendor.t(item.comName),
2025-07-01 17:29:13 +08:00
b: item.franchiseTime
}, item.franchiseTime ? {} : {}, {
c: common_vendor.t(item.franchiseTime),
d: !item.franchiseTime
}, !item.franchiseTime ? {} : {}, {
e: common_vendor.t(item.commitTime),
f: common_vendor.t(item.auditTime),
g: `https://www.focusnu.com/media/directive/index/${statusarray[Number(item.status) - 1]}.png`,
h: common_vendor.o(($event) => jumpToAll(item), index),
i: index
});
2025-06-27 08:56:14 +08:00
})
};
};
}
};
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