2025-08-29 09:51:02 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
|
|
|
const common_libraries_IsHouseExist = require("../../../common/libraries/IsHouseExist.js");
|
2025-12-15 18:19:04 +08:00
|
|
|
const pages_index_model = require("../model.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
require("../../../common/libraries/request.js");
|
2026-01-30 09:54:26 +08:00
|
|
|
const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
require("../../../common/store/useWorkStore.js");
|
2026-01-30 09:54:26 +08:00
|
|
|
require("../../../gen/Apis.js");
|
|
|
|
|
require("../../../common/libraries/setTabBar.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
require("../../../common/libraries/apiLoading.js");
|
|
|
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
|
__name: "Classification",
|
|
|
|
|
setup(__props) {
|
2026-01-30 09:54:26 +08:00
|
|
|
const auth = common_store_useWeAppAuthStore.useWeAppAuthStore();
|
|
|
|
|
const scroll_view = common_vendor.ref({});
|
|
|
|
|
const handleScroll = (e) => {
|
|
|
|
|
scroll_view.value = e.detail;
|
|
|
|
|
};
|
|
|
|
|
const goToPage = async (i) => {
|
|
|
|
|
if (!common_libraries_IsHouseExist.getIsHouseExist(i))
|
2025-08-29 09:51:02 +08:00
|
|
|
return;
|
2026-01-30 09:54:26 +08:00
|
|
|
if (i == null ? void 0 : i.skip_url) {
|
|
|
|
|
common_vendor.index.navigateTo({ url: i == null ? void 0 : i.skip_url });
|
2025-12-15 18:19:04 +08:00
|
|
|
} else {
|
|
|
|
|
common_vendor.index.showModal({
|
|
|
|
|
title: "提示",
|
|
|
|
|
content: "该功能在当前项目暂未开放,敬请期待",
|
|
|
|
|
confirmColor: "#0082FA",
|
|
|
|
|
success: function(res) {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
console.log("用户点击确定");
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
console.log("用户点击取消");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-08-29 09:51:02 +08:00
|
|
|
};
|
|
|
|
|
return (_ctx, _cache) => {
|
2026-01-30 09:54:26 +08:00
|
|
|
var _a, _b, _c;
|
2025-08-29 09:51:02 +08:00
|
|
|
return {
|
2026-01-30 09:54:26 +08:00
|
|
|
a: common_vendor.f((_c = (_b = (_a = common_vendor.unref(auth)) == null ? void 0 : _a.data) == null ? void 0 : _b.config) == null ? void 0 : _c.companyAction, (i, index, i0) => {
|
|
|
|
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h;
|
2025-12-15 18:19:04 +08:00
|
|
|
return common_vendor.e({
|
2026-01-30 09:54:26 +08:00
|
|
|
a: i == null ? void 0 : i.is_show
|
|
|
|
|
}, (i == null ? void 0 : i.is_show) ? common_vendor.e({
|
|
|
|
|
b: ((_b2 = (_a2 = i.icon) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.url) || "",
|
|
|
|
|
c: !index && ((_d = (_c2 = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _c2.countBills) == null ? void 0 : _d.value)
|
|
|
|
|
}, !index && ((_f = (_e = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _e.countBills) == null ? void 0 : _f.value) ? {
|
|
|
|
|
d: common_vendor.t((_h = (_g = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _g.countBills) == null ? void 0 : _h.value)
|
2025-12-15 18:19:04 +08:00
|
|
|
} : {}, {
|
2026-01-30 09:54:26 +08:00
|
|
|
e: common_vendor.t(i.name),
|
|
|
|
|
f: common_vendor.o(($event) => goToPage(i), `items_${index}`)
|
|
|
|
|
}) : {}, {
|
|
|
|
|
g: `items_${index}`
|
2025-12-15 18:19:04 +08:00
|
|
|
});
|
2026-01-30 09:54:26 +08:00
|
|
|
}),
|
|
|
|
|
b: common_vendor.o(handleScroll)
|
2025-08-29 09:51:02 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1833569a"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/pages/index/components/Classification.vue"]]);
|
|
|
|
|
wx.createComponent(Component);
|