acdr-ui/dist/dev/mp-weixin/modules/pet/push/index.js
2024-10-01 09:15:35 +08:00

39 lines
1.2 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const utils_commUtils = require("../../../utils/commUtils.js");
if (!Array) {
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
_component_layout_default_uni();
}
if (!Math) {
Tabbar();
}
const Tabbar = () => "../../../components/Tabbar.js";
const _sfc_main = {
__name: "index",
setup(__props) {
const handleService = (type) => {
if (type === "door") {
toPath("/modules/pet/push/door");
} else if (type === "shop") {
toPath("/modules/pet/push/goods");
}
};
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);