home.js.map 15 KB

1
  1. {"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/company/RedDragonfly/pages/home/home.vue?0b75","webpack:///D:/company/RedDragonfly/pages/home/home.vue?553c","webpack:///D:/company/RedDragonfly/pages/home/home.vue?39a8","uni-app:///pages/home/home.vue","webpack:///D:/company/RedDragonfly/pages/home/home.vue?f23b","webpack:///D:/company/RedDragonfly/pages/home/home.vue?dc29"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","time","menu","menus","id","name","url","route","onShow","onLoad","computed","user","power","created","arr","methods","getTime"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AACgN;AAChN,gBAAgB,0NAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAk0B,CAAgB,+0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACsBt1B;AAEA;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA;IAEA;EACA;EACAC;IACAb;EACA;EACAc;IACA;EACA;EACAC,4BACA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA,GACA;EACAC;IAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;MACA;QACA;MACA;MACAC;IACA;IACA;EACA;EACAC;IACA;IACAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjIA;AAAA;AAAA;AAAA;AAAiiD,CAAgB,k/CAAG,EAAC,C;;;;;;;;;;;ACArjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/home/home.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/home/home.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./home.vue?vue&type=template&id=92bb8f34&\"\nvar renderjs\nimport script from \"./home.vue?vue&type=script&lang=js&\"\nexport * from \"./home.vue?vue&type=script&lang=js&\"\nimport style0 from \"./home.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/home/home.vue\"\nexport default component.exports","export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=template&id=92bb8f34&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"home\">\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"personage\" @click=\"$goBack(2,'/pages/my/my')\">\r\n\t\t\t\t<text class=\"time\">{{time}}</text>\r\n\t\t\t\t<view class=\"img\">\r\n\t\t\t\t\t<image src=\"../../static/head.png\" mode=\"\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<text class=\"name\">{{user.name}}/{{user.department}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"bom\">\r\n\t\t\t<view v-for=\"(v,i) in menu\" :key=\"i\" class=\"btn\" @click=\"$goBack(2,v.route)\">\r\n\t\t\t\t<image :src=\"v.url\" mode=\"\"></image>\r\n\t\t\t\t{{v.name}}\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<image src=\"../../static/home/bj.png\" mode=\"\" class=\"bj\"></image>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState\r\n\t} from 'vuex'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttime: null,\r\n\t\t\t\tmenu: [],\r\n\t\t\t\tmenus: [{\r\n\t\t\t\t\t\tid: 1,\r\n\t\t\t\t\t\tname: '灌装生产',\r\n\t\t\t\t\t\turl: '../../static/home/production.png',\r\n\t\t\t\t\t\troute: '/pages/production/production'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 2,\r\n\t\t\t\t\t\tname: '产能统计',\r\n\t\t\t\t\t\turl: '../../static/home/production.png',\r\n\t\t\t\t\t\troute: '/pages/statistics/statistics?name=1'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 3,\r\n\t\t\t\t\t\tname: '出库统计',\r\n\t\t\t\t\t\turl: '../../static/home/statistics.png',\r\n\t\t\t\t\t\troute: '/pages/statistics/statistics?name=0'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 4,\r\n\t\t\t\t\t\tname: '经销商查看',\r\n\t\t\t\t\t\turl: '../../static/home/examine.png',\r\n\t\t\t\t\t\troute: '/pages/dealer/dealer'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 5,\r\n\t\t\t\t\t\tname: '库存查看',\r\n\t\t\t\t\t\turl: '../../static/home/time.png',\r\n\t\t\t\t\t\troute: '/pages/inventory/inventory'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 6,\r\n\t\t\t\t\t\tname: '市场稽查',\r\n\t\t\t\t\t\turl: '../../static/home/time.png',\r\n\t\t\t\t\t\troute: '/pages/bazaar/bazaar'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 7,\r\n\t\t\t\t\t\tname: '窜货记录',\r\n\t\t\t\t\t\turl: '../../static/home/record.png',\r\n\t\t\t\t\t\troute: '/pages/fleeingGoods/fleeingGoods'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 8,\r\n\t\t\t\t\t\tname: '新品发放记录',\r\n\t\t\t\t\t\turl: '../../static/home/newproduct.png',\r\n\t\t\t\t\t\troute: '/pages/newProduct/newProduct'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tid: 99,\r\n\t\t\t\t\t\tname: 'ERP生产推送',\r\n\t\t\t\t\t\turl: '../../static/home/tuisong.png',\r\n\t\t\t\t\t\troute: '/pages/inquire/inquire'\r\n\t\t\t\t\t},\r\n\t\t\t\t]\r\n\t\t\t};\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\twx.hideHomeButton();\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.time = this.getTime();\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t...mapState({\r\n\t\t\t\tuser: store => store.user,\r\n\t\t\t\tpower: store => store.power\r\n\t\t\t})\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.menu = []\r\n\t\t\t// console.log(this.power);\r\n\t\t\t// this.power.forEach(v => {\r\n\t\t\t// \tif (this.menus[v - 1]) {\r\n\t\t\t// \t\tthis.menu.push(this.menus[v - 1])\r\n\t\t\t// \t}\r\n\t\t\t// })\r\n\t\t\tlet arr = []\r\n\t\t\tthis.power.forEach(v => {\r\n\t\t\t\tlet a = this.menus.filter(v1 => {\r\n\t\t\t\t\treturn v1.id === v\r\n\t\t\t\t})\r\n\t\t\t\tarr.push(a)\r\n\t\t\t})\r\n\t\t\tthis.menu = arr.flat(Infinity)\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取当前时间\r\n\t\t\tgetTime() {\r\n\t\t\t\t// 获取时间\r\n\t\t\t\tlet date = new Date();\r\n\t\t\t\t// 获取月份\r\n\t\t\t\tlet m = date.getMonth() + 1;\r\n\t\t\t\t// 获取日\r\n\t\t\t\tlet d = date.getDate();\r\n\t\t\t\tlet md = m + '月' + d + '日'\r\n\t\t\t\treturn md\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\thtml,\r\n\tbody {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n\r\n\t.home {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tletter-spacing: 5rpx;\r\n\t\tposition: relative;\r\n\r\n\t\t.bj {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 0;\r\n\t\t\ttop: 0;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tz-index: -1;\r\n\t\t}\r\n\r\n\t\t.top {\r\n\t\t\theight: 25%;\r\n\t\t\tbackground-color: #e40315;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\t.personage {\r\n\t\t\t\twidth: 80%;\r\n\t\t\t\theight: 85%;\r\n\t\t\t\tbackground-color: #fff;\r\n\t\t\t\tpadding: 20rpx;\r\n\t\t\t\tborder-radius: 20rpx;\r\n\t\t\t\tbox-shadow: 0rpx 5rpx 35rpx -15rpx #000;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\ttransform: translateX(-50%);\r\n\t\t\t\tbottom: -50rpx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-direction: column;\r\n\t\t\t\tjustify-content: space-between;\r\n\r\n\t\t\t\t.time {\r\n\t\t\t\t\tcolor: #acacac;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.img {\r\n\t\t\t\t\ttext-align: center;\r\n\r\n\t\t\t\t\timage {\r\n\t\t\t\t\t\twidth: 160rpx;\r\n\t\t\t\t\t\theight: 160rpx;\r\n\t\t\t\t\t\tborder-radius: 50%;\r\n\t\t\t\t\t\tmargin: 0 auto;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.name {\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tcolor: #919191;\r\n\t\t\t\t\tmargin-bottom: 20rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.bom {\r\n\t\t\tpadding: 100rpx 50rpx 0;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-wrap: wrap;\r\n\r\n\t\t\t.btn {\r\n\t\t\t\twidth: 215rpx;\r\n\t\t\t\theight: 215rpx;\r\n\t\t\t\tborder-right: 1rpx solid #e1e1e1;\r\n\t\t\t\tborder-bottom: 1rpx solid #e1e1e1;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tcolor: #919191;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-direction: column;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: center;\r\n\r\n\t\t\t\t&:nth-child(3n) {\r\n\t\t\t\t\tborder-right: 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\timage {\r\n\t\t\t\t\twidth: 50rpx;\r\n\t\t\t\t\theight: 50rpx;\r\n\t\t\t\t\tmargin-bottom: 15rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1693291669560\n var cssReload = require(\"D:/Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}