71 lines
2.4 KiB
JavaScript
71 lines
2.4 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) {
|
|
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_addjigou_api_addjigou.getMessageList(res.data).then((res2) => {
|
|
workArray.value = res2.result;
|
|
});
|
|
}
|
|
});
|
|
});
|
|
common_vendor.onPullDownRefresh(() => {
|
|
common_vendor.index.getStorage({
|
|
key: "openid",
|
|
success: function(res) {
|
|
pages_addjigou_api_addjigou.getMessageList(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({
|
|
url: `/pages/addjigou/all?element=${JSON.stringify(element)}`
|
|
});
|
|
};
|
|
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),
|
|
b: item.franchiseTime
|
|
}, item.franchiseTime ? {} : {}, {
|
|
c: item.franchiseTime
|
|
}, item.franchiseTime ? {
|
|
d: common_vendor.t(item.franchiseTime)
|
|
} : {}, {
|
|
e: !item.franchiseTime
|
|
}, !item.franchiseTime ? {} : {}, {
|
|
f: !item.franchiseTime
|
|
}, !item.franchiseTime ? {
|
|
g: common_vendor.t(item.commitTime)
|
|
} : {}, {
|
|
h: common_vendor.t(item.auditTime),
|
|
i: `https://www.focusnu.com/media/directive/index/${statusarray[Number(item.status) - 1]}.png`,
|
|
j: common_vendor.o(($event) => jumpToAll(item), index),
|
|
k: 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
|