81 lines
2.9 KiB
JavaScript
81 lines
2.9 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const common_libraries_IsHouseExist = require("../../../common/libraries/IsHouseExist.js");
|
|
const pages_index_model = require("../model.js");
|
|
require("../../../common/libraries/request.js");
|
|
require("../../../common/store/useWeAppAuthStore.js");
|
|
require("../../../gen/Apis.js");
|
|
require("../../../common/store/useWorkStore.js");
|
|
require("../../../common/libraries/apiLoading.js");
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "Classification",
|
|
setup(__props) {
|
|
const goToPage = async (url) => {
|
|
if (!common_libraries_IsHouseExist.getIsHouseExist())
|
|
return;
|
|
if (url) {
|
|
common_vendor.index.navigateTo({ url });
|
|
} else {
|
|
common_vendor.index.showModal({
|
|
title: "提示",
|
|
content: "该功能在当前项目暂未开放,敬请期待",
|
|
confirmColor: "#0082FA",
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
console.log("用户点击确定");
|
|
} else if (res.cancel) {
|
|
console.log("用户点击取消");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
};
|
|
const list = [
|
|
{
|
|
label: "物业缴费",
|
|
icon: "jingang_icon5.svg",
|
|
url: "/INDEX/bill/list/index"
|
|
},
|
|
{
|
|
label: "工单提报",
|
|
icon: "jingang_icon3.svg",
|
|
url: "/ME/work_order_home/index"
|
|
},
|
|
{
|
|
label: "停车缴费",
|
|
icon: "jingang_icon2.svg",
|
|
url: "/INDEX/parking_payment/index"
|
|
},
|
|
{
|
|
label: "小区开门",
|
|
icon: "jingang_icon4.svg",
|
|
url: "/INDEX/open_door/index"
|
|
},
|
|
{
|
|
label: "访客邀请",
|
|
icon: "jingang_icon1.svg",
|
|
url: "/INDEX/invitation/index"
|
|
}
|
|
];
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.f(list, (i, index, i0) => {
|
|
var _a, _b, _c, _d, _e, _f;
|
|
return common_vendor.e({
|
|
a: `/static/svg/${i.icon}`,
|
|
b: !index && ((_b = (_a = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _a.countBills) == null ? void 0 : _b.value)
|
|
}, !index && ((_d = (_c = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _c.countBills) == null ? void 0 : _d.value) ? {
|
|
c: common_vendor.t((_f = (_e = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _e.countBills) == null ? void 0 : _f.value)
|
|
} : {}, {
|
|
d: common_vendor.t(i.label),
|
|
e: `items_${index}`,
|
|
f: common_vendor.o(($event) => goToPage(i == null ? void 0 : i.url), `items_${index}`)
|
|
});
|
|
})
|
|
};
|
|
};
|
|
}
|
|
});
|
|
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);
|