1 line
4.2 KiB
Plaintext
1 line
4.2 KiB
Plaintext
{"version":3,"file":"s-menu-tools.js","sources":["../../../../../../src/sheep/components/s-menu-tools/s-menu-tools.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtbWVudS10b29scy9zLW1lbnUtdG9vbHMudnVl"],"sourcesContent":["<!-- 全局 - 快捷入口 -->\r\n<template>\r\n <su-popup :show=\"show\" type=\"top\" round=\"20\" backgroundColor=\"#F0F0F0\" @close=\"closeMenuTools\">\r\n <su-status-bar />\r\n <view class=\"tools-wrap ss-m-x-30 ss-m-b-16\">\r\n <view class=\"title ss-m-b-34 ss-p-t-20\">快捷菜单</view>\r\n <view class=\"container-list ss-flex ss-flex-wrap\">\r\n <view class=\"list-item ss-m-b-24\" v-for=\"item in list\" :key=\"item.title\">\r\n <view class=\"ss-flex-col ss-col-center\">\r\n <button\r\n class=\"ss-reset-button list-image ss-flex ss-row-center ss-col-center\"\r\n @tap=\"onClick(item)\"\r\n >\r\n <image v-if=\"show\" :src=\"sheep.$url.static(item.icon)\" class=\"list-icon\" />\r\n </button>\r\n <view class=\"list-title ss-m-t-20\">{{ item.title }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n </su-popup>\r\n</template>\r\n\r\n<script setup>\r\nimport { reactive, computed } from 'vue'\r\nimport sheep from '@/sheep'\r\nimport { showMenuTools, closeMenuTools } from '@/sheep/hooks/useModal'\r\n\r\nconst show = computed(() => sheep.$store('modal').menu)\r\n\r\nfunction onClick(item) {\r\n closeMenuTools()\r\n if (item.url) sheep.$router.go(item.url)\r\n}\r\n\r\nconst list = [\r\n {\r\n url: '/modules/mall/index/index',\r\n icon: '/static/img/shop/tools/home.png',\r\n title: '首页',\r\n },\r\n {\r\n url: '/modules/mall/index/search',\r\n icon: '/static/img/shop/tools/search.png',\r\n title: '搜索',\r\n },\r\n {\r\n url: '/modules/mall/index/user',\r\n icon: '/static/img/shop/tools/user.png',\r\n title: '个人中心',\r\n },\r\n {\r\n url: '/modules/mall/index/cart',\r\n icon: '/static/img/shop/tools/cart.png',\r\n title: '购物车',\r\n },\r\n {\r\n url: '/modules/mall/user/goods-log',\r\n icon: '/static/img/shop/tools/browse.png',\r\n title: '浏览记录',\r\n },\r\n {\r\n url: '/modules/mall/user/goods-collect',\r\n icon: '/static/img/shop/tools/collect.png',\r\n title: '我的收藏',\r\n },\r\n {\r\n url: '/modules/mall/chat/index',\r\n icon: '/static/img/shop/tools/service.png',\r\n title: '客服',\r\n },\r\n]\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.tools-wrap {\r\n // background: #F0F0F0;\r\n // box-shadow: 0px 0px 28rpx 7rpx rgba(0, 0, 0, 0.13);\r\n // opacity: 0.98;\r\n // border-radius: 0 0 20rpx 20rpx;\r\n\r\n .title {\r\n font-size: 36rpx;\r\n font-weight: bold;\r\n color: #333333;\r\n }\r\n\r\n .list-item {\r\n width: calc(25vw - 20rpx);\r\n\r\n .list-image {\r\n width: 104rpx;\r\n height: 104rpx;\r\n border-radius: 52rpx;\r\n background: var(--ui-BG);\r\n\r\n .list-icon {\r\n width: 54rpx;\r\n height: 54rpx;\r\n }\r\n }\r\n\r\n .list-title {\r\n font-size: 26rpx;\r\n font-weight: 500;\r\n color: #333333;\r\n }\r\n }\r\n}\r\n\r\n.uni-popup {\r\n top: 0 !important;\r\n}\r\n\r\n:deep(.button-hover) {\r\n background: #fafafa !important;\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/sheep/components/s-menu-tools/s-menu-tools.vue'\nwx.createComponent(Component)"],"names":["computed","sheep","closeMenuTools"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,UAAM,OAAOA,cAAQ,SAAC,MAAMC,YAAAA,MAAM,OAAO,OAAO,EAAE,IAAI;AAEtD,aAAS,QAAQ,MAAM;AACrBC,0CAAgB;AAChB,UAAI,KAAK;AAAKD,oBAAK,MAAC,QAAQ,GAAG,KAAK,GAAG;AAAA,IACzC;AAEA,UAAM,OAAO;AAAA,MACX;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACR;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;ACtEA,GAAG,gBAAgB,SAAS;"} |