2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
"use strict";const o=require("../../../../../common/vendor.js"),e=require("../../index.js"),s=require("../../hooks/useModal.js");if(!Array){(o.resolveComponent("su-status-bar")+o.resolveComponent("su-popup"))()}Math||((()=>"../../ui/su-status-bar/su-status-bar.js")+(()=>"../../ui/su-popup/su-popup.js"))();const t={__name:"s-menu-tools",setup(t){const l=o.computed((()=>e.sheep.$store("modal").menu));const u=[{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(t,i)=>({a:o.f(u,((t,u,i)=>o.e(l.value?{a:o.unref(e.sheep).$url.static(t.icon)}:{},{b:o.o((o=>function(o){s.closeMenuTools(),o.url&&e.sheep.$router.go(o.url)}(t)),t.title),c:o.t(t.title),d:t.title}))),b:l.value,c:o.o(o.unref(s.closeMenuTools)),d:o.p({show:l.value,type:"top",round:"20",backgroundColor:"#F0F0F0"})})}},l=o._export_sfc(t,[["__scopeId","data-v-09b607fe"]]);wx.createComponent(l);
|