2024-09-19 07:20:14 +08:00
|
|
|
"use strict";
|
2024-10-01 09:15:35 +08:00
|
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
|
|
const utils_commUtils = require("../../../utils/commUtils.js");
|
2024-09-19 07:20:14 +08:00
|
|
|
if (!Array) {
|
|
|
|
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
|
|
|
|
_component_layout_default_uni();
|
|
|
|
}
|
|
|
|
if (!Math) {
|
|
|
|
Tabbar();
|
|
|
|
}
|
2024-10-01 09:15:35 +08:00
|
|
|
const Tabbar = () => "../../../components/Tabbar.js";
|
2024-09-19 07:20:14 +08:00
|
|
|
const _sfc_main = {
|
|
|
|
__name: "index",
|
|
|
|
setup(__props) {
|
|
|
|
const handleService = (type) => {
|
|
|
|
if (type === "door") {
|
2024-10-01 09:15:35 +08:00
|
|
|
toPath("/modules/pet/push/door");
|
2024-09-19 07:20:14 +08:00
|
|
|
} else if (type === "shop") {
|
2024-10-01 09:15:35 +08:00
|
|
|
toPath("/modules/pet/push/goods");
|
2024-09-19 07:20:14 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
const toPath = (path) => {
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
url: path
|
|
|
|
});
|
|
|
|
};
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.unref(utils_commUtils.imgUrl)("@/static/push/bg.png"),
|
|
|
|
b: common_vendor.unref(utils_commUtils.imgUrl)("@/static/push/pushshop.png"),
|
|
|
|
c: common_vendor.o(($event) => handleService("door")),
|
|
|
|
d: common_vendor.unref(utils_commUtils.imgUrl)("@/static/push/pushdoor.png"),
|
|
|
|
e: common_vendor.o(($event) => handleService("shop"))
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
wx.createPage(_sfc_main);
|