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.
 
 
 
 
 
huazhiyu/unpackage/dist/dev/.sourcemap/mp-weixin/components/TabBar/TabBar.js.map

1 lines
12 KiB

{"version":3,"sources":["webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?da5d","webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?1311","webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?d6c9","webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?d488","uni-app:///components/TabBar/TabBar.vue","webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?7cf1","webpack:////Users/seep/Documents/liuqingProject/hezhiying/components/TabBar/TabBar.vue?c8f4"],"names":["data","TabBarList","index","name","img","acImg","codeheight","isOverall","phoneModel","props","tabBarShow","type","default","mounted","uni","success","console","that","methods","onTabBar","url"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACgN;AAChN,gBAAgB,iNAAU;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;AAAo0B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCex1B;EACAA;IACA;MACAC,aACA;QACAC;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,GAEA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;QACAC;MACA,EACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;MACA;MACA;MACA;MACAC;QACAC;UACAC;UACAA;UACAA;UACAA;UACAC;UACAA;UACA;YACAA;UACA;YACAA;UACA;UACAD;QACA;MACA;IACA;MACA;IAAA;EAEA;EACAE;IACA;AACA;AACA;AACA;IACAC;MACA;MACA;QACA;UACAL;YACAM;UACA;UACA;QACA;UACAN;YACAM;UACA;UACA;QAEA;UACAN;YACAM;UACA;UACA;QACA;UACAN;YACAM;UACA;UACA;MAAA;IAEA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjHA;AAAA;AAAA;AAAA;AAA2jD,CAAgB,27CAAG,EAAC,C;;;;;;;;;;;ACA/kD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/TabBar/TabBar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./TabBar.vue?vue&type=template&id=43a9aa84&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=43a9aa84&scoped=true&lang=scss&\"\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 \"43a9aa84\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/TabBar/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--17-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=43a9aa84&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 \"-!../../../../../../../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--13-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--13-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\t<view class=\"page-total\">\n\t\t<view class=\"tab-list\">\n\t\t\t<view class=\"list\" v-for=\"(item,index) in TabBarList\" \n\t\t\t@click=\"onTabBar(item,index)\"\n\t\t\t:key=\"index\">\n\t\t\t\t<image :src=\"item.acImg\" mode=\"widthFix\" v-show=\"tabBarShow === index\"></image>\n\t\t\t\t<image :src=\"item.img\" mode=\"widthFix\" v-show=\"tabBarShow != index\"></image>\n\t\t\t\t<text :class=\"{'action':tabBarShow===index}\">{{item.name}}</text>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tTabBarList:[\n\t\t\t\t\t{\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tname: '首页',\n\t\t\t\t\t\timg: '/static/tabBar/tab_01.png',\n\t\t\t\t\t\tacImg: '/static/tabBar/tab_02.png'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tname: '抢购',\n\t\t\t\t\t\timg: '/static/tabBar/tab_03.png',\n\t\t\t\t\t\tacImg: '/static/tabBar/tab_04.png'\n\t\t\t\t\t},\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tname: '购物车',\n\t\t\t\t\t\timg: '/static/tabBar/tab_07.png',\n\t\t\t\t\t\tacImg: '/static/tabBar/tab_08.png'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tname: '我的',\n\t\t\t\t\t\timg: '/static/tabBar/tab_09.png',\n\t\t\t\t\t\tacImg: '/static/tabBar/tab_10.png'\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tcodeheight: 0,\n\t\t\t\tisOverall: 0,\n\t\t\t\tphoneModel: '',\n\t\t\t};\n\t\t},\n\t\tprops:{\n\t\t\ttabBarShow: {\n\t\t\t\ttype: Number,\n\t\t\t\tdefault: 0,\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\t\t\ttry {\n\t\t\t const res = uni.getSystemInfoSync();\n\t\t\t\t\tlet that = this;\n\t\t\t // 获取系统信息\n\t\t\t uni.getSystemInfo({\n\t\t\t \tsuccess(res) {\n\t\t\t \t\tconsole.log(res.brand) //手机牌子\n\t\t\t \t\tconsole.log(res.model) //手机型号\n\t\t\t \t\tconsole.log(res.screenWidth) //屏幕宽度\n\t\t\t \t\tconsole.log(res.screenHeight) //屏幕高度\n\t\t\t\t\t\t\tthat.codeheight = Math.round(res.screenHeight);\n\t\t\t\t\t\t\tthat.phoneModel =res.model\n\t\t\t\t\t\t\tif(res.model.search('iPhone')){\n\t\t\t\t\t\t\t\tthat.isOverall = 0;\n\t\t\t\t\t\t\t}else if(Math.round(res.screenHeight)>740){\n\t\t\t\t\t\t\t that.isOverall = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconsole.log(that.isOverall);\n\t\t\t \t}\n\t\t\t });\n\t\t\t} catch (e) {\n\t\t\t // error\n\t\t\t}\n\t\t},\n\t\tmethods:{\n\t\t\t/**\n\t\t\t * @param {Object} item\n\t\t\t * @param {Number} index\n\t\t\t */\n\t\t\tonTabBar(item,index){\n\t\t\t\t// this.tabBarShow = index;\n\t\t\t\tswitch (index){\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\t\turl:'/pages/home/home'\n\t\t\t\t\t\t})\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\t\turl:'/pages/qianggou/qianggou'\n\t\t\t\t\t\t})\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\t\turl:'/pages/cart/cart'\n\t\t\t\t\t\t})\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\t\turl:'/pages/my/my'\n\t\t\t\t\t\t})\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import 'TabBar.scss';\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../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&id=43a9aa84&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../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&id=43a9aa84&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1697873051036\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":""}