You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/App.vue?0a56","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/App.vue?9008","uni-app:///App.vue","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/App.vue?e0f1","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/App.vue?6ec6"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","use","uView","uni","$u","http","setConfig","config","baseURL","mixin","vuexStore","productionTip","App","mpType","app","store","$mount","onLaunch","success","code","authorization","console","roles","permissions","avatar","realName","sex","phonenumber","deptName","userType","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAG3D;AAGA;AAWA;AACA;AAGA;AAAgC;AAAA;AAtBhC;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAO1DC,YAAG,CAACC,GAAG,CAACC,gBAAK,CAAC;;AAEd;AACAC,GAAG,CAACC,EAAE,CAACC,IAAI,CAACC,SAAS,CAAC,UAACC,MAAM,EAAK;EACjC;EACAA,MAAM,CAACC,OAAO,sCAAsC;EACpD,OAAOD,MAAM;AACd,CAAC,CAAC;;AAEF;;AAGAP,YAAG,CAACS,KAAK,CAACC,gBAAS,CAAC;AAGpBV,YAAG,CAACO,MAAM,CAACI,aAAa,GAAG,KAAK;AAChCC,YAAG,CAACC,MAAM,GAAG,KAAK;AAElB,IAAMC,GAAG,GAAG,IAAId,YAAG;EAClBe,KAAK,EAALA;AAAK,GACFH,YAAG,EACL;AACF,UAAAE,GAAG,EAACE,MAAM,EAAE,C;;;;;;;;;;;;;AC/BZ;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAi0B,CAAgB,iyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;eCCr1B;EACAC;IACA;IACAd;MACAe;QACAf;UACAgB;QACA;UACA;UACA;UACA;UACA;UACAhB;UAEAA;YACAI;cACAa;YACA;YACA;UACA;UACA;UACAjB;YACAkB;YACA;cACAC;cACAC;cACA;cACAC;cACAC;cACAC;cACAC;cACAC;cACAC;YACA;YACA;YACA1B;;YAEA;YACA;YACA;YACA;UAEA;YACAkB;UACA;UACA;UACAlB;YACAA;UACA;QAEA;UACAkB;QACA;MAEA;IACA;EACA;EACAS;IACAT;EACA;EACAU;IACAV;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChEA;AAAA;AAAA;AAAA;AAAgiD,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACApjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import App from './App'\n\n\nimport Vue from 'vue'\n\n// 引入uView\nimport uView from '@/uni_modules/uview-ui'\nVue.use(uView)\n\n// 全局配置根域名\nuni.$u.http.setConfig((config) => {\n\t/* config 为默认全局配置*/\n\tconfig.baseURL = `http://192.168.2.101:8080/api/app`;\n\treturn config\n})\n\n// Vuex\nimport store from '@/store';\nimport vuexStore from '@/store/$u.mixin.js';\nVue.mixin(vuexStore);\n\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\n\nconst app = new Vue({\n\tstore,\n\t...App\n})\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/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 = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\t// 静默登录\r\n\t\t\tuni.login({\r\n\t\t\t\tsuccess(res) {\r\n\t\t\t\t\tuni.$u.http.post('/login', {\r\n\t\t\t\t\t\tcode: res.code\r\n\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\t// 获取token\r\n\t\t\t\t\t\tconst token = 'Bearer ' + res.data.data\r\n\t\t\t\t\t\t// 全局存储令牌\r\n\t\t\t\t\t\t// console.log(token);\n\t\t\t\t\t\tuni.$u.vuex('vuex_token', token);\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tuni.$u.http.setConfig((config) => {\r\n\t\t\t\t\t\t\tconfig.header = {\r\n\t\t\t\t\t\t\t\tauthorization: token\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\treturn config\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t// 获取用户接口数据\r\n\t\t\t\t\t\tuni.$u.http.get('/getInfo', {}).then(res => {\r\n\t\t\t\t\t\t\tconsole.log(res.data);\r\n\t\t\t\t\t\t\tlet user = {\r\n\t\t\t\t\t\t\t\troles: res.data.roles,\r\n\t\t\t\t\t\t\t\tpermissions: res.data.permissions,\n\t\t\t\t\t\t\t\t// avatar: res.data.user.avatar,\n\t\t\t\t\t\t\t\tavatar: 'https://jzhome.cn/static/gongan.png',\r\n\t\t\t\t\t\t\t\trealName: res.data.user.realName,\r\n\t\t\t\t\t\t\t\tsex: res.data.user.sex,\r\n\t\t\t\t\t\t\t\tphonenumber: res.data.user.phonenumber,\r\n\t\t\t\t\t\t\t\tdeptName: res.data.user.deptName,\r\n\t\t\t\t\t\t\t\tuserType: res.data.user.userType,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// 全局存储用户数据\r\n\t\t\t\t\t\t\tuni.$u.vuex('vuex_user', user);\r\n\r\n\t\t\t\t\t\t\t// 跳转到局内注册\r\n\t\t\t\t\t\t\t// if (user.userType !== \"00\") {\r\n\t\t\t\t\t\t\t// \tuni.$u.route('/pages/index/off_reg');\r\n\t\t\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t\t}).catch(err => {\r\n\t\t\t\t\t\t\tconsole.log('您没有访问权限');\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t// 获取部门接口数据\r\n\t\t\t\t\t\tuni.$u.http.get('/dept/list', {}).then(res => {\r\n\t\t\t\t\t\t\tuni.$u.vuex('vuex_dept', res.data.data);\r\n\t\t\t\t\t\t})\r\n\r\n\t\t\t\t\t}).catch(err => {\r\n\t\t\t\t\t\tconsole.log('访问失败');\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/* 注意要写在第一行,同时给style标签加入lang=\"scss\"属性 */\r\n\t@import \"@/uni_modules/uview-ui/index.scss\";\r\n\r\n\tpage {\r\n\t\tbackground-color: #F9F9F9;\r\n\t}\r\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1737173319054\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""} |