(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,n){"use strict";(function(e){n("6909"),n("921b");a(n("66fd"));var t=a(n("8611"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"223d":function(e,t,n){"use strict";n.r(t);var a=n("4917"),r=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"27f6":function(e,t,n){"use strict";var a=n("74b1"),r=n.n(a);r.a},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:""}},onLoad:function(t){var n=this,a={orderId:t.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",a).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;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.redirectTo({url:"../paySuccess/paySuccess"})},fail:function(t){e.showToast({title:t.errMsg,icon:"none"})}}))}}};t.default=n}).call(this,n("543d")["default"])},"74b1":function(e,t,n){},7530:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},o=[]},8611:function(e,t,n){"use strict";n.r(t);var a=n("7530"),r=n("223d");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("27f6");var i,d=n("f0c5"),c=Object(d["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);