eb5f09b1bf42a0ae61ff554907ccb8a0.json 9.0 KB

1
  1. {"remainingRequest":"/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/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\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",{"version":3,"sources":["leftMenu.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"leftMenu.vue","sourceRoot":"src/components/common/layout","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>"]}]}