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

63 lines
2.2 KiB
JavaScript
Raw Normal View History

2025-06-30 17:33:35 +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: "workjoinsuccess",
setup(__props) {
common_vendor.ref(0);
const workArray = common_vendor.ref([]);
common_vendor.ref(false);
2025-07-01 17:29:13 +08:00
const statusarray = ["success", "loading", "success", "fail", "loading", "fail"];
2025-06-30 17:33:35 +08:00
common_vendor.onLoad((options) => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
pages_addjigou_api_addjigou.getMessageListsuccess(res.data).then((res2) => {
workArray.value = res2.result;
});
}
});
});
common_vendor.onPullDownRefresh(() => {
common_vendor.index.getStorage({
key: "openid",
success: function(res) {
pages_addjigou_api_addjigou.getMessageListsuccess(res.data).then((res2) => {
workArray.value = res2.result;
});
}
});
common_vendor.index.stopPullDownRefresh();
});
const goBack = () => {
common_vendor.index.navigateBack();
};
const jumpToAll = (element) => {
common_vendor.index.navigateTo({
2025-07-01 17:29:13 +08:00
url: `/pages/addjigou/all?element=${JSON.stringify(element)}&special=1`
2025-06-30 17:33:35 +08:00
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(goBack),
b: !workArray.value.length
}, !workArray.value.length ? {} : {}, {
c: common_vendor.f(workArray.value, (item, index, i0) => {
return {
a: common_vendor.t(item.comName),
2025-07-01 17:29:13 +08:00
b: common_vendor.t(index == workArray.value.length - 1 ? `申请` : `变更`),
c: common_vendor.t(item.commitTime),
d: common_vendor.t(item.auditTime),
e: `https://www.focusnu.com/media/directive/index/${statusarray[Number(item.status)]}.png`,
f: common_vendor.o(($event) => jumpToAll(item), index),
g: index
2025-06-30 17:33:35 +08:00
};
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c1509caf"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/workjoinsuccess.js.map