1 line
35 KiB
Plaintext
1 line
35 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/index.vue?8777","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/index.vue?4bce","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/index.vue?83d7","uni-app:///pages/goodsInfo/index.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/goodsSearch.vue?e29a","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/goodsSearch.vue?c0c3","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/goodsSearch.vue?8092","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/goodsSearch.vue?d40e","uni-app:///pages/goodsInfo/components/goodsSearch.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/weightAndVolume.vue?43d1","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/weightAndVolume.vue?a430","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/weightAndVolume.vue?cd42","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/goodsInfo/components/weightAndVolume.vue?e3a8","uni-app:///pages/goodsInfo/components/weightAndVolume.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,gG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACoE;AACL;AACyB;AACJ;AACjB;;;AAGnE;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFA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AACA;AACA;AACA;AACA;AACA;AACA;AACA,CANA;;AAQA;AACA;AACA;AACA,wCADA;;AAGA,CAJA,C","file":"pages/goodsInfo/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/goodsInfo/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=5cb5153e&\"\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 \"./components/weightAndVolume.scss?vue&type=style&index=0&lang=scss&\"\nimport style1 from \"./components/goodsSearch.scss?vue&type=style&index=1&lang=scss&\"\nimport style2 from \"./index.scss?vue&type=style&index=2&lang=scss&\"\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 = \"pages/goodsInfo/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=5cb5153e&\"","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<nav-bar title='物品信息'></nav-bar>\r\n\t<view class=\"goods-info\" :class=\"{isAll:isShow}\">\r\n\t\t<!-- 物品名称搜索组件 -->\r\n\t\t<GoodsSeach :isShowOther=\"isShowOther\" @getGoodsInfo=\"getGoodsInfo\"></GoodsSeach>\r\n\t\t<!-- 预估重量 -->\r\n\t\t<WeightAndVolume v-if=\"!isShow\" @getWeight=\"getWeight\" @getVolume=\"getVolume\"></WeightAndVolume>\r\n\t\t<!-- 底部 -->\r\n\t\t<view class=\"footer\">\r\n\t\t\t<view class=\"btn\" @click=\"confirm\">确定</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted\r\n\t} from 'vue';\r\n\timport { useStore } from 'vuex';\r\n\timport GoodsSeach from './components/goodsSearch.vue'\r\n\timport WeightAndVolume from './components/weightAndVolume.vue'\r\n\tconst weight = ref(1)\r\n\tconst volume = ref('')\r\n\tconst goods = reactive({\r\n\t\tinfo: {}\r\n\t})\r\n\tconst store = useStore(); //vuex获取、储存数据\r\n\tconst users = store.state.user\r\n\tconst isShow = ref(false)\r\n\tonMounted(()=>{\r\n\t\tgoods.info = users.goodsInfo\r\n\t})\r\n\tconst isShowOther = (flag) => {\r\n\t\tconsole.log(flag, 'flag')\r\n\t\tisShow.value = flag\r\n\t}\r\n\r\n\tconst getWeight = (value,) => {\r\n\t\tconsole.log(value,'value')\r\n\t\tweight.value = value\r\n\t\tstore.commit('user/setWeight',value)\r\n\t}\r\n\r\n\tconst getVolume = (value,long,width,height) => {\r\n\t\tconsole.log(value,long,width,height, 'getVolume')\r\n\t\tvolume.value = value\r\n\t\tstore.commit('user/setLong',long)\r\n\t\tstore.commit('user/setWidth',width)\r\n\t\tstore.commit('user/setHeight',height)\r\n\t\tstore.commit('user/setVolume',value)\r\n\t}\r\n\r\n\tconst getGoodsInfo = (value) => {\r\n\t\tgoods.info = value\r\n\t\tstore.commit('user/setGoodsInfo',value)\r\n\t}\r\n\r\n\tconst confirm = () => {\r\n\t\tif(!goods.info.name){\r\n\t\t\treturn uni.showToast({\r\n\t\t\t\ttitle:'请选择物品',\r\n\t\t\t\tduration:1000,\r\n\t\t\t\ticon:'none'\r\n\t\t\t})\r\n\t\t}\r\n\t\t// uni.setStorage({\r\n\t\t// \tkey: 'weight',\r\n\t\t// \tdata: weight.value\r\n\t\t// })\r\n\t\t// uni.setStorage({\r\n\t\t// \tkey: 'volume',\r\n\t\t// \tdata: volume.value\r\n\t\t// })\r\n\t\t// uni.setStorage({\r\n\t\t// \tkey: 'goods',\r\n\t\t// \tdata: goods.info\r\n\t\t// })\r\n\t\tuni.redirectTo({\r\n\t\t\turl: '/pages/express-delivery/index?isFromGoods=true'\r\n\t\t});\r\n\t}\r\n</script>\r\n\r\n<style src=\"./components/weightAndVolume.scss\" lang=\"scss\"></style>\r\n<style lang=\"scss\" src='./components/goodsSearch.scss'></style>\r\n<style lang=\"scss\" src='./index.scss'></style>\n","import { render, staticRenderFns, recyclableRender, components } from \"./goodsSearch.vue?vue&type=template&id=62a3a6e9&scoped=true&\"\nvar renderjs\nimport script from \"./goodsSearch.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./goodsSearch.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./goodsSearch.scss?vue&type=style&index=0&id=62a3a6e9&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 \"62a3a6e9\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/goodsInfo/components/goodsSearch.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!./goodsSearch.vue?vue&type=template&id=62a3a6e9&scoped=true&\"","var components\ntry {\n components = {\n uniSearchBar: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar\" */ \"@/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue\"\n )\n },\n uniPopup: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-popup/components/uni-popup/uni-popup\" */ \"@/uni_modules/uni-popup/components/uni-popup/uni-popup.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!./goodsSearch.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!./goodsSearch.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<view class=\"goodsSearch\">\r\n\t\t<!-- 头部 -->\r\n\t\t<view class=\"searchBox-title\">\r\n\t\t\t<view class=\"title\">\r\n\t\t\t\t物品名称\r\n\t\t\t\t<view class=\"label\"></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"stopSend\" @click=\"openForbidGoodsDialog\">\r\n\t\t\t\t禁寄商品\r\n\t\t\t\t<view class=\"gantanhao\"></view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 搜索框 -->\r\n\t\t<view class=\"seachBox\" v-if=\"!isSelectedGoods\">\r\n\t\t\t<uni-search-bar cancelButton='none' :focus=\"true\" v-model=\"searchValue\" @blur=\"blur\" @focus=\"focus\"\r\n\t\t\t\t@input=\"input\" @cancel=\"cancel\" @clear=\"clear\">\r\n\t\t\t\t<template v-slot:searchIcon>\r\n\t\t\t\t\t<view class=\"search-icon\"></view>\r\n\t\t\t\t</template>\r\n\t\t\t</uni-search-bar>\r\n\t\t\t<view class=\"search-btn\" @click=\"userDefined\">{{searchValue?'确定':'取消'}}</view>\r\n\t\t</view>\r\n\t\t<!-- 最近寄递 -->\r\n\t\t<!-- \t\t<view class=\"recent-send\" v-if='!isFocus && !isInput && !searchValue'>\r\n\t\t\t<view class=\"recent-send-title\">最近寄递:</view>\r\n\t\t\t<view class=\"recent-send-list\">\r\n\t\t\t\t<view class=\"recent-send-item\" v-for=\"(item,index) in recentSendList\" :key='index'>\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\r\n\t\t<!-- 最近寄件 -->\r\n\t\t<!-- \t\t<view class=\"recent-send-goods\" v-if='isFocus'>\r\n\t\t\t<view class=\"title\">最近寄件</view>\r\n\t\t\t<view class=\"recent-send-list\">\r\n\t\t\t\t<view class=\"recent-send-item\" v-for=\"(item,index) in recentSendList\" :key='index'\r\n\t\t\t\t\t@click=\"handleClick(item)\">\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\t<!-- 选择的物品 -->\r\n\t\t<view class=\"selected-goods\" v-if=\"isSelectedGoods\">\r\n\t\t\t<view class=\"goods\">\r\n\t\t\t\t{{goods.info.name}}{{goods.info.goodsType?'('+goods.info.goodsType.name+')':\"\"}}\r\n\t\t\t</view>\r\n\t\t\t<image src='../../../static/shanchu-after.png' @click=\"handleCancelGood\"></image>\r\n\r\n\t\t</view>\r\n\r\n\t\t<!-- 热门寄件 -->\r\n\t\t<view class=\"hot-send-goods\" v-if='isFocus &&!isSelectedGoods'>\r\n\t\t\t<view class=\"title\">热门寄件</view>\r\n\t\t\t<view class=\"recent-send-list\">\r\n\t\t\t\t<view class=\"recent-send-item\" v-for=\"(item,index) in hotSendList.data\" :key='index'\r\n\t\t\t\t\t@click=\"handleClick(item)\">\r\n\t\t\t\t\t{{item.name}}{{item.goodsType?'('+item.goodsType.name+')':''}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<!-- 模糊查询出的列表 -->\r\n\t\t<view class=\"search-list\" v-if=\"isInput &&!isFocus\">\r\n\t\t\t<view class=\"seatch-list-item\" @click=\"handleClick(item)\" v-for=\"(item,index) in dimSearchList.data\" :key=\"index\">\r\n\t\t\t\t<view class=\"label\">{{item.name}}</view>\r\n\t\t\t\t<view class=\"classify\">{{item.name}}{{item.goodsType?'('+item.goodsType.name+')':''}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<!-- 禁寄物品弹窗 -->\r\n\t\t<uni-popup ref=\"popup\" type=\"bottom\">\r\n\t\t\t<view class=\"title\">禁止寄递物品目录</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t1.枪支(含仿制品、主要零部件)弹药。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t2.管制器具。如匕首、三棱刮刀、带有自锁装置的弹簧刀(跳刀)、弩、催泪器等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t3.爆炸物品。如炸药、雷管、导火索、烟花、鞭炮、摔炮、拉炮、砸炮等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t4.压缩和液化气体及其容器。如氢气、甲烷、乙烷、乙炔、打火机、氯气、压缩氧气、氮气等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t5.易燃液体。如汽油、柴油、煤油、桐油、丙酮、乙醚、油漆、生漆、苯、酒精、松香油等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t6.易燃固体、自燃物质、遇水易燃物质。如红磷、硫磺、固体酒精、火柴、活性炭等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t7.氧化剂和过氧化物。如高锰酸盐、高氯酸盐、氧化氢、双氧水等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t8.毒性物质。如砷、砒霜、汞化物、铊化物、氰化物、硒粉、苯酚、汞、剧毒农药等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t9.生化制品、传染性、感染性物质。如病菌、炭疽、寄生虫、排泄物、医疗废弃物、尸骨、动物器官等。\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t10.放射性物质。如铀、钴、镭、钚等。\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"btn\" @click=\"closeForbidGoodsDialog\">我同意</view>\r\n\t\t</uni-popup>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted,\r\n\t\tdefineProps,\r\n\t\tdefineEmits\r\n\t} from 'vue';\r\n\timport {\r\n\t\tusualGoodsList,\r\n\t\tgoodsList\r\n\t} from '@/pages/api/order.js'\r\n\timport { useStore } from 'vuex';\r\n\tconst store = useStore(); //vuex获取、储存数据\r\n\tconst users = store.state.user\r\n\tconst emits = defineEmits([\"@getGoodsInfo\"]);\r\n\tconst props = defineProps({\r\n\t\tisShowOther: {\r\n\t\t\ttype: Function,\r\n\t\t\trequired: true\r\n\t\t}\r\n\t})\r\n\tconst goods = reactive({\r\n\t\tinfo: {}\r\n\t})\r\n\tconst isSelectedGoods = ref(false) //是否选择了物品\r\n\tconst popup = ref()\r\n\tconst searchValue = ref('')\r\n\tconst isFocus = ref(false) //是否搜索框为聚焦状态\r\n\tconst isInput = ref(false) //是否搜索框为输入状态\r\n\t//模糊查询出的列表数据\r\n\tconst dimSearchList = reactive({\r\n\t\tdata: []\r\n\t})\r\n\t//热门寄件物品\r\n\tconst hotSendList = reactive({\r\n\t\tdata: []\r\n\t})\r\n\r\n\tconst recentSendList = reactive({\r\n\t\tdata: [],\r\n\t})\r\n\r\n\tonMounted(() => {\r\n\t\tusualGoodsList({\r\n\t\t\tname: ''\r\n\t\t}).then((res) => {\r\n\t\t\thotSendList.data = res.data.slice(0,6)\r\n\t\t\tconsole.log(res, '常用货物列表')\r\n\t\t})\r\n\t\tisSelectedGoods.value = users.goodsInfo.name\r\n\t\tif(isSelectedGoods.value) goods.info = users.goodsInfo\r\n\t\t\r\n\t\t// goodsList().then((res)=>{\r\n\t\t// \tconsole.log(res,'货物列表')\r\n\t\t// })\r\n\t})\r\n\r\n\t//模糊查询列表数据\r\n\tconst dimSearch = (key) => {\r\n\t\tusualGoodsList({\r\n\t\t\tname: key\r\n\t\t}).then((res) => {\r\n\t\t\tdimSearchList.data = res.data\r\n\t\t\tconsole.log(res, '模糊查询货物列表')\r\n\t\t})\r\n\t}\r\n\r\n\tconst input = (e) => {\r\n\t\tisFocus.value = e ? false : true\r\n\t\tisInput.value = Boolean(e)\r\n\t\tsearchValue.value = e\r\n\t\tdimSearch(e)\r\n\t\tprops.isShowOther(e ? true : false)\r\n\t\tconsole.log(e, 'input')\r\n\t}\r\n\tconst clear = () => {\r\n\t\tisFocus.value = true\r\n\t\tprops.isShowOther(false)\r\n\t\tconsole.log('clear')\r\n\t}\r\n\tconst blur = () => {\r\n\t\t// isFocus.value = false\r\n\t\t// props.isShowOther(true)\r\n\t\tconsole.log('blur')\r\n\t}\r\n\tconst focus = () => {\r\n\t\tisFocus.value = true\r\n\t\tprops.isShowOther(false)\r\n\t\tconsole.log('focus')\r\n\t}\r\n\t\r\n\t//用户自定义的物品\r\n\tconst userDefined = ()=>{\r\n\t\tisFocus.value = true\r\n\t\tgoods.info = {name:searchValue.value}\r\n\t\tisSelectedGoods.value = true\r\n\t\tprops.isShowOther(false)\r\n\t\temits('getGoodsInfo',{name:searchValue.value})\r\n\t}\r\n\t//取消物品选择\r\n\tconst handleCancelGood = ()=>{\r\n\t\tgoods.info = {}\r\n\t\tstore.commit('user/setGoodsInfo',{})\r\n\t\temits('getGoodsInfo',{})\r\n\t\tisSelectedGoods.value = false\r\n\t\tsearchValue.value = ''\r\n\t}\r\n\r\n\t//点击标签物品\r\n\tconst handleClick = (item) => {\r\n\t\tsearchValue.value = item.value\r\n\t\tisFocus.value = true\r\n\t\tgoods.info = item\r\n\t\tisSelectedGoods.value = true\r\n\t\tprops.isShowOther(false)\r\n\t\temits('getGoodsInfo',item)\r\n\t}\r\n\r\n\t//打开禁寄物品弹窗\r\n\tconst openForbidGoodsDialog = () => {\r\n\t\tpopup.value.open('bottom');\r\n\t\tconsole.log('openForbidGoodsDialog')\r\n\t}\r\n\r\n\t//关闭禁寄物品弹窗\r\n\tconst closeForbidGoodsDialog = () => {\r\n\t\tpopup.value.close();\r\n\t}\r\n\r\n</script>\r\n\r\n<style lang=\"scss\" scoped src='./goodsSearch.scss'></style>\n","import { render, staticRenderFns, recyclableRender, components } from \"./weightAndVolume.vue?vue&type=template&id=0d4e98f8&scoped=true&\"\nvar renderjs\nimport script from \"./weightAndVolume.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./weightAndVolume.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./weightAndVolume.scss?vue&type=style&index=0&id=0d4e98f8&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 \"0d4e98f8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/goodsInfo/components/weightAndVolume.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!./weightAndVolume.vue?vue&type=template&id=0d4e98f8&scoped=true&\"","var components\ntry {\n components = {\n uniNumberBox: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-number-box/components/uni-number-box/uni-number-box\" */ \"@/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.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 var g0 = _vm.isVolumeInfo && _vm.volume ? _vm.volume.toFixed(4) : 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 \"-!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!./weightAndVolume.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!./weightAndVolume.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<view class=\"weightAndVolume\">\r\n\t\t<!-- 重量 -->\r\n\t\t<view class=\"weight-box\">\r\n\t\t\t<view class=\"weight-box-title\">预估重量</view>\r\n\t\t\t<uni-number-box :value=\"weight\" @change=\"changeWeight\" />\r\n\t\t\t<view class=\"unit\">kg</view>\r\n\t\t</view>\r\n\t\t<!-- 体积 -->\r\n\t\t<view class=\"volume-box\">\r\n\t\t\t<view class=\"volume-box-title\">总体积</view>\r\n\t\t\t<view class=\"isVolumeInfo\">\r\n\t\t\t\t<view class=\"isVolumeInfo-title\">补充体积预估费用更准确</view>\r\n\t\t\t\t<switch color=\"#1DC779\" style=\"transform:scale(0.7)\" @change=\"switchChange\" :checked=\"isVolumeInfo\" />\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 体积输入框 -->\r\n\t\t<view class=\"isVolumeInfo-title-box\" v-if='isVolumeInfo'>\r\n\t\t\t<uni-number-box :value=\"volume?volume.toFixed(4):''\" @change=\"changeVolume\" />\r\n\t\t\t<view class=\"unit\">m³</view>\r\n\t\t</view>\r\n\t\t<!-- 长宽高输入框 -->\r\n\t\t<view class=\"long-width-height\" v-if=\"isVolumeInfo\">\r\n\t\t\t<view class=\"long\">\r\n\t\t\t\t<input class=\"uni-input\" type=\"number\" :value=\"long\" placeholder=\"长 cm\" @input=\"longFun\" />\r\n\t\t\t</view>\r\n\t\t\t<view class=\"cheng\">*</view>\r\n\t\t\t<view class=\"width\">\r\n\t\t\t\t<input class=\"uni-input\" type=\"number\" :value=\"width\" placeholder=\"宽 cm\" @input=\"widthFun\"/>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"cheng\">*</view>\r\n\t\t\t<view class=\"height\">\r\n\t\t\t\t<input class=\"uni-input\" type=\"number\" :value=\"height\" placeholder=\"高 cm\" @input=\"heightFun\"/>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"accounting-rules\">\r\n\t\t\t注:实际质量与体积以收派员确定为准,物品在包装后重量可能会增加,重量体积大时会体积重量收费,\r\n\t\t\t<text class=\"red\" @click=\"openAccountRulesDialog\">了解计费规则</text>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted,\r\n\t\tdefineEmits\r\n\t} from 'vue';\r\n\timport {\r\n\t\tonLoad,\r\n\t\tonShow\r\n\t} from '@dcloudio/uni-app';\r\n\timport { useStore } from 'vuex';\r\n\tconst emits = defineEmits([\"@getWeight\",'@getVolume']);\r\n\tconst weight = ref(1) //重量\r\n\tconst volume = ref(0) //体积\r\n\tconst long = ref() //长\r\n\tconst width = ref() //宽\r\n\tconst height = ref() //高\r\n\tconst isVolumeInfo = ref(false)\r\n\tconst store = useStore(); //vuex获取、储存数据\r\n\tconst users = store.state.user\r\n\tonMounted(()=>{\r\n\t\tconsole.log(users,'体积重量加载了onMounted')\r\n\t\twidth.value = users.width\r\n\t\theight.value = users.height\r\n\t\tlong.value = users.long\r\n\t\tvolume.value = users.volume?(Number(users.volume)/1000000):''\r\n\t\tisVolumeInfo.value = users.width && users.long && users.height\r\n\t})\r\n\tonLoad(()=>{\r\n\t\tconsole.log('体积重量加载了onLoad')\r\n\t})\r\n\tonShow(()=>{\r\n\t\tconsole.log('体积重量加载了onShow')\r\n\t})\r\n\t//修改重量\r\n\tconst changeWeight = (e)=>{\r\n\t\tweight.value = e\r\n\t\temits('getWeight',weight.value)\r\n\t}\r\n\t//修改体积\r\n\tconst changeVolume = (e)=>{\r\n\t\tconsole.log(e,'eeee')\r\n\t\tvolume.value = e \r\n\t\temits('getVolume',(volume.value) * 1000000,long.value,width.value,height.value)\r\n\t}\r\n\t\r\n\t//是否显示具体体积\r\n\tconst switchChange = (e) => {\r\n\t\tisVolumeInfo.value = e.detail.value\r\n\t\tconsole.log(e, 'isVolumeInfo')\r\n\t}\r\n\t//修改长度\r\n\tconst longFun = (e) => {\r\n\t\tlong.value = e.detail.value\r\n\t\tlet valueFun = (Number(long.value) * Number(width.value) * Number(height.value))/1000000\r\n\t\tvolume.value = valueFun < 0.0001?0.0001:valueFun\r\n\t\temits('getVolume',((volume.value) * 1000000),e.detail.value,width.value,height.value)\r\n\t\tconsole.log(e, 'eee')\r\n\t}\r\n\t//修改宽度\r\n\tconst widthFun = (e) => {\r\n\t\twidth.value = e.detail.value\r\n\t\tlet valueFun = (Number(long.value) * Number(width.value) * Number(height.value))/1000000\r\n\t\tvolume.value = valueFun < 0.0001?0.0001:valueFun\r\n\t\temits('getVolume',(volume.value) * 1000000,long.value,e.detail.value,height.value)\r\n\t\tconsole.log(e, 'eee')\r\n\t}\r\n\t//修改高度\r\n\tconst heightFun = (e) => {\r\n\t\theight.value = e.detail.value\r\n\t\tlet valueFun = (Number(long.value) * Number(width.value) * Number(height.value))/1000000\r\n\t\tvolume.value = valueFun < 0.0001?0.0001:valueFun\r\n\t\temits('getVolume',(volume.value) * 1000000,long.value,width.value,e.detail.value)\r\n\t\tconsole.log(e, 'eee')\r\n\t}\r\n\r\n\t//打开计费规则弹窗\r\n\tconst openAccountRulesDialog = () => {\r\n\t\tuni.navigateTo({\r\n\t\t\turl: '/subPages/account-rules/index'\r\n\t\t});\r\n\t}\r\n</script>\r\n\r\n<style src=\"./weightAndVolume.scss\" lang=\"scss\" scoped></style>\n"],"sourceRoot":""} |