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
2.9 KiB
1 lines
2.9 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/pages/placeOrder/play/index"],{"0c23":function(t,a,e){"use strict";e.r(a);var n=e("d5e5"),o=e.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(c);a["default"]=o.a},"789f":function(t,a,e){},"85d2":function(t,a,e){"use strict";(function(t,a){var n=e("4ea4");e("9773");n(e("66fd"));var o=n(e("9479"));t.__webpack_require_UNI_MP_PLUGIN__=e,a(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},9479:function(t,a,e){"use strict";e.r(a);var n=e("9dd0"),o=e("0c23");for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(a,t,(function(){return o[t]}))}(c);e("ddde");var i=e("f0c5"),l=Object(i["a"])(o["default"],n["b"],n["c"],!1,null,"3231af00",null,!1,n["a"],void 0);a["default"]=l.exports},"9dd0":function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=(t._self._c,t.playData?t.tool.getnum(Number(t.playData.payMoneyPreAvailable)+Number(t.playData.payMoneyPreFreeze),2):null),n=t.playData?t.__map(t.pageData,(function(a,e){var n=t.__get_orig(a),o=t.tool.getnum(a.balance,2),c=t.selectCompanyIds.includes(a.companyId+"&"+a.accountCardCode);return{$orig:n,g1:o,g2:c}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:n}})},o=[]},d5e5:function(t,a,e){"use strict";(function(t){var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(e("2303")),c=n(e("c781")),i={data:function(){return{checkPage:{companyId:{tacitly:"",WrongText:"请选择电卡"},accountId:{tacitly:"",WrongText:"请选择电卡"}},selectCompanyIds:[],pageData:[],playData:null}},onLoad:function(t){t.data&&(this.playData=JSON.parse(decodeURIComponent(t.data)),console.log(this.playData),this.checkChange({detail:{value:[]}})),this.getAccountList()},methods:{checkChange:function(t){if(this.selectCompanyIds=t.detail.value,this.selectCompanyIds.length){var a=this.selectCompanyIds.join("");this.playData["companyId"]=a.split("&")[0],this.playData["accountId"]=a.split("&")[1]}else this.playData["companyId"]="",this.playData["accountId"]=""},timeup:function(){t.showToast({title:"支付已失效",icon:"none"})},getAccountList:function(){var t=this;o.default.getAccountList().then((function(a){t.pageData=a.data}))},goResult:function(){var a=this,e=this.tool.checkFn(this.playData,[],this.checkPage);e.result?c.default.createOrder(this.playData).then((function(e){2e4==e.code&&e.data.id&&t.navigateTo({url:"/ChargingStation/pages/placeOrder/result/index?price=".concat(a.tool.getnum(Number(a.playData.payMoneyPreAvailable)+Number(a.playData.payMoneyPreFreeze),2),"&id=").concat(e.data.id)})})):t.showToast({title:e.WrongText,icon:"none"})}}};a.default=i}).call(this,e("543d")["default"])},ddde:function(t,a,e){"use strict";var n=e("789f"),o=e.n(n);o.a}},[["85d2","common/runtime","common/vendor"]]]); |