2025-07-08 16:49:39 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
|
|
|
|
const common_libraries_setTabBar = require("../../common/libraries/setTabBar.js");
|
2025-10-29 13:53:24 +08:00
|
|
|
const pages_index_model = require("./model.js");
|
|
|
|
|
const pages_index_method = require("./method.js");
|
|
|
|
|
const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js");
|
2025-07-08 16:49:39 +08:00
|
|
|
require("../../common/libraries/updateMenu.js");
|
|
|
|
|
require("../../common/libraries/day.js");
|
|
|
|
|
require("../../common/libraries/apiLoading.js");
|
2025-10-29 13:53:24 +08:00
|
|
|
require("../../gen/Apis.js");
|
|
|
|
|
require("../../common/libraries/request.js");
|
|
|
|
|
require("../../common/store/useWeAppAuthStore.js");
|
|
|
|
|
require("../../common/store/useWorkStore.js");
|
2025-07-08 16:49:39 +08:00
|
|
|
if (!Array) {
|
2025-10-29 13:53:24 +08:00
|
|
|
const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading");
|
2025-07-08 16:49:39 +08:00
|
|
|
const _easycom_cc_root_view2 = common_vendor.resolveComponent("cc-root-view");
|
2025-10-29 13:53:24 +08:00
|
|
|
(_easycom_cc_scroll_loading2 + _easycom_cc_root_view2)();
|
2025-07-08 16:49:39 +08:00
|
|
|
}
|
2025-10-29 13:53:24 +08:00
|
|
|
const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js";
|
2025-07-08 16:49:39 +08:00
|
|
|
const _easycom_cc_root_view = () => "../../common/components/cc-root-view/cc-root-view.js";
|
|
|
|
|
if (!Math) {
|
2025-10-29 13:53:24 +08:00
|
|
|
(MyHeaderTitle + MyShowData + MyClassIfication + MyToDeDone + _easycom_cc_scroll_loading + _easycom_cc_root_view)();
|
2025-07-08 16:49:39 +08:00
|
|
|
}
|
2025-10-29 13:53:24 +08:00
|
|
|
const MyHeaderTitle = () => "./components/HeaderTitle.js";
|
|
|
|
|
const MyClassIfication = () => "./components/Classification.js";
|
|
|
|
|
const MyShowData = () => "./components/ShowData.js";
|
|
|
|
|
const MyToDeDone = () => "./components/ToDeDone.js";
|
2025-07-08 16:49:39 +08:00
|
|
|
const _sfc_defineComponent = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
common_vendor.onShow(async () => {
|
2025-10-29 13:53:24 +08:00
|
|
|
var _a, _b, _c, _d;
|
2025-07-08 16:49:39 +08:00
|
|
|
common_libraries_setTabBar.setTabBarData(0);
|
|
|
|
|
await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched);
|
2025-10-29 13:53:24 +08:00
|
|
|
if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.getLoginStatus()) {
|
|
|
|
|
pages_index_model.useModel.listData.value = [];
|
|
|
|
|
(_c = pages_index_method.method) == null ? void 0 : _c.getCountGridHouse();
|
|
|
|
|
(_d = pages_index_method.method) == null ? void 0 : _d.getCompanyEmployeeBacklogs();
|
|
|
|
|
} else {
|
|
|
|
|
pages_index_model.useModel.userData.value = void 0;
|
|
|
|
|
pages_index_model.useModel.listData.value = [];
|
|
|
|
|
pages_index_model.useModel.metaData.value = { total: 0 };
|
|
|
|
|
}
|
2025-07-08 16:49:39 +08:00
|
|
|
});
|
|
|
|
|
common_vendor.onShareAppMessage(() => {
|
|
|
|
|
return {
|
2025-07-16 09:34:46 +08:00
|
|
|
title: "",
|
2025-07-08 16:49:39 +08:00
|
|
|
path: "/pages/index/index"
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
common_vendor.onShareTimeline(() => {
|
|
|
|
|
return {
|
2025-07-16 09:34:46 +08:00
|
|
|
title: "",
|
2025-07-08 16:49:39 +08:00
|
|
|
path: "/pages/index/index"
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
return (_ctx, _cache) => {
|
2025-10-29 13:53:24 +08:00
|
|
|
var _a, _b, _c;
|
|
|
|
|
return {
|
|
|
|
|
a: common_vendor.o((_a = common_vendor.unref(pages_index_method.method)) == null ? void 0 : _a.loadMore),
|
|
|
|
|
b: common_vendor.p({
|
|
|
|
|
meta: (_c = (_b = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _b.metaData) == null ? void 0 : _c.value
|
|
|
|
|
})
|
|
|
|
|
};
|
2025-07-08 16:49:39 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
_sfc_defineComponent.__runtimeHooks = 6;
|
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_defineComponent, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/pages/index/index.vue"]]);
|
|
|
|
|
wx.createPage(MiniProgramPage);
|