ab3e3bc225278fef19feff3778a8ff1a.json 10 KB

1
  1. {"remainingRequest":"/Users/lihai/jolijoli/pad_spa/node_modules/babel-loader/lib/index.js!/Users/lihai/jolijoli/pad_spa/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/lihai/jolijoli/pad_spa/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/lihai/jolijoli/pad_spa/src/components/common/layout/leftMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/lihai/jolijoli/pad_spa/src/components/common/layout/leftMenu.vue","mtime":1652254577499},{"path":"/Users/lihai/jolijoli/pad_spa/babel.config.js","mtime":1649813268617},{"path":"/Users/lihai/jolijoli/pad_spa/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/lihai/jolijoli/pad_spa/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/Users/lihai/jolijoli/pad_spa/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/lihai/jolijoli/pad_spa/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import memberLogic from '@/server/memberLogic.js'\nexport default {\n props: ['isCollapse'],\n data: function data() {\n return {\n menu: [{\n name: \"首页\",\n path: \"/home\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unhome.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/home.png'\n }, {\n name: \"测肤记录\",\n path: \"/testSkin\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unskin.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/Skin.png'\n }, {\n name: \"发券中心\",\n path: \"/coupon\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/uncoupon.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/coupon.png'\n }, {\n name: \"客户管理\",\n path: \"/customerMan\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unskin.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/Skin.png'\n }, {\n name: \"历史订单\",\n path: \"/historicalOrder\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unhistory.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/history.png'\n }, {\n name: \"确定订单\",\n path: \"/confirmOrder\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unconfirmOrder.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/confirmOrder.png'\n }, {\n name: \"门店检测\",\n path: \"/storeDetection\",\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/testing.png',\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/untesting.png'\n }],\n nowIndex: 0\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n var patname = \"/\".concat(window.location.pathname.split('/')[1]);\n console.log(patname, 'patname');\n this.menu.forEach(function (item, index) {\n if (patname == item.path) {\n _this.nowIndex = index;\n\n _this.$emit('changeMenu', index);\n }\n });\n },\n methods: {\n handleSelect: function handleSelect(index, item) {\n this.nowIndex = index;\n this.$router.push({\n path: item.path\n });\n this.$emit('changeMenu', index);\n }\n }\n};",{"version":3,"sources":["leftMenu.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;AACA,eAAA;AACA,EAAA,KAAA,EAAA,CAAA,YA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AAA,SAAA;AACA,SAAA,IAAA,CAAA,OAAA,CAAA,UAAA,IAAA,EAAA,KAAA,EAAA;AACA,UAAA,OAAA,IAAA,IAAA,CAAA,IAAA,EAAA;AACA,QAAA,KAAA,CAAA,QAAA,GAAA,KAAA;;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,YAAA,EAAA,KAAA;AACA;AACA,KALA;AAMA,GAvDA;AAwDA,EAAA,OAAA,EAAA;AACA,IAAA,YADA,wBACA,KADA,EACA,IADA,EACA;AACA,WAAA,QAAA,GAAA,KAAA;AACA,WAAA,OAAA,CAAA,IAAA,CAAA;AACA,QAAA,IAAA,EAAA,IAAA,CAAA;AADA,OAAA;AAGA,WAAA,KAAA,CAAA,YAAA,EAAA,KAAA;AACA;AAPA;AAxDA,CAAA","sourcesContent":["<template>\n <el-menu :collapse=\"isCollapse\"\n background-color=\"#FA7D22\"\n text-color=\"#FFFFFF\"\n active-text-color=\"#FA7D22\"\n :default-active=\"$route.path\"\n style=\"width: 115px;\"\n router>\n <div class=\"logo\">\n <img src=\"https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/logo.png\"\n alt=\"\">\n </div>\n <div v-for=\"(item,index1) in menu\"\n :key=\"index1\">\n <!-- <el-submenu :index=\"index1+'a'\" v-if=\"item.children && item.children.length > 0\">-->\n <!-- <template slot=\"title\">-->\n <!-- <i :class=\"item.icon\"></i>-->\n <!-- <span v-show=\"!isCollapse\" slot=\"title\">{{ item.name }}</span>-->\n <!-- </template>-->\n <!-- <div v-for=\"(child,index2) in item.children\" :key=\"'second'+index2\">-->\n <!-- <el-menu-item :index=\"child.path\">-->\n <!-- <i :class=\"child.icon\"></i>-->\n <!-- <span slot=\"title\">{{ child.name }}</span>-->\n <!-- </el-menu-item>-->\n <!-- </div>-->\n <!-- </el-submenu>-->\n <div class=\"el-menu-item\"\n @click=\"handleSelect(index1,item)\"\n :index=\"item.path\"\n :class=\"index1==nowIndex?'active':''\"\n :style=\"index1+1==nowIndex?'padding-bottom:0px':index1-1==nowIndex?'padding-top:0px':''\">\n <img :src=\"index1==nowIndex?item.icon:item.unicon\"><span slot=\"title\">{{ item.name }}</span>\n </div>\n </div>\n </el-menu>\n</template>\n\n<script>\n// import memberLogic from '@/server/memberLogic.js'\nexport default {\n props: ['isCollapse'],\n data () {\n return {\n menu: [\n {\n name: \"首页\",\n path: \"/home\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unhome.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/home.png'\n\n }, {\n name: \"测肤记录\",\n path: \"/testSkin\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unskin.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/Skin.png',\n }, {\n name: \"发券中心\",\n path: \"/coupon\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/uncoupon.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/coupon.png',\n }, {\n name: \"客户管理\",\n path: \"/customerMan\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unskin.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/Skin.png',\n }, {\n name: \"历史订单\",\n path: \"/historicalOrder\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unhistory.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/history.png',\n }, {\n name: \"确定订单\",\n path: \"/confirmOrder\",\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/unconfirmOrder.png',\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/confirmOrder.png'\n }, {\n name: \"门店检测\",\n path: \"/storeDetection\",\n icon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/testing.png',\n unicon: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/untesting.png'\n }\n ],\n nowIndex: 0\n }\n },\n mounted () {\n let patname = `/${window.location.pathname.split('/')[1]}`\n console.log(patname, 'patname');\n this.menu.forEach((item, index) => {\n if (patname == item.path) {\n this.nowIndex = index\n this.$emit('changeMenu', index)\n }\n })\n },\n methods: {\n handleSelect (index, item) {\n this.nowIndex = index\n this.$router.push({\n path: item.path\n })\n this.$emit('changeMenu', index)\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.logo {\n margin-top: 22px;\n text-align: center;\n\n img {\n width: 60px;\n height: 60px;\n }\n}\n\n.active {\n line-height: 46px !important;\n background: url(\"https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/select_icon.png\")\n no-repeat;\n background-size: 100% 100%;\n background-color: #fa7d22 !important;\n color: #fa7d22 !important;\n}\n\n.el-menu-item {\n margin-left: 8px;\n padding: 0;\n padding-left: 9px !important;\n height: auto;\n line-height: initial;\n padding: 13px 0;\n cursor: none;\n color: #ffffff;\n\n img {\n width: 20px;\n height: 20px;\n }\n}\n\n/deep/ .el-menu-item:focus {\n background-color: transparent;\n}\n\n/deep/ .el-menu-item:hover {\n background-color: transparent;\n}\n</style>"],"sourceRoot":"src/components/common/layout"}]}