acdr-ui/dist/dev/mp-weixin/pages/push/index.js

40 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("/pages/push/door");
} else if (type === "shop") {
toPath("/pages/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);
//# sourceMappingURL=index.js.map