mall-laonong/unpackage/dist/dev/.sourcemap/mp-weixin/components/tabbar/tabbar.js.map

1 line
12 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?4c87","webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?9bb0","webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?9d8b","webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?beed","uni-app:///components/tabbar/tabbar.vue","webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?3ed8","webpack:///D:/老农商城/mall-laonong/components/tabbar/tabbar.vue?3a77"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACa;;;AAGlE;AACoL;AACpL,gBAAgB,2LAAU;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;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAAwrB,CAAgB,srBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuB5sB;AACA,gD,4hCAAA;eACA;AACA,gBADA;AAEA;AACA;AACA;AACA,kBADA;AAEA,kBAFA,EAFA,EAFA;;;AASA,MATA,kBASA;AACA;AACA,qBADA,EACA;AACA,sBAFA;;AAIA,GAdA;AAeA,SAfA,qBAeA;AACA;AACA;AACA;AACA;AACA,GApBA;AAqBA;AACA;AACA,oEADA;AAEA,0EAFA,GADA,CArBA;;;AA2BA;AACA;AACA,iBAFA,2BAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDADA;AAEA,8BAFA;;AAIA;AACA,WANA;AAOA;AACA;AACA;AACA;AACA;AACA,OAhBA;AAiBA,KApBA;AAqBA;AACA,iBAtBA,yBAsBA,KAtBA,EAsBA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAHA;;AAKA;AACA;AACA,KAnCA;AAoCA;AACA,UArCA,oBAqCA;AACA;AACA;AACA,iCADA;;AAGA;AACA,KA3CA,EA3BA,E;;;;;;;;;;;;;ACzBA;AAAA;AAAA;AAAA;AAA6+B,CAAgB,u8BAAG,EAAC,C;;;;;;;;;;;ACAjgC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/tabbar/tabbar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tabbar.vue?vue&type=template&id=8ad7aaf8&\"\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 \"!../../../../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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/tabbar/tabbar.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!./tabbar.vue?vue&type=template&id=8ad7aaf8&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 =\n _vm.isLoading && _vm.cartPrice > 0\n ? this.$toolAll.tools.addXiaoShu(_vm.cartPrice)\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0\n }\n }\n )\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!./tabbar.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!./tabbar.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"tabbar-box border-box pad-sx40 background-white pad-zy20 flex\" v-if=\"isLoading\">\r\n\t\t<view class=\"content background-grey border-box color-ff flex\">\r\n\t\t\t<view class=\"nav flex\" @tap=\"chooseFootTab(index)\" v-for=\"(item,index) in footBarList\" :key=\"index\" v-if=\"current == index\">\r\n\t\t\t\t<image :style=\"{width:[39,32][index]+'rpx',height:[40,38][index]+'rpx'}\" :src=\"item.iconPath\" mode=\"widthFix\"></image>\r\n\t\t\t\t<view class=\"title fon24\" :class=\"current==index ? 'active' : ''\">{{item.title}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"price font60\">\r\n\t\t\t\t<view><text>¥</text>{{cartPrice>0?this.$toolAll.tools.addXiaoShu(cartPrice):'0'}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cart background-orange font36 color-48 flex\" @tap=\"goCart\">\r\n\t\t\t<text>购物车</text>\r\n\t\t\t<view class=\"amount font26\" v-if=\"cartNum*1 <= 99\">\r\n\t\t\t\t(<text>{{cartNum}}</text>)\r\n\t\t\t</view>\r\n\t\t\t<view class=\"amount font26\" v-if=\"cartNum*1 > 99\">\r\n\t\t\t\t(<text>99</text>)\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n<script>\r\n\timport {getCartInfo} from '@/jsFile/public-api.js';\r\n\timport { mapState } from 'vuex'; //引入mapState\r\n export default {\r\n name:'tabbar',\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:'1'\r\n\t\t\t},\r\n\t\t},\r\n data() {\r\n return {\r\n\t\t\t\tfootBarList:[], //底部列表\r\n\t\t\t\tisLoading:false,\r\n };\r\n },\r\n\t\tmounted() {\r\n\t\t\t// 获取当前页面路径\r\n\t\t\tthis.$toolAll.tools.obtainPagePath();\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\tcartNum: state=> state.moduleA.cartNum,\r\n\t\t\t\tcartPrice: state=> state.moduleA.cartPrice\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/mini-program-setting').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\t// 查询购物车信息\r\n\t\t\t\t\t\tgetCartInfo();\r\n\t\t\t\t\t\tthis.isLoading = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 跳转tabbar\r\n chooseFootTab(index){\r\n\t\t\t\tif(index==0){\r\n\t\t\t\t\tuni.reLaunch({url:'/pages/index/index'})\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 1:\r\n\t\t\t\t\t\t\tuni.reLaunch({url:'/pages/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\t\t\t// 去购物车\r\n\t\t\tgoCart(){\r\n\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/cart/cart',\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n }\r\n</script>\r\n\r\n<style>\r\n\t.tabbar-box{\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\twidth: 100%;\r\n\t\tpadding: 20rpx 20rpx 40rpx;\r\n\t\tposition: fixed;\r\n\t\tleft: 0;\r\n\t\tbottom: 0;\r\n\t\tz-index: 99;\r\n\t}\r\n\t.content{\r\n\t\talign-items: center;\r\n\t\twidth: 70.5%;\r\n\t\theight: 130rpx;\r\n\t\tpadding: 22rpx 7rpx;\r\n\t\tborder-radius: 30rpx 0 0 30rpx;\r\n\t}\r\n\t.content .nav{\r\n\t\tjustify-content: center;\r\n\t\tflex-wrap: wrap;\r\n\t\twidth: 144rpx;\r\n\t\theight: 100%;\r\n\t\tborder-right: 2rpx solid #FFFFFF;\r\n\t}\r\n\t.nav>image{\r\n\t\tmargin-top: 7rpx;\r\n\t}\r\n\t.nav>.title{\r\n\t\twidth: 100%;\r\n\t\tfont-size: 24rpx;\r\n\t\tline-height: 1.5;\r\n\t\ttext-align: center;\r\n\t}\r\n\t.content .price{\r\n\t\twidth: calc(100% - 144rpx);\r\n\t\ttext-indent: 36rpx;\r\n\t}\r\n\t.cart{\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\twidth: 29.5%;\r\n\t\theight: 130rpx;\r\n\t\tborder-radius: 0 30rpx 30rpx 0;\r\n\t}\r\n\t.cart>.amount{\r\n\t\tline-height: 2;\r\n\t\tmargin-left: 10rpx;\r\n\t}\r\n\t.cart>.amount text{\r\n\t\tmargin: 0 4rpx;\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!./tabbar.vue?vue&type=style&index=0&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!./tabbar.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1659520842670\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":""}