71 lines
3.4 KiB
JavaScript
Raw Normal View History

2025-07-15 16:18:34 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../common/libraries/request.js");
const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js");
2025-08-29 09:51:02 +08:00
require("../../common/store/useWorkStore.js");
const pages_index_model = require("./model.js");
2025-12-15 18:19:04 +08:00
const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js");
const pages_index_method = require("./method.js");
2025-07-15 16:18:34 +08:00
require("../../gen/Apis.js");
require("../../common/libraries/apiLoading.js");
if (!Math) {
2025-12-15 18:19:04 +08:00
(MyPageHeadTitle + MyPageBanner + MyClassification + MyNewsList + MyAiInput + MyTabs + MyModalServer + MyOfficialAccount)();
2025-07-15 16:18:34 +08:00
}
2025-08-29 09:51:02 +08:00
const MyNewsList = () => "./components/NewsList.js";
const MyPageHeadTitle = () => "./components/PageHeadTitle.js";
const MyPageBanner = () => "./components/PageBanner.js";
const MyClassification = () => "./components/Classification.js";
const MyAiInput = () => "./components/AiInput.js";
const MyModalServer = () => "./components/ModalServer.js";
2025-12-15 18:19:04 +08:00
const MyTabs = () => "./components/Tabs.js";
const MyOfficialAccount = () => "./components/OfficialAccount.js";
2025-07-15 16:18:34 +08:00
const _sfc_defineComponent = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
2025-08-29 09:51:02 +08:00
const auth = common_store_useWeAppAuthStore.useWeAppAuthStore();
common_vendor.onLoad(async (e) => {
2025-07-15 16:18:34 +08:00
var _a;
await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched);
2025-08-29 09:51:02 +08:00
console.log("页面加载", auth == null ? void 0 : auth.data);
2025-07-15 16:18:34 +08:00
});
2025-08-29 09:51:02 +08:00
common_vendor.onPageScroll((e) => {
pages_index_model.useModel.scrollTop.value = e.scrollTop;
2025-07-15 16:18:34 +08:00
});
2025-08-29 09:51:02 +08:00
common_vendor.onShow(async (e) => {
2026-01-14 16:52:59 +08:00
var _a, _b, _c, _d, _e, _f, _g;
2025-08-29 09:51:02 +08:00
await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched);
pages_index_model.useModel.user.value = (_b = auth == null ? void 0 : auth.data) == null ? void 0 : _b.user;
2026-01-14 16:52:59 +08:00
pages_index_model.useModel.pageConfig.value = ((_e = (_d = (_c = auth == null ? void 0 : auth.data) == null ? void 0 : _c.config) == null ? void 0 : _d.companyConfig) == null ? void 0 : _e.config_value) || {};
2025-08-29 09:51:02 +08:00
console.log("页面显示");
2026-01-14 16:52:59 +08:00
if ((_f = common_libraries_userUserLogin.getUserLogin) == null ? void 0 : _f.getLoginStatus()) {
(_g = pages_index_method.method) == null ? void 0 : _g.getCountBills();
2025-12-15 18:19:04 +08:00
}
if (auth == null ? void 0 : auth.data.house_register) {
console.log("house_register", auth == null ? void 0 : auth.data.house_register);
auth == null ? void 0 : auth.getIsHouseExist();
}
});
common_vendor.onShareAppMessage(() => {
return {
title: "",
path: "/pages/index/index"
};
});
common_vendor.onShareTimeline(() => {
return {
title: "",
path: "/pages/index/index"
};
2025-07-15 16:18:34 +08:00
});
return (_ctx, _cache) => {
2026-01-14 16:52:59 +08:00
var _a, _b, _c;
return {
a: common_vendor.s(`background:${(_c = (_b = (_a = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _a.pageConfig) == null ? void 0 : _b.value) == null ? void 0 : _c.pageColor}`)
};
2025-07-15 16:18:34 +08:00
};
}
});
2025-12-15 18:19:04 +08:00
_sfc_defineComponent.__runtimeHooks = 7;
2025-07-15 16:18:34 +08:00
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_defineComponent, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/pages/index/index.vue"]]);
wx.createPage(MiniProgramPage);