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
24 KiB
1 lines
24 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?de3f","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?69d8","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?e9bf","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?30eb","uni-app:///ChargingStation/pages/placeOrder/index.vue","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?8064","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/ChargingStation/pages/placeOrder/index.vue?f1f8"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","selectLicense","platItem","data","accountIndex","plateNum","accountList","isShow","licenseDialog","pageIndex","plateNumberIndex","checkPage","qrcode","tacitly","WrongText","connectorId","licensePlate","payMoneyPreFreeze","payMoneyPreAvailable","selectPriceOptionValue","priceOptions","label","value","pageData","created","onLoad","console","filters","price","watch","e","methods","getAccountList","station","accountChange","getPlateNum","tipFn","uni","title","showCancel","content","success","licenseConfirm","licenseChange","showSb","priceOptionClick","getStationData","qrCode","goPlay","companyId","accountCardCode","play","accountId","setTimeout","url","icon"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;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;AACgN;AAChN,gBAAgB,wNAAU;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,sTAEN;AACP,KAAK;AACL;AACA,aAAa,mWAEN;AACP,KAAK;AACL;AACA,aAAa,gQAEN;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACzEA;AAAA;AAAA;AAAA;AAAszB,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACyE10B;AAGA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAGA;EACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;QACAC;MACA;MACAC;QACAC;MACA;MACAC;QACAC;UACAC;UACAC;QACA;QACAC;UACAF;UACAC;QACA;QACAE;UACAH;UACAC;QACA;QACAG;UACAJ;UACAC;QACA;QACAI;UACAL;UACAC;QACA;MACA;MACAI;MACAC;MACAC;QACAC;QACAC;MACA;QACAD;QACAC;MACA;QACAD;QACAC;MACA;QACAD;QACAC;MACA;QACAD;QACAC;MACA;QACAD;QACAC;MACA;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACAC;IACA;EACA;EACAC;IACAC;MACA;MACA;IACA;EACA;EACAC;IACA;MACAC;IACA;IACAX;MACA;IACA;EACA;EACAY;IACAC;MAAA;MACAC;QACA;MACA;IACA;IACAC,yCAEA;IACAC;MACA;QACA;QACA;MACA;IACA;IACAC;MACAC;QACAC;QACAC;QACAC;QACAC;UACA;YACAf;UACA;YACAA;UACA;QACA;MACA;IACA;IACAgB;MACA;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MAAA;MACA;QACAb;UACAc;QACA;UACA;YACA;UACA;YACAV;cACAC;cACAE;cACAD;cACAE;gBACAJ;cACA;YACA;UACA;QACA;MACA;IACA;IACAW;MAAA;MACA;MACA;MACA7C;QACAe;QACAF;MACA;MACA;MACA;QACA;UAAAiC;UAAAC;UAAAhC;UAAAD;QACAkC;UACAF;UACAG;QACA;UACAC;YACAhB;cACAiB;YACA;UACA;QACA;QACA;QACA;QACA;MACA;QACAjB;UACAC;UACAiB;QACA;MACA;IAEA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjQA;AAAA;AAAA;AAAA;AAAqiD,CAAgB,y/CAAG,EAAC,C;;;;;;;;;;;ACAzjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"ChargingStation/pages/placeOrder/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './ChargingStation/pages/placeOrder/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6bb7e2ef&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=6bb7e2ef&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\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 \"6bb7e2ef\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"ChargingStation/pages/placeOrder/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=6bb7e2ef&scoped=true&\"","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 keyboardPlate: function () {\n return import(\n /* webpackChunkName: \"uni_modules/keyboard-plate/components/keyboard-plate/keyboard-plate\" */ \"@/uni_modules/keyboard-plate/components/keyboard-plate/keyboard-plate.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 var f0 = _vm.pageData ? _vm._f(\"price\")(_vm.pageData) : null\n var g0 = _vm.pageData\n ? _vm.tool.getnum(_vm.accountList[_vm.accountIndex][\"balance\"], 3)\n : null\n var g1 = _vm.pageData ? _vm.pageData.plateNumberList.length : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n return _vm.$refs.accountDialog.open(\"bottom\")\n }\n _vm.e1 = function ($event) {\n _vm.selectPriceOptionValue = \"\"\n }\n _vm.e2 = function ($event) {\n _vm.isShow.licenseDialog = true\n }\n _vm.e3 = function ($event) {\n _vm.isShow.licenseDialog = false\n _vm.$refs.plateNumber.open()\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n f0: f0,\n g0: g0,\n g1: g1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\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:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\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 v-if='pageData' class=\"placeOrder_container flex column\">\r\n\t\t<view class=\"placeOrder_header\">\r\n\t\t\t<view class=\"placeOrder_header_name\">{{pageData.stationName}}</view>\r\n\t\t\t<view class=\"placeOrder_period flex ac\">\r\n\t\t\t\t<text\r\n\t\t\t\t\tclass=\"placeOrder_period_left oneflex\">当前时段:{{pageData.stationPrice.startTime}}-{{pageData.stationPrice.endTime}}</text>\r\n\t\t\t\t<text class=\"placeOrder_period_right\">¥ {{ pageData|price }}/度</text>\r\n\t\t\t</view>\r\n\t\t\t<view>\r\n\t\t\t\t<text>电费:<text class=\"blue\">{{pageData.stationPrice.businessElectricityFee}}元/度</text>\r\n\t\t\t\t</text>\r\n\t\t\t\t<text style=\"margin-left: 47rpx;\">\r\n\t\t\t\t\t服务费:\r\n\t\t\t\t\t<text class=\"blue\">{{pageData.stationPrice.businessServiceFee}}元/度</text>\r\n\t\t\t\t</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"placeOrder_body oneflex\">\r\n\t\t\t<view class=\"placeOrder_card flex\">\r\n\t\t\t\t<view @click=\"$refs.accountDialog.open('bottom')\" class='flex ac' style=\"width: 100%;\">\r\n\t\t\t\t\t<image src=\"@/static/account.png\"></image>\r\n\t\t\t\t\t<view class=\"account oneflex\">\r\n\t\t\t\t\t\t<view class=\"account_label\">{{accountList[accountIndex]['name']}}</view>\r\n\t\t\t\t\t\t<view class=\"account_tip\">当前余额: <text>{{tool.getnum(accountList[accountIndex]['balance'],3)}}</text> 元</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<uni-icons type=\"forward\" size=\"20\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view style=\"padding-bottom: 0;\" class=\"placeOrder_card\">\r\n\t\t\t\t<view class=\"placeOrder_body_input flex\">\r\n\t\t\t\t\t<view class=\"placeOrder_body_input_label\"> 充电金额</view>\r\n\t\t\t\t\t<input @focus=\"selectPriceOptionValue = ''\" v-model=\"payMoneyPreAvailable\" class=\"oneflex\"\r\n\t\t\t\t\t\ttype=\"number\" placeholder=\"请输入充电金额\">\r\n\t\t\t\t\t<text>元</text>\r\n\t\t\t\t\t<text @click=\"tipFn\" style=\"margin: 0 10rpx 0 20rpx;\">\r\n\t\t\t\t\t\t+{{pageData.globalPayThreshold}}\r\n\t\t\t\t\t</text>\r\n\t\t\t\t\t<uni-icons @click=\"tipFn\" type=\"help\" size=\"20\" color=\"#476FFAFF\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"placeOrder_body_poriceOoptions flex\">\r\n\t\t\t\t\t<view @click=\"priceOptionClick(item)\" v-for=\"(item,index) in priceOptions\" :key=\"index\"\r\n\t\t\t\t\t\t:class=\" selectPriceOptionValue == item.value? 'placeOrder_body_poriceOoptions_item select_placeOrder_body_poriceOoptions_item flex ac jc' : 'placeOrder_body_poriceOoptions_item flex ac jc' \">\r\n\t\t\t\t\t\t{{item.label}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"placeOrder_card flex\">\r\n\t\t\t\t<view class='flex' style=\"width: 100%;\" @click=\"isShow.licenseDialog=true\">\r\n\t\t\t\t\t<text class=\"placeOrder_card_label \">车牌号:</text>\r\n\t\t\t\t\t<view class=\"oneflex\">\r\n\t\t\t\t\t\t{{pageData.plateNumberList.length? pageData.plateNumberList[pageIndex.plateNumberIndex]: '请输入车牌号' }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<uni-icons type=\"forward\" size=\"20\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"placeOrder_footer\">\r\n\t\t\t\t<view @click=\"goPlay\" class=\"placeOrder_footer_button flex ac jc\">立即支付</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<keyboard-plate ref=\"plateNumber\" :plateNum.sync='plateNum' @change=\"getPlateNum\" isShow></keyboard-plate>\r\n\t\t<uni-popup @change=\"accountChange\" :safe-area='false' ref=\"accountDialog\" type=\"bottom\">\r\n\t\t\t <plat-item :selectIndex.sync='accountIndex' :pageData = 'accountList'></plat-item>\r\n\t\t</uni-popup>\r\n\t\t<uni-popup @change=\"licenseChange\" :safe-area='false' ref=\"licenseDialog\" type=\"bottom\">\r\n\t\t\t<select-license @showPlateNumber='isShow.licenseDialog=false; $refs.plateNumber.open()'\r\n\t\t\t\t@confirm='licenseConfirm' v-model=\"pageIndex.plateNumberIndex\" v-if=\"isShow.licenseDialog\"\r\n\t\t\t\t:plateNumbers='pageData.plateNumberList'></select-license>\r\n\t\t</uni-popup>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport station from '@/api/station.js'\r\n\timport selectLicense from './components/selectLicense/selectLicense.vue'\r\n\timport platItem from './components/accountItem/index.vue'\r\n\timport play from '@/api/play.js'\r\n\timport {\r\n\t\tindexPage\r\n\t} from './AntiCorruptionLayer.js'\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\tselectLicense,\r\n\t\t\tplatItem\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\taccountIndex:0,\r\n\t\t\t\tplateNum: '',\r\n\t\t\t\taccountList:[],\r\n\t\t\t\tisShow: {\r\n\t\t\t\t\tlicenseDialog: false,\r\n\t\t\t\t},\r\n\t\t\t\tpageIndex: {\r\n\t\t\t\t\tplateNumberIndex: 0\r\n\t\t\t\t},\r\n\t\t\t\tcheckPage: {\r\n\t\t\t\t\tqrcode: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '参数qrcode错误'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tconnectorId: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '参数connectorId错误'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tlicensePlate: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '车牌号输入错误'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tpayMoneyPreFreeze: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '参数payMoneyPreFreeze错误'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tpayMoneyPreAvailable: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '充电金额不能为空'\r\n\t\t\t\t\t},\r\n\t\t\t\t},\r\n\t\t\t\tpayMoneyPreAvailable: '',\r\n\t\t\t\tselectPriceOptionValue: '',\r\n\t\t\t\tpriceOptions: [{\r\n\t\t\t\t\tlabel: '10元',\r\n\t\t\t\t\tvalue: 10\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '30元',\r\n\t\t\t\t\tvalue: 30\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '60元',\r\n\t\t\t\t\tvalue: 60\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '80元',\r\n\t\t\t\t\tvalue: 80\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '100元',\r\n\t\t\t\t\tvalue: 100\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '120元',\r\n\t\t\t\t\tvalue: 120\r\n\t\t\t\t}, ],\r\n\t\t\t\tpageData: null\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.getAccountList()\r\n\t\t},\r\n\t\tonLoad(e) {\r\n\t\t\tconsole.log(e,'=====')\r\n\t\t\tthis.getStationData(e); \r\n\t\t},\r\n\t\tfilters: {\r\n\t\t\tprice(e) {\r\n\t\t\t\tlet price = Number(e.stationPrice.businessElectricityFee) + Number(e.stationPrice.businessServiceFee)\r\n\t\t\t\treturn price.toFixed(2);\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\t'isShow.licenseDialog'(e) {\r\n\t\t\t\te ? this.$refs.licenseDialog.open('bottom') : this.$refs.licenseDialog.close()\r\n\t\t\t},\r\n\t\t\tselectPriceOptionValue(e) {\r\n\t\t\t\tthis.payMoneyPreAvailable = e;\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetAccountList(){\r\n\t\t\t\tstation.getAccountList().then(res => {\r\n\t\t\t\t\tthis.accountList = res.data\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taccountChange(){\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tgetPlateNum(e) {\r\n\t\t\t\tif (e.value) {\r\n\t\t\t\t\tthis.pageData['plateNumberList'].push(e.value)\r\n\t\t\t\t\tthis.pageIndex.plateNumberIndex = this.pageData['plateNumberList'].length - 1\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttipFn() {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '支付阈值说明',\r\n\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\tcontent: '为避免金额预估不准导致电未充满,以及防止超充导致订单金额差异。该部分金额,将于订单结算后会根据实际系统结算,自动退回。',\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tconsole.log('用户点击确定');\r\n\t\t\t\t\t\t} else if (res.cancel) {\r\n\t\t\t\t\t\t\tconsole.log('用户点击取消');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tlicenseConfirm(e) {\r\n\t\t\t\tthis.pageIndex.plateNumberIndex = e;\r\n\t\t\t\tthis.isShow.licenseDialog = false;\r\n\t\t\t},\r\n\t\t\tlicenseChange(e) {\r\n\t\t\t\tif (!e.show) this.isShow.licenseDialog = false;\r\n\t\t\t},\r\n\t\t\tshowSb() {\r\n\t\t\t\tthis.showLicenseDialog = true;\r\n\t\t\t},\r\n\t\t\tpriceOptionClick(e) {\r\n\t\t\t\tthis.selectPriceOptionValue = e.value;\r\n\t\t\t},\r\n\t\t\tgetStationData(e) { \r\n\t\t\t\tif (e.type = 'qrCode') { \r\n\t\t\t\t\tstation[e.pointTo?e.pointTo:'scanCode'](Object.assign(e,{\r\n\t\t\t\t\t\tqrCode:decodeURIComponent(e.qrCode)\r\n\t\t\t\t\t})).then(res => {\r\n\t\t\t\t\t\tif (res.code == 20000) {\r\n\t\t\t\t\t\t\tthis.pageData = new this.tool.Anticorrosive(res.data, indexPage);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\tcontent: res.msg,\r\n\t\t\t\t\t\t\t\tshowCancel:false,\r\n\t\t\t\t\t\t\t\tsuccess: function (res) { \r\n\t\t\t\t\t\t\t\t\tuni.navigateBack()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}); \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgoPlay() {\r\n\t\t\t\tlet data = JSON.parse(JSON.stringify(this.pageData));\r\n\t\t\t\tdelete data.stationPrice;\r\n\t\t\t\tdata = Object.assign(data, {\r\n\t\t\t\t\tpayMoneyPreAvailable: this.payMoneyPreAvailable,\r\n\t\t\t\t\tlicensePlate: data.plateNumberList[this.pageIndex.plateNumberIndex]\r\n\t\t\t\t});\r\n\t\t\t\tlet check = this.tool.checkFn(data, [], this.checkPage);\r\n\t\t\t\tif (check.result) {\r\n\t\t\t\t\tlet {companyId,accountCardCode,payMoneyPreAvailable,payMoneyPreFreeze} = this.accountList[this.accountIndex]; \r\n\t\t\t\t\tplay.createOrder( Object.assign(data,{\r\n\t\t\t\t\t\tcompanyId,\r\n\t\t\t\t\t\taccountId:accountCardCode\r\n\t\t\t\t\t}) ).then(res=>{\r\n\t\t\t\t\t\tsetTimeout(()=>{ \r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:`/ChargingStation/pages/placeOrder/result/index?price=${this.tool.getnum(( Number(data.payMoneyPreAvailable) + Number(data.payMoneyPreFreeze) ),2)}&id=${res.data.id}`\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t})\r\n\t\t\t\t\t// uni.navigateTo({\r\n\t\t\t\t\t// \turl: `/ChargingStation/pages/placeOrder/play/index?data=${encodeURIComponent(JSON.stringify(data))}`\r\n\t\t\t\t\t// })\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: check.WrongText,\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t@import 'index.scss';\r\n</style>","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=6bb7e2ef&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=6bb7e2ef&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1702257189344\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/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":""} |