1 line
30 KiB
Plaintext
1 line
30 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/pickup/index.vue?8319","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/pickup/index.vue?245a","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/pickup/index.vue?3e8c","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/pickup/index.vue?2392","uni-app:///pages/pickup/index.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-search/index.vue?5a7c","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-search/index.vue?9831","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-search/index.vue?e14d","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-search/index.vue?0d75","uni-app:///components/uni-search/index.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-tab/index.vue?343f","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-tab/index.vue?70a0","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-tab/index.vue?53e2","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-tab/index.vue?b808","uni-app:///components/uni-tab/index.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-footer/index.vue?2092","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-footer/index.vue?0312","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-footer/index.vue?b5df","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/uni-footer/index.vue?55a3","uni-app:///components/uni-footer/index.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,8F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,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AACA;AACA,2CACA;AACA,gCACA,OACA,CACA,uBACA;AACA;AACA;AACA,CATA;AAUA;AACA;AACA,sBADA,I;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACoE;AACL;;;AAG/D;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;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;AAA4uB,CAAgB,uvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoBhwB;AACA,+C;;;;;;;;;;;;;;;;;;;AACA;AACA,0BACA,YACA,YADA,EAEA,WAFA,EADA,I,CAMA;AACA,kC,CAAA;AACA,wD,CAAA;AACA,4BACA,EACA,8BADA,EAEA,qCAFA,EAGA,mDAHA,EAIA,WAJA,EADA,EAOA,EACA,+BADA,EAEA,sCAFA,EAGA,oDAHA,EAIA,WAJA,EAPA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,mCAFA;AAGA,iDAHA;AAIA,YAJA;;AAMA;AACA;AACA;AACA;AACA;AACA;AA9BA;AAgCA;AACA;AACA,CAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBADA;AAEA,qCAFA;AAGA,8BAHA;;AAKA;AACA,CAZA,C","file":"pages/pickup/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/pickup/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=0e6a68f8&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"../../styles/expressage.scss?vue&type=style&index=0&id=0e6a68f8&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"0e6a68f8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/pickup/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=0e6a68f8&scoped=true&\"","var render = function () {}\nvar staticRenderFns = []\nvar recyclableRender\nvar components\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<!-- 取件页面 -->\r\n<template>\r\n\t<!-- 搜索nav -->\r\n\t<SearchPage @handleSearch=\"handleSearch\"></SearchPage>\r\n\t<!-- end -->\r\n\t<view class=\"boxTop\">\r\n\t\t<!-- tab切换 -->\r\n\t\t<UniTab :tabBars=\"tabBars\" ref=\"tab\" @getTabIndex=\"getTabIndex\"></UniTab>\r\n\t</view>\r\n\t<!-- footer -->\r\n\t<UniFooter :pagePath=\"'pages/delivery/index'\"></UniFooter>\r\n\t<!-- end -->\r\n</template>\r\n\r\n<script setup>\r\nimport { ref, reactive, onMounted, watch } from 'vue';\r\nimport { onReachBottom } from '@dcloudio/uni-app';\r\nimport { useStore } from 'vuex';\r\n\r\n// 基本数据\r\nimport { DeliveryData } from '@/utils/commonData.js';\r\n// 接口api\r\nimport { getDeliveryList, taskDelete, taskBatchDelete } from '@/pages/api/index.js';\r\n// 导入组件\r\n// 导航\r\n// import UniNav from '@/components/uni-nav/index.vue';\r\n// 搜索组件\r\nimport SearchPage from '@/components/uni-search/index.vue';\r\n// 底部导航\r\nimport UniFooter from '@/components/uni-footer/index.vue';\r\n// tab切换\r\nimport UniTab from '@/components/uni-tab/index.vue';\r\n// 筛选\r\n\r\nconst store = useStore();\r\nconst users = store.state.user;\r\nconst emit = defineEmits(''); //子组件向父组件事件传递\r\nconst tab = ref();\r\nconst list = ref();\r\nconst tabBars = DeliveryData;\r\nlet tabIndex = ref(0); //当前tab\r\n\r\nlet isAdmin = ref(false); //是否触发管理按钮\r\n// 存储已选内容, 因为这个列表是增删很频繁的,所以选用map而不是数组,key对应的是数据的下标。至于value存放什么,完全由自己定\r\nlet selected = reactive(new Map());\r\n// ------生命周期------\r\nonMounted(() => {\r\n\r\n});\r\n\r\n// ------定义方法------\r\n// 获取初始值\r\nconst init = () => {};\r\n\r\n// 搜索\r\nconst handleSearch = () => {};\r\n// 批量删除\r\n\r\n// 获取tab切换当前的index\r\nconst getTabIndex = index => {\r\n\ttabIndex.value = index;\r\n // 根据不同的tab值切更新 取件数据\r\n\tif (index === 0) {\r\n\t\tlist.value.dealPList();\r\n\t} else if (index === 1) {\r\n\t\tlist.value.alreadList();\r\n\t} else {\r\n\t\tlist.value.cancelList();\r\n\t}\r\n\tselected.clear();\r\n\t// 修改底部管理按钮状态,因为取件、派件公用了一个底部管理组件,因此切换tab的时候先把isAdmin设置成false,以防数据混搅。\r\n\tisAdmin.value =false\r\n\t\r\n};\r\n// 触发选项卡事件\r\nconst onChangeSwiperTab = e => {\r\n\ttab.value.changeTab(e.detail.current);\r\n};\r\n// 获取foot底部组件的管理按钮触发值,向列表页传递,用来控制全选,单选功能\r\nconst getAdmin = val => {\r\n\tisAdmin.value = val;\r\n};\r\n// 给筛选组件传递,刷新列表\r\nconst getList = () => {\r\n\tlist.value.dealPList();\r\n};\r\n\r\n</script>\r\n<style src=\"../../styles/expressage.scss\" lang=\"scss\" scoped></style>\r\n","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=39bdeeba&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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/uni-search/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=39bdeeba&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<!-- 公用nav -->\r\n\t<view class=\"navBox\">\r\n\t\t<view class=\"search \">\r\n\t\t\t<!-- 头部自定义导航 -->\r\n\t\t\t<!-- <uni-nav-bar right-text=\"取消\" @clickRight=\"handleCancel\"> -->\r\n\t\t\t<view class=\"uni-navbar\">\r\n\t\t\t\t<view class=\"input-view\">\r\n\t\t\t\t\t<uni-icons class=\"input-uni-icon\" type=\"search\" size=\"18\" color=\"#999\" />\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\tconfirm-type=\"search\"\r\n\t\t\t\t\t\tclass=\"nav-bar-input\"\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tv-model=\"searchVal\"\r\n\t\t\t\t\t\tplaceholder=\"请输入姓名/手机号/地址关键字\"\r\n\t\t\t\t\t\t@confirm=\"handleSearch\"\r\n\t\t\t\t\t\t@input=\"handleSearch\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<view class=\"scanIcon\" @click=\"handleQr\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"concelBox\" @click=\"handleCancel\" v-if=\"isShowCancel\">取消</view>\r\n\t\t\t\t</view>\r\n\t\t\t<!-- </uni-nav-bar> -->\r\n\t\t\t<!-- end -->\r\n\t\t</view>\r\n\t</view>\r\n\t<!-- end -->\r\n</template>\r\n\r\n<script setup>\r\nimport { ref } from 'vue';\r\nconst props = defineProps({\r\n\tisShowCancel:{\r\n\t\ttype:Boolean,\r\n\t\tdefault: false\r\n\t}\r\n})\r\n// ------定义变量------\r\nconst emit = defineEmits('handleSearch'); //子组件向父组件事件传递\r\nconst searchVal = ref('');\r\n// -----方法------\r\n// 取消搜索\r\nconst handleCancel = () => {\r\n\tsearchVal.value = '';\r\n\t\r\n\temit('goBack')\r\n};\r\n// 搜索\r\nconst handleSearch = () => {\r\n\temit('handleSearch', searchVal);\r\n};\r\n// 扫二维码\r\nconst handleQr = () => {};\r\n</script>\r\n","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=26130e90&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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/uni-tab/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=26130e90&\"","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 \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<scroll-view scroll-x=\"true\" class=\"tabScroll\" :scroll-into-view=\"scrollinto\" :scroll-with-animation=\"true\">\r\n\t\t<view class=\"scroll-row\">\r\n\t\t\t<view v-for=\"(item, index) in tabBars\" :key=\"index\" :id=\"'tab' + index\" class=\"scroll-row-item\" @click=\"changeTab(index)\">\r\n\t\t\t\t<view :class=\"tabIndex == index ? 'scroll-row-item-act' : ''\">\r\n\t\t\t\t\t<text class=\"line\"></text>\r\n\t\t\t\t\t{{ item.label }}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</scroll-view>\r\n</template>\r\n<script setup>\r\nimport { ref, reactive, onMounted } from 'vue';\r\n// 获取父组件数据\r\nconst props = defineProps({\r\n\ttabBars:{\r\n\t\ttype:Object,\r\n\t\tdefault:() => ({})\r\n\t}\r\n})\r\n// ------定义变量------\r\nconst emit = defineEmits(''); //子组件向父组件事件传递\r\nconst scrollinto = ref('tab0'); //tab切换\r\nlet tabIndex = ref(0); //当前tab\r\n// ------定义方法------\r\n// tab选项卡切换轮播\r\nconst changeTab = index => {\r\n\t// 点击的还是当前数据的时候直接return\r\n\tif (tabIndex.value == index) {\r\n\t\treturn;\r\n\t}\r\n\ttabIndex.value = index;\r\n\temit('getTabIndex',index)\r\n\t// 滑动\r\n\tscrollinto.value = 'tab' + index;\r\n};\r\n//把数据、方法暴漏给父组件\r\ndefineExpose({\r\n\tchangeTab\r\n});\r\n</script>\r\n\r\n<style>\r\n</style>","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=08c444d6&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"08c444d6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-footer/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=08c444d6&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 \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<!-- 公用底部 -->\r\n\t<view class=\"footBox\">\r\n\t\t<view class=\"uni-tabbar\">\r\n\t\t\t<view class=\"tabbar-item\" :class=\"currentPage === index ? 'active' : ''\" v-for=\"(item, index) in tabbar\" :key=\"index\" @tap=\"changeTab(item, index)\">\r\n\t\t\t\t<view v-if=\"true\" class=\"uni-tabbar__bd\">\r\n\t\t\t\t\t<view class=\"uni-tabbar__icon\" v-if=\"item.pagePath !== ''\">\r\n\t\t\t\t\t\t<image v-if=\"currentPage === index\" class=\"item-img\" :src=\"item.selectedIconPath\" />\r\n\t\t\t\t\t\t<image v-else class=\"item-img\" :src=\"item.iconPath\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"qrCode\"><image :src=\"item.iconPath\" /></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"uni-tabbar__label\" v-if=\"item.text !== ''\">{{ item.text }}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n\t<!-- end -->\r\n</template>\r\n\r\n<script setup>\r\nimport { ref, reactive, onMounted, nextTick, watch } from 'vue';\r\nimport { useStore } from 'vuex';\r\n// 获取父组件值、方法\r\nconst props = defineProps({\r\n\tpagePath: {\r\n\t\ttype: String,\r\n\t\tdefault: ''\r\n\t}\r\n});\r\n// ------定义变量------\r\nconst store = useStore();//vuex获取储存数据\r\nconst currentPage = ref(store.state.footStatus); //获取储存的当前tab状态\r\nlet tabbar = ref([\r\n\t{\r\n\t\tpagePath: '/pages/index/index',\r\n\t\ticonPath: '../../static/jikuaidi.png',\r\n\t\tselectedIconPath: '../../static/jikuaidiActive.png',\r\n\t\ttext: '寄快递'\r\n\t},\r\n\t{\r\n\t\tpagePath: '/pages/pickup/index',\r\n\t\ticonPath: '../../static/chakuaidi.png',\r\n\t\tselectedIconPath: '../../static/chakuaidiActive.png',\r\n\t\ttext: '查快递'\r\n\t},\r\n\t// {\r\n\t// \tpagePath: '',\r\n\t// \ticonPath: 'static/qrcode.png',\r\n\t// \tselectedIconPath: 'static/qrcode.png',\r\n\t// \ttext: ''\r\n\t// },\r\n\t{\r\n\t\tpagePath: '/pages/my/index',\r\n\t\ticonPath: '../../static/wode.png',\r\n\t\tselectedIconPath: '../../static/wodeActive.png',\r\n\t\ttext: '我的'\r\n\t},\r\n\t// {\r\n\t// \tpagePath: '/pages/my/index',\r\n\t// \ticonPath: 'static/user.png',\r\n\t// \tselectedIconPath: 'static/userActive.png',\r\n\t// \ttext: '我的'\r\n\t// }\r\n]);\r\nonMounted(()=>{\r\n\tconsole.log(store.state,'store.state')\r\n})\r\n// ------方法------\r\n// 触发tab事件\r\nconst changeTab = (item, index) => {\r\n\tconsole.log(item, index,'底部')\r\n\tstore.commit('setFootStatus',index)\r\n\tif (item.text !== '') {\r\n\t\tcurrentPage.value = index;\r\n\t\t// 页面跳转\r\n\t\tuni.redirectTo({\r\n\t\t\turl: item.pagePath,\r\n\t\t\tsuccess: e => {},\r\n\t\t\tfail: () => {}\r\n\t\t});\r\n\t}\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped></style>\r\n"],"sourceRoot":""} |