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 modules_mall_sheep_index = require("../../index.js");
|
|
|
|
const modules_mall_sheep_hooks_useModal = require("../../hooks/useModal.js");
|
2024-09-19 07:20:14 +08:00
|
|
|
if (!Array) {
|
|
|
|
const _easycom_su_status_bar2 = common_vendor.resolveComponent("su-status-bar");
|
|
|
|
const _easycom_su_popup2 = common_vendor.resolveComponent("su-popup");
|
|
|
|
(_easycom_su_status_bar2 + _easycom_su_popup2)();
|
|
|
|
}
|
|
|
|
const _easycom_su_status_bar = () => "../../ui/su-status-bar/su-status-bar.js";
|
|
|
|
const _easycom_su_popup = () => "../../ui/su-popup/su-popup.js";
|
|
|
|
if (!Math) {
|
|
|
|
(_easycom_su_status_bar + _easycom_su_popup)();
|
|
|
|
}
|
|
|
|
const _sfc_main = {
|
|
|
|
__name: "s-menu-tools",
|
|
|
|
setup(__props) {
|
2024-10-01 09:15:35 +08:00
|
|
|
const show = common_vendor.computed(() => modules_mall_sheep_index.sheep.$store("modal").menu);
|
2024-09-19 07:20:14 +08:00
|
|
|
function onClick(item) {
|
2024-10-01 09:15:35 +08:00
|
|
|
modules_mall_sheep_hooks_useModal.closeMenuTools();
|
2024-09-19 07:20:14 +08:00
|
|
|
if (item.url)
|
2024-10-01 09:15:35 +08:00
|
|
|
modules_mall_sheep_index.sheep.$router.go(item.url);
|
2024-09-19 07:20:14 +08:00
|
|
|
}
|
|
|
|
const list = [
|
|
|
|
{
|
|
|
|
url: "/modules/mall/index/index",
|
|
|
|
icon: "/static/img/shop/tools/home.png",
|
|
|
|
title: "首页"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/index/search",
|
|
|
|
icon: "/static/img/shop/tools/search.png",
|
|
|
|
title: "搜索"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/index/user",
|
|
|
|
icon: "/static/img/shop/tools/user.png",
|
|
|
|
title: "个人中心"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/index/cart",
|
|
|
|
icon: "/static/img/shop/tools/cart.png",
|
|
|
|
title: "购物车"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/user/goods-log",
|
|
|
|
icon: "/static/img/shop/tools/browse.png",
|
|
|
|
title: "浏览记录"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/user/goods-collect",
|
|
|
|
icon: "/static/img/shop/tools/collect.png",
|
|
|
|
title: "我的收藏"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
url: "/modules/mall/chat/index",
|
|
|
|
icon: "/static/img/shop/tools/service.png",
|
|
|
|
title: "客服"
|
|
|
|
}
|
|
|
|
];
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.f(list, (item, k0, i0) => {
|
|
|
|
return common_vendor.e(show.value ? {
|
2024-10-01 09:15:35 +08:00
|
|
|
a: common_vendor.unref(modules_mall_sheep_index.sheep).$url.static(item.icon)
|
2024-09-19 07:20:14 +08:00
|
|
|
} : {}, {
|
|
|
|
b: common_vendor.o(($event) => onClick(item), item.title),
|
|
|
|
c: common_vendor.t(item.title),
|
|
|
|
d: item.title
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
b: show.value,
|
2024-10-01 09:15:35 +08:00
|
|
|
c: common_vendor.o(common_vendor.unref(modules_mall_sheep_hooks_useModal.closeMenuTools)),
|
2024-09-19 07:20:14 +08:00
|
|
|
d: common_vendor.p({
|
|
|
|
show: show.value,
|
|
|
|
type: "top",
|
|
|
|
round: "20",
|
|
|
|
backgroundColor: "#F0F0F0"
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2024-10-01 09:15:35 +08:00
|
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-95cb3443"]]);
|
2024-09-19 07:20:14 +08:00
|
|
|
wx.createComponent(Component);
|