1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"version":3,"sources":["webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?ad1f","webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?f711","webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?d787","webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?ab4f","uni-app:///components/tabbar/tabbar.vue","webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?f6ed","webpack:///D:/Lee/工地打卡小程序/building-sign/components/tabbar/tabbar.vue?77aa"],"names":["name","props","current","type","default","userType","data","workerBarList","iconPath","title","directorBarList","workbenchBarList","methods","chooseFootTab","uni","url","setTimeout"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACqC;;;AAG1F;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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;AAAoqB,CAAgB,kqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACkBxrB;;;;;;;;;;;;;;;;;;AAAA;AAAA,eACA;EACAA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;EACA;EACAE;IACA;MACAC,gBACA;QAAAC;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,EACA;MAAA;MACAC,kBACA;QAAAF;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,EACA;MAAA;MACAE,mBACA;QAAAH;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,GACA;QAAAD;QAAAC;MAAA,EACA;IACA;EACA;;EACAG;IACA;IACAC;MACA;QACA;UACA;YACAC;cACAC;YACA;YACA;UACA;YACA;cACA;gBACA;gBACA;kBACAC;oBACAF;sBACAC;oBACA;kBACA;gBACA;cACA;gBACAD;kBACAC;gBACA;cACA;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;QAAA;MAEA;MACA;QACA;UACA;YACAD;cACAC;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;QAAA;MAEA;MACA;QACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;UACA;YACA;cACAD;gBACAC;cACA;YACA;YACA;QAAA;MAEA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnJA;AAAA;AAAA;AAAA;AAAy+B,CAAgB,m8BAAG,EAAC,C;;;;;;;;;;;ACA7/B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/tabbar/tabbar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tabbar.vue?vue&type=template&id=8ad7aaf8&scoped=true&\"\nvar renderjs\nimport script from \"./tabbar.vue?vue&type=script&lang=js&\"\nexport * from \"./tabbar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tabbar.vue?vue&type=style&index=0&id=8ad7aaf8&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HbuilderX/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 \"8ad7aaf8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/tabbar/tabbar.vue\"\nexport default component.exports","export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tabbar.vue?vue&type=template&id=8ad7aaf8&scoped=true&\"","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 \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tabbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tabbar.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"tabbar-list\">\n\t\t<!-- 底部导航 -->\n\t\t<view v-if=\"userType=='worker'\" class=\"tabbar-item\" :class=\"current==index ? 'active' : ''\" @tap=\"chooseFootTab(index)\" v-for=\"(item,index) in workerBarList\" :key=\"index\">\n\t\t\t<view class=\"icon\"><image class=\"img\" :style=\"{width:[31,39,36][index]+'rpx',height:[32,35,36][index]+'rpx'}\" :src=\"item.iconPath\" mode=\"widthFix\"></image></view>\n\t\t\t<view class=\"title font26\">{{item.title}}</view>\n\t\t</view>\n\t\t<view v-if=\"userType=='director'\" class=\"tabbar-item\" :class=\"current==index ? 'active' : ''\" @tap=\"chooseFootTab(index)\" v-for=\"(item,index) in directorBarList\" :key=\"index\">\n\t\t\t<view class=\"icon\"><image class=\"img\" :style=\"{width:[31,30,36][index]+'rpx',height:[32,30,36][index]+'rpx'}\" :src=\"item.iconPath\" mode=\"widthFix\"></image></view>\n\t\t\t<view class=\"title font26\">{{item.title}}</view>\n\t\t</view>\r\n\t\t<view v-if=\"userType=='workbench'\" class=\"tabbar-item\" :class=\"current==index ? 'active' : ''\" @tap=\"chooseFootTab(index)\" v-for=\"(item,index) in workbenchBarList\" :key=\"index\">\r\n\t\t\t<view class=\"icon\"><image class=\"img\" :style=\"{width:[31,30,31,39][index]+'rpx',height:[32,30,31,35][index]+'rpx'}\" :src=\"item.iconPath\" mode=\"widthFix\"></image></view>\r\n\t\t\t<view class=\"title font26\">{{item.title}}</view>\r\n\t\t</view>\n\t</view>\n</template>\n<script>\n\timport { mapState } from 'vuex'; //引入mapState\n export default {\n name:'tabbar',\n\t\tprops:{\n\t\t\t// 当前选中项\n\t\t\tcurrent:{\n\t\t\t\ttype:Number,\n\t\t\t\tdefault:0\n\t\t\t},\n\t\t\t// 账号类别\n\t\t\tuserType:{\n\t\t\t\ttype:String,\n\t\t\t\tdefault:'worker'\n\t\t\t}\n\t\t},\n data() {\n return {\n\t\t\t\tworkerBarList:[\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-01.png',title:'打卡'},\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-02.png',title:'加班'},\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-03.png',title:'我的'}\n\t\t\t\t], //工人底部列表\n\t\t\t\tdirectorBarList:[\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-01.png',title:'打卡'},\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-06.png',title:'工作台'},\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-03.png',title:'我的'}\r\n\t\t\t\t], //负责人底部列表\r\n\t\t\t\tworkbenchBarList:[\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-01.png',title:'打卡'},\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-04.png',title:'支出'},\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-05.png',title:'录入'},\r\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-02.png',title:'加班'},\r\n\t\t\t\t], //工作台底部列表\n };\n },\n methods:{\n\t\t\t// 跳转tabbar\n chooseFootTab(index){\n\t\t\t\tif(this.userType=='worker'){\n\t\t\t\t\tswitch (index){\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tuni.reLaunch({\n\t\t\t\t\t\t\t\turl:'/pages/worker/sign/sign?userType=worker',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tif(uni.getStorageSync('worker_role')==0){\r\n\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('您好,请申请入职!');\r\n\t\t\t\t\t\t\t\t\tif(uni.getStorageSync('page-path-options').indexOf('/pages/worker/my/my')==-1){\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl:'/pages/worker/my/my?userType=worker',\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t},800)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\turl:'/pages/worker/overtime/overtime',\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/worker/my/my?userType=worker',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(this.userType=='director'){\n\t\t\t\t\tswitch (index){\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tuni.reLaunch({\n\t\t\t\t\t\t\t\turl:'/pages/worker/sign/sign?userType=director',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/director/sign/sign?userType=workbench',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/worker/my/my?userType=director',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\r\n\t\t\t\tif(this.userType=='workbench'){\r\n\t\t\t\t\tswitch (index){\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/director/sign/sign?userType=workbench',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/director/expenditure/expenditure?userType=workbench',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/director/enter/enter?userType=workbench',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/director/overtime/overtime?userType=workbench',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\n },\n }\n }\n</script>\n\n<style scoped>\n\t.tabbar-list{\r\n\t\tbox-sizing: border-box;\n\t\tdisplay: flex;\n\t\tjustify-content: space-around;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\theight: 100rpx;\n\t\tborder-top: 2rpx solid #e9e9e9;\n\t\tbackground-color: #ffffff;\n\t\tposition: fixed;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\tz-index: 99;\n\t}\n\t.tabbar-item{\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-items: center;\n\t\ttext-align: center;\n\t}\n\t.tabbar-item .icon{\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\theight: 40rpx;\n\t}\n\t.tabbar-item .icon .img{\n\t\tfilter: grayscale(100%);\n\t}\n\t.tabbar-item .title{\n\t\twidth: 100%;\n\t\tmargin-top: 6rpx;\n\t\tline-height: 1.2;\n\t\tcolor: #737373;\n\t}\n\t.tabbar-item.active .title{\n\t\tcolor: #0788ff;\n\t}\n\t.tabbar-item.active .icon .img{\n\t\tfilter: grayscale(0);\n\t}\n</style>\n","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tabbar.vue?vue&type=style&index=0&id=8ad7aaf8&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tabbar.vue?vue&type=style&index=0&id=8ad7aaf8&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1673853572056\n var cssReload = require(\"D:/HbuilderX/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":""} |