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.
 
 
 
 

1 lines
15 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?c32f","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?cf20","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?92c7","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?4ae4","uni-app:///user/pages/traffic/index.vue","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?9637","webpack:///C:/Users/18634/Desktop/项目/xxdj1/user/pages/traffic/index.vue?2728"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","list1","name","list","value","show","showDistance","form","day_car","day_car_name","night_car","night_car_name","max_distance","handleName","methods","closeHandle","closeDistanceHandle","selectDistanceHandle","selectHandle","console","getActionSheet","trafficList","params","getTime","res","arr1","arr2","uni","title","onLoad"],"mappings":";;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACsC;;;AAG1F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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,aAAa,iSAEN;AACP,KAAK;AACL;AACA,aAAa,iVAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAA+lB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCwCnnB;EACAC;IACA;MACAC,QACA;QAAAC;MAAA;QAAAA;MAAA;QAAAA;MAAA;QAAAA;MAAA;QAAAA;MAAA;QAAAA;MAAA;QAAAA;MAAA;QAAAA;MAAA,EACA;MACAC,OACA;QACAD;QACAE;MACA,GACA;QACAF;QACAE;MACA,GACA;QACAF;QACAE;MACA,EACA;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACAC;MACA;QACA;QACA;MACA;MACA;QACA;QACA;MACA;IACA;IACAC;MACAD;MACA;MACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAF;gBAEA;kBACAG;oBACAC;kBAEA;gBACA;kBACAD;oBACAd;oBACAE;oBACAE;kBACA;gBACA;gBAAA;gBAAA,OACA;cAAA;gBAAAY;gBACAL;gBACA;kBACAM;oBACA;kBACA;kBACAC;oBACA;kBACA;kBACA;kBACA;kBACA;kBACA;kBACA;gBACA;kBACAC;oBACAC;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;EACA;EACAC;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC1IA;AAAA;AAAA;AAAA;AAAkqC,CAAgB,woCAAG,EAAC,C;;;;;;;;;;;ACAtrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"user/pages/traffic/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/uni-stat/dist/uni-stat.es.js';\nimport Vue from 'vue'\nimport Page from './user/pages/traffic/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=096c6002&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=096c6002&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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 \"096c6002\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"user/pages/traffic/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=096c6002&scoped=true&\"","var components\ntry {\n components = {\n uIcon: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-icon/u-icon\" */ \"@/uni_modules/uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uActionSheet: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-action-sheet/u-action-sheet\" */ \"@/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.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 if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.showDistance = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"traffic\">\r\n\t\t<view class=\"trafficItem\" @click=\"showDistance=true\">\r\n\t\t\t<text>接单距离(公里)</text>\r\n\t\t\t<view class=\"right\">\r\n\t\t\t\t<text>{{form.max_distance}}</text>\r\n\t\t\t\t<u-icon name=\"arrow-right\" color=\"#999999\" size=\"16\"></u-icon>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"trafficItem\" @click=\"getActionSheet('day')\">\r\n\t\t\t<text>白天车费类型</text>\r\n\t\t\t<view class=\"right\">\r\n\t\t\t\t<text>{{form.day_car_name}}</text>\r\n\t\t\t\t<u-icon name=\"arrow-right\" color=\"#999999\" size=\"16\"></u-icon>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"trafficItem\" @click=\"getActionSheet('night')\">\r\n\t\t\t<text>晚上车费类型</text>\r\n\t\t\t<view class=\"right\">\r\n\t\t\t\t<text>{{form.night_car_name}}</text>\r\n\t\t\t\t<u-icon name=\"arrow-right\" color=\"#999999\" size=\"16\"></u-icon>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"btn\" @click=\"trafficList(false)\">\r\n\t\t\t保存\r\n\t\t</view>\r\n\t\t<u-action-sheet :actions=\"list\" \r\n\t\t:closeOnClickOverlay=\"true\"\r\n\t\t@close=\"closeHandle\"\r\n\t\t@select=\"selectHandle\"\r\n\t\t:show=\"show\"></u-action-sheet>\r\n\t\t<u-action-sheet :actions=\"list1\"\r\n\t\t:closeOnClickOverlay=\"true\"\r\n\t\t@close=\"closeDistanceHandle\"\r\n\t\t@select=\"selectDistanceHandle\"\r\n\t\t:show=\"showDistance\"></u-action-sheet>\r\n\t</view>\n</template>\n\n<script>\r\nexport default{\r\n\tdata(){\r\n\t\treturn{\r\n\t\t\tlist1:[\r\n\t\t\t\t{name:10},{name:20},{name:30},{name:40},{name:50},{name:60},{name:70},{name:80}\r\n\t\t\t],\r\n\t\t\tlist: [\r\n\t\t\t\t{\r\n\t\t\t\t\tname:'免费',\r\n\t\t\t\t\tvalue:0\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tname:'单程',\r\n\t\t\t\t\tvalue:1\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tname:'双程',\r\n\t\t\t\t\tvalue:2\r\n\t\t\t\t},\r\n\t\t\t],\r\n\t\t\tshow: false,\r\n\t\t\tshowDistance:false,\r\n\t\t\tform:{\r\n\t\t\t\tday_car:0,\r\n\t\t\t\tday_car_name:'免费',\r\n\t\t\t\tnight_car:0,\r\n\t\t\t\tnight_car_name:'免费',\r\n\t\t\t\tmax_distance:20\r\n\t\t\t},\r\n\t\t\thandleName:''\r\n\t\t}\r\n\t},\r\n\tmethods:{\r\n\t\tcloseHandle(){\r\n\t\t\tthis.show = false\r\n\t\t},\r\n\t\tcloseDistanceHandle(){\r\n\t\t\tthis.showDistance = false\r\n\t\t},\r\n\t\tselectDistanceHandle(item){\r\n\t\t\tthis.form.max_distance = item.name;\r\n\t\t},\r\n\t\tselectHandle(item){\r\n\t\t\tconsole.log(item,\"0000\")\r\n\t\t\tif(this.handleName=='day'){\r\n\t\t\t\tthis.form.day_car = item.value;\r\n\t\t\t\tthis.form.day_car_name = item.name\r\n\t\t\t}\r\n\t\t\tif(this.handleName=='night'){\r\n\t\t\t\tthis.form.night_car = item.value;\r\n\t\t\t\tthis.form.night_car_name = item.name\r\n\t\t\t}\r\n\t\t},\r\n\t\tgetActionSheet(val){\r\n\t\t\tconsole.log(val)\r\n\t\t\tthis.show = true;\r\n\t\t\tthis.handleName=val\r\n\t\t},\r\n\t\tasync trafficList(val){\r\n\t\t\tconsole.log(val,\"000\")\r\n\t\t\tlet params\r\n\t\t\tif(val){\r\n\t\t\t\tparams={\r\n\t\t\t\t\tgetTime :1\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tparams={\r\n\t\t\t\t\tday_car:this.form.day_car,\r\n\t\t\t\t\tnight_car:this.form.night_car,\r\n\t\t\t\t\tmax_distance:this.form.max_distance\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlet res= await this.$api.mine.trafficList(params)\r\n\t\t\tconsole.log(res)\r\n\t\t\tif(val){\r\n\t\t\t\tlet arr1 = this.list.filter(item=>{\r\n\t\t\t\t\treturn item.value == res.day_car\r\n\t\t\t\t})\r\n\t\t\t\tlet arr2 = this.list.filter(item=>{\r\n\t\t\t\t\treturn item.value == res.night_car\r\n\t\t\t\t})\r\n\t\t\t\tthis.form.max_distance = res.max_distance\r\n\t\t\t\tthis.form.day_car = res.day_car\r\n\t\t\t\tthis.form.day_car_name = arr1[0].name\r\n\t\t\t\tthis.form.night_car = res.night_car\r\n\t\t\t\tthis.form.night_car_name = arr2[0].name\r\n\t\t\t}else{\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '保存成功'\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t},\r\n\tonLoad(){\r\n\t\tthis.trafficList(true)\r\n\t}\r\n}\n</script>\n\n<style lang=\"scss\" scoped>\r\n\t.traffic{\r\n\t\tbackground: #FFFFFF;\r\n\t\tborder-radius: 30rpx;\r\n\t\tmargin:20rpx 24rpx;\r\n\t\tposition: relative;\r\n\t}\r\n.trafficItem{\r\n\t// border:1px solid red;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n\tmargin:0 30rpx;\r\n\tpadding:40rpx 0;\r\n\tborder-bottom:1px solid #eaeaea;\r\n\ttext{\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-family: Alibaba PuHuiTi;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #333333;\r\n\t}\r\n\t.right{\r\n\t\tdisplay:flex;\r\n\t}\r\n}\r\n.btn{\r\n\tposition: fixed;\r\n\tbottom:66rpx;\r\n\tpadding:31rpx 0;\r\n\tbackground: #08BF77;\r\n\tborder-radius: 45px;\r\n\tleft:8%;\r\n\twidth:84%;\r\n\tfont-size: 30rpx;\r\n\tfont-family: Alibaba PuHuiTi;\r\n\tfont-weight: 400;\r\n\ttext-align: center;\r\n\tcolor: #FFFFFF;\r\n}\n</style>","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=096c6002&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=096c6002&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1693645336646\n var cssReload = require(\"D:/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":""}