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
13 KiB
1 lines
13 KiB
{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?3c56","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?45e4","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?d82e","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?39f6","uni-app:///tabbarComponent/tabbar.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?7d49","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/tabbarComponent/tabbar.vue?e754"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACa;;;AAGlE;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;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;AAAqzB,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBz0B;AACA,mB;AACA;AACA,MADA,kBACA;AACA;AACA,yCADA;AAEA;AACA,oCADA;AAEA,0BAFA;AAGA,kCAHA;AAIA;AACA,yCADA;AAEA,+DAFA;AAGA,yEAHA;AAIA,sBAJA;AAKA;AACA,+CADA;AAEA,+DAFA;AAGA,yEAHA;AAIA,wBAJA,EALA;AAUA;AACA,4CADA;AAEA,uEAFA;AAGA,2BAHA;AAIA,sBAJA,EAVA;AAeA;AACA,yCADA;AAEA,+DAFA;AAGA,yEAHA;AAIA,sBAJA,EAfA;AAoBA;AACA,yCADA;AAEA,+DAFA;AAGA,yEAHA;AAIA,sBAJA,EApBA,CAJA,EAFA;;;AAiCA,mCAjCA;;AAmCA,GArCA;AAsCA,gBAtCA;AAuCA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA,mDALA,EAvCA;;AA8CA,SA9CA,qBA8CA;AACA;AACA,GAhDA;AAiDA;AACA,aADA,qBACA,KADA,EACA;AACA;AACA;AACA;AACA,KALA,EAjDA,E;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAA4pC,CAAgB,imCAAG,EAAC,C;;;;;;;;;;;ACAhrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tabbarComponent/tabbar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tabbar.vue?vue&type=template&id=7f32663c&\"\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&lang=css&\"\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 = \"tabbarComponent/tabbar.vue\"\nexport default component.exports","export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.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!./tabbar.vue?vue&type=template&id=7f32663c&\"","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 \"-!../../../../../../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--12-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!./tabbar.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--12-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!./tabbar.vue?vue&type=script&lang=js&\"","<template>\n<view :class=\"'tabbar_box ' + (isIphoneX?'iphoneX-height':'')\" :style=\"'background-color:' + tabbar.backgroundColor\">\n <block v-for=\"(item, index) in tabbar.list\" :key=\"index\">\n <navigator v-if=\"item.isSpecial == true\" class=\"tabbar_nav\" hover-class=\"none\" :url=\"item.pagePath\" :style=\"'color:' + tabbar.selectedColor\" open-type=\"navigate\">\n <view class=\"special-wrapper\"><image class=\"tabbar_icon\" :src=\"item.iconPath\"></image></view>\n <image class=\"special-text-wrapper\"></image>\n <text>{{item.text}}</text>\n </navigator>\n \n <navigator v-else class=\"tabbar_nav\" hover-class=\"none\" :url=\"item.pagePath\" :style=\"'color:' + (index == currentTabIndex ? tabbar.selectedColor : tabbar.color)\" open-type=\"switchTab\" @tap=\"switchTab(index)\">\n <image class=\"tabbar_icon\" :src=\"index == currentTabIndex ? item.selectedIconPath : item.iconPath\"></image>\n <text>{{item.text}}</text>\n </navigator>\n </block>\n</view>\n</template>\n\n<script>\n// tabBarComponent/tabBar.js\nconst app = getApp();\nexport default {\n data() {\n return {\n isIphoneX: app.globalData.isIphoneX,\n\t\t\t\ttabbar:{\n\t\t\t\t\"backgroundColor\": \"#ffffff\",\n\t\t\t\t\"color\": \"#979795\",\n\t\t\t\t\"selectedColor\": \"#FF6F34\",\n\t\t\t\t\"list\": [{\n\t\t\t\t\t\"pagePath\": \"/pages/home/index\",\n\t\t\t\t\t\"iconPath\": \"../static/tabbarComponent/icon/home.png\",\n\t\t\t\t\t\"selectedIconPath\": \"../static/tabbarComponent/icon/home-a.png\",\n\t\t\t\t\t\"text\": \"首页\"\n\t\t\t\t}, {\n\t\t\t\t\t\"pagePath\": \"/pages/demandHall/index\",\n\t\t\t\t\t\"iconPath\": \"../static/tabbarComponent/icon/tab2.png\",\n\t\t\t\t\t\"selectedIconPath\": \"../static/tabbarComponent/icon/tab2-a.png\",\n\t\t\t\t\t\"text\": \"供需大厅\"\n\t\t\t\t}, {\n\t\t\t\t\t\"pagePath\": \"/pages/release/index\",\n\t\t\t\t\t\"iconPath\": \"../static/tabbarComponent/icon/icon_release.png\",\n\t\t\t\t\t\"isSpecial\": true,\n\t\t\t\t\t\"text\": \"发布\"\n\t\t\t\t}, {\n\t\t\t\t\t\"pagePath\": \"/pages/life/index\",\n\t\t\t\t\t\"iconPath\": \"../static/tabbarComponent/icon/tab3.png\",\n\t\t\t\t\t\"selectedIconPath\": \"../static/tabbarComponent/icon/tab3-a.png\",\n\t\t\t\t\t\"text\": \"生活\"\n\t\t\t\t}, {\n\t\t\t\t\t\"pagePath\": \"/pages/user/index\",\n\t\t\t\t\t\"iconPath\": \"../static/tabbarComponent/icon/tab4.png\",\n\t\t\t\t\t\"selectedIconPath\": \"../static/tabbarComponent/icon/tab4-a.png\",\n\t\t\t\t\t\"text\": \"我的\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\tcurrentTabIndex: this.current\n };\n },\n components: {},\n props: {\n\t\tpagePath:{\n\t\t\ttype: String,\n\t\t\tdefault:''\n\t\t},\n\t\tcurrent: { type: [Number, String], default: 0 },\n },\n\tmounted() {\n\t\t// console.log(this.pagePath)\n\t},\n methods: {\n\t\tswitchTab(index){\n\t\t\tconsole.log(index)\n\t\t\t// this.currentTabIndex = index\n\t\t\tthis.$emit('click', index)\n\t\t}\n\t}\n};\n</script>\n<style>\n.tabbar_box{\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 999;\n width: 100%;\n height: 98rpx;\n box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04);\n}\n.tabbar_box.iphoneX-height{\n padding-bottom: 66rpx;\n height: 170rpx;\n}\n.middle-wrapper{\n position: absolute;\n right: 50%;\n margin-left: -60rpx;\n bottom: 0;\n background-color: #fff;\n width: 120rpx;\n height: 120rpx;\n border-radius: 50%;\n /* border-top: 2rpx solid #f2f2f3; */\n /* box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04); */\n}\n.middle-wrapper.iphoneX-height{\n bottom: 66rpx;\n}\n.tabbar_nav{\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-size: 20rpx;\n height: 100%;\n position: relative;\n}\n.tabbar_icon{\n width: 52rpx;\n height: 52rpx;\n}\n.special-wrapper{\n position: absolute;\n top: -36rpx;\n width: 96rpx;\n height: 96rpx;\n border-radius: 50%;\n /* border-top: 2rpx solid #f2f2f3; */\n box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04);\n background-color: #fff;\n text-align: center;\n box-sizing: border-box;\n padding: 6rpx;\n}\n.special-wrapper .tabbar_icon{\n width: 84rpx;\n height: 84rpx;\n}\n.special-text-wrapper{\n width: 56rpx;\n height: 56rpx;\n}\n</style>","import mod from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../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!./tabbar.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-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--6-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../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!./tabbar.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513139328\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":""} |