luban-mall/unpackage/dist/dev/.sourcemap/mp-weixin/components/foot-tab/foot-tab.js.map

1 line
12 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?1f70","webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?9a3f","webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?2709","webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?bcd6","uni-app:///components/foot-tab/foot-tab.vue","webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?d7cf","webpack:///D:/鲁班家具小程序/luban-mall/components/foot-tab/foot-tab.vue?08c1"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACqC;;;AAG5F;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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;AAA0rB,CAAgB,wrBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACW9sB;AACA,gD,4hCAAA;eACA;AACA,kBADA;AAEA;AACA;AACA;AACA,kBADA;AAEA,kBAFA,EAFA;;AAMA;AACA;AACA,kBADA;AAEA,mBAFA,EAPA,EAFA;;;AAcA,MAdA,kBAcA;AACA;AACA,6BADA,EACA;AACA,qBAFA,CAEA;AAFA;AAIA,GAnBA;AAoBA,SApBA,qBAoBA;AACA;AACA;AACA;AACA;AACA,KAFA,EAEA,IAFA;AAGA;AACA;AACA;AACA;AACA,GA9BA;AA+BA;AACA;AACA,6EADA;AAEA,oEAFA,GADA,CA/BA;;;AAqCA;AACA;AACA,iBAFA,2BAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDADA;AAEA,8BAFA;;AAIA;AACA,WANA;AAOA;AACA;AACA,OAbA;AAcA,KAjBA;AAkBA;AACA,iBAnBA,yBAmBA,KAnBA,EAmBA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAHA;;AAKA;AACA;AACA,KAtCA,EArCA,E;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAAugC,CAAgB,i+BAAG,EAAC,C;;;;;;;;;;;ACA3hC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/foot-tab/foot-tab.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./foot-tab.vue?vue&type=template&id=c9161278&scoped=true&\"\nvar renderjs\nimport script from \"./foot-tab.vue?vue&type=script&lang=js&\"\nexport * from \"./foot-tab.vue?vue&type=script&lang=js&\"\nimport style0 from \"./foot-tab.vue?vue&type=style&index=0&id=c9161278&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HBuilderX-app开发版/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 \"c9161278\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/foot-tab/foot-tab.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=template&id=c9161278&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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"foot-box\">\r\n\t\t<view class=\"item-box\" @tap=\"chooseFootTab(index)\" v-for=\"(item,index) in footBarList\" :key=\"index\">\r\n\t\t\t<view class=\"item-icon flex\" :class=\"current*1===index ? 'active' : ''\">\r\n\t\t\t\t<image :style=\"{width:[38,40,38,37,40][index]+'rpx',height:[39,40,38,39,40][index]+'rpx'}\" :src=\"item.iconPath\" mode=\"widthFix\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"foot-title\" :class=\"current==index ? 'active' : ''\">{{item.title}}</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n<script>\r\n\timport {getCartNum} from '@/jsFile/public-api.js';\r\n\timport { mapState } from 'vuex'; //引入mapState\r\n export default {\r\n name:'foot-tab',\r\n\t\tprops:{\r\n\t\t\t// 当前选中项\r\n\t\t\tcurrent:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'0'\r\n\t\t\t},\r\n\t\t\t// 默认哪个图标突出\r\n\t\t\tisIcon:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'-1'\r\n\t\t\t},\r\n\t\t},\r\n data() {\r\n return {\r\n\t\t\t\tifCustomerService:true,//是否存在客服 默认不存在客服\r\n\t\t\t\tfootBarList:[], //底部列表\r\n };\r\n },\r\n\t\tmounted() {\r\n\t\t\t// 缓存状态栏+标题栏的高度\r\n\t\t\tconst query = wx.createSelectorQuery().in(this)\r\n\t\t\tquery.select('.foot-box').boundingClientRect((rect) => {\r\n\t\t\t\tthis.$store.commit('footHeightEv',rect.height);\r\n\t\t\t}).exec()\r\n\t\t\t// 查询购物车数量\r\n\t\t\tgetCartNum();\r\n\t\t\t// 获取底部信息\r\n\t\t\tthis.getTabbarList();\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\t...mapState({\r\n\t\t\t\tonLineList: state => state.moduleA.onLineList,\r\n\t\t\t\tcartNum: state=> state.moduleA.cartNum\r\n\t\t\t}),\r\n\t\t},\r\n methods:{\r\n\t\t\t// 获取底部信息\r\n\t\t\tgetTabbarList(){\r\n\t\t\t\tthis.$requst.get('/api/index/tarbar').then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'底部信息')\r\n\t\t\t\t\t\tlet tabbarArr = [];\r\n\t\t\t\t\t\tres.data.footBar.forEach(item=>{\r\n\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\ticonPath:this.$hostHttp+item.icon,\r\n\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttabbarArr.push(obj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.footBarList = tabbarArr;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 跳转\r\n chooseFootTab(index){\r\n\t\t\t\tif(index==0){\r\n\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/index/index'})\r\n\t\t\t\t}else if(index==1){\r\n\t\t\t\t \tuni.reLaunch({url:'/pages/tabbar/cate/cate'})\r\n\t\t\t\t}else if(index==2){\r\n\t\t\t\t \tuni.reLaunch({url:'/pages/tabbar/kit/kit'})\r\n\t\t\t\t}else if(index==3){\r\n\t\t\t\t \tuni.reLaunch({url:'/pages/tabbar/news/news'})\r\n\t\t\t\t}else {\r\n\t\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\t\t// 已授权\r\n\t\t\t\t\t\tswitch (index){\r\n\t\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/my/my'})\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\t/* 外框样式 start */\r\n\t.foot-box{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-around;\r\n\t\theight: 130rpx;\r\n\t\tfont-size: 24rpx;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tz-index: 10;\r\n\t\t\r\n\t}\r\n\t/* 外框样式 end */\r\n\t.item-box {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tpadding: 16rpx 10rpx;\r\n\t\twidth: 100%;\r\n\t}\r\n\t.item-icon{\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\twidth: 65rpx;\r\n\t\theight: 60rpx;\r\n\t\tborder-radius: 10rpx;\r\n\t}\r\n\t.item-icon.active {\r\n\t\tbackground-color: #0073bc;\r\n\t}\r\n\t.item-icon.active image{\r\n\t\t-webkit-filter: brightness(1000%);\r\n\t\t-moz-filter: brightness(1000%);\r\n\t\t-ms-filter: brightness(1000%);\r\n\t\t-o-filter: brightness(1000%);\r\n\t\tfilter: brightness(1000%); \r\n\t}\r\n\t.foot-title{\r\n\t\tmargin-top: 10rpx;\r\n\t\tletter-spacing: 4rpx;\r\n\t\tfont-size: 24rpx;\r\n\t\tcolor: #999999;\r\n\t}\r\n\t.foot-title.active{\r\n\t\tcolor: #000000;\r\n\t}\r\n\t/* 凸出样式 */\r\n\t.bulge {\r\n\t\tposition: absolute;\r\n\t\ttop: -30rpx;\r\n\t\twidth: 80rpx!important;\r\n\t\theight: 80rpx!important;\r\n\t\tborder: 8rpx solid #FFFFFF;\r\n\t\tborder-radius: 100%;\r\n\t\tvertical-align: middle;\r\n\t\tbox-shadow: 0rpx -3rpx 6rpx rgba(0,0,0,.1);\r\n\t\tbackground-color: #FFFFFF;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=style&index=0&id=c9161278&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=style&index=0&id=c9161278&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1658125845582\n var cssReload = require(\"D:/HBuilderX-app开发版/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":""}