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