acdr-ui/dist/dev/mp-weixin/modules/mall/index/components/second-one.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
const common_vendor = require("../../../../common/vendor.js");
2024-10-01 09:15:35 +08:00
const modules_mall_sheep_index = require("../../sheep/index.js");
2024-09-19 07:20:14 +08:00
const _sfc_main = {
__name: "second-one",
props: {
data: {
type: Object,
default: () => ({})
},
activeMenu: [Number, String]
},
setup(__props) {
const props = __props;
return (_ctx, _cache) => {
return {
a: common_vendor.t(props.data[__props.activeMenu].name),
b: common_vendor.f(props.data[__props.activeMenu].children, (item, k0, i0) => {
return {
a: item.picUrl,
b: common_vendor.t(item.name),
c: item.id,
2024-10-01 09:15:35 +08:00
d: common_vendor.o(($event) => common_vendor.unref(modules_mall_sheep_index.sheep).$router.go("/modules/mall/goods/list", {
2024-09-19 07:20:14 +08:00
categoryId: item.id
}), item.id)
};
})
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bde09774"]]);
wx.createComponent(Component);