(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,r){"use strict";(function(e){r("6909"),r("921b");n(r("66fd"));var t=n(r("8611"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,r("543d")["createPage"])},"223d":function(e,t,r){"use strict";r.r(t);var n=r("4917"),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"27f6":function(e,t,r){"use strict";var n=r("74b1"),a=r.n(n);a.a},4917:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:"",background:"",orderId:""}},onLoad:function(t){var r=this;this.orderId=t.orderId;var n={orderId:this.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",n).then((function(t){"00"==t.code?(r.bodyShow=!0,r.timeStamp=t.data.timestamp,r.nonceStr=t.data.noncestr,r.package=t.data.package,r.signType=t.data.signType,r.paySign=t.data.sign,r.pdOrderMoney=t.data.pdOrderMoney,0==r.pdOrderMoney&&-1==t.data.subOrderType&&e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId}),r.errorMessage=t.data.errorMessage,r.totalMoney=t.data.totalMoney,r.orderList=t.data.orderList,"undefined"==typeof r.orderList&&(r.orderList="",r.merchantName=t.data.merchantName,r.productName=t.data.productName,r.unitPrice=t.data.unitPrice,r.orderNum=t.data.orderNum,r.depositReceived=t.data.depositReceived,r.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){var t=this,r=this;this.errorMessage?e.showToast({title:this.errorMessage,icon:"none"}):(this.background="#E6E6E6",setTimeout((function(){t.background="f9690e"}),1e3),e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId})},fail:function(t){e.showToast({title:t.errMsg,icon:"none"})}}))}}};t.default=r}).call(this,r("543d")["default"])},"51c3":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"74b1":function(e,t,r){},8611:function(e,t,r){"use strict";r.r(t);var n=r("51c3"),a=r("223d");for(var o in a)"default"!==o&&function(e){r.d(t,e,(function(){return a[e]}))}(o);r("27f6");var d,i=r("f0c5"),c=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],d);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);