1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"sources":[null,"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":[],"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;;;;;;;;;;;;;;;;;;;;;;;;;;ACcxrB,gD;;;;;;;;;;;;;AAAA;eACA,EACA,cADA,EAEA,SACA;AACA,eACA,YADA,EAEA,UAFA,EAFA,EAMA;AACA,gBACA,YADA,EAEA,iBAFA,EAPA,EAFA,EAcA,IAdA,kBAcA,CACA;AACA;AACA,kEADA;AAEA,kEAFA;AAGA,kEAHA,CADA;AAKA;AACA;AACA,kEADA;AAEA,kEAFA;AAGA,kEAHA;AAIA,kEAJA;AAKA;AAXA;AAaA,GA5BA;AA6BA;AACA;AACA,iBAFA,yBAEA,KAFA,EAEA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA;AACA;AACA;AACA;AACA;AACA,wDADA;;AAGA;AACA,aANA,MAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA;AACA,aANA,MAMA;AACA;AACA;AACA,kBA3BA;;AA6BA;AACA;AACA;AACA;AACA;AACA,8CADA;;AAGA;AACA;AACA;AACA;AACA,8DADA;;AAGA;AACA;AACA;AACA;AACA;AACA,kDADA;;AAGA;AACA;AACA;AACA;AACA;AACA,wDADA;;AAGA;AACA,kBA1BA;;AA4BA;AACA,KAhEA,EA7BA,E;;;;;;;;;;;;;ACfA;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,31,39][index]+'rpx',height:[32,30,31,35][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</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:'打卡'},\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-04.png',title:'支出'},\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-05.png',title:'录入'},\n\t\t\t\t\t{iconPath:'/static/icon/icon-tabbar-02.png',title:'加班'}\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',\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(uni.getStorageSync('worker_role')==1){\r\n\t\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\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}else{\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('资料审核中');\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(uni.getStorageSync('worker_role')==1){\r\n\t\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\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/my/my',\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}else{\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('资料审核中');\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/director/sign/sign',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\n\t\t\t\t\t\t\t\tuni.reLaunch({\n\t\t\t\t\t\t\t\t\turl:'/pages/director/expenditure/expenditure',\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\n\t\t\t\t\t\t\t\tuni.reLaunch({\n\t\t\t\t\t\t\t\t\turl:'/pages/director/enter/enter',\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\n\t\t\t\t\t\t\t\tuni.reLaunch({\n\t\t\t\t\t\t\t\t\turl:'/pages/director/overtime/overtime',\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n },\n }\n }\n</script>\n\n<style scoped>\n\t.tabbar-list{\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\tpadding: 0 25rpx;\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\twidth: 25%;\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 // 1670462488233\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":""} |