(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f980e9d"],{"0720":function(a,t,e){a.exports=e.p+"img/zfb.f9f04ed3.jpeg"},"2ee4":function(a,t,e){},3958:function(a,t,e){a.exports=e.p+"img/S.1db749bc.svg"},"3fc5":function(a,t,e){"use strict";e("2ee4")},d5eb:function(a,t,e){"use strict";e.r(t);var r=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",[e("header",{staticClass:"header"},[e("div",{staticClass:"header-text"},[a._v("付款给 "+a._s(a.payOrderInfo.mchName))]),e("div",{staticClass:"header-img"},[e("img",{attrs:{src:a.avatar?a.avatar:a.icon_member_default,alt:""}})])]),e("div",{staticClass:"plus-input"},[a._m(0),e("div",{staticClass:"input-c"},[e("div",{staticClass:"input-c-div-1"},[a._v(a._s(a.payOrderInfo.amount/100))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!a.amount,expression:"!amount"}],staticClass:"placeholder"},[a._v("请输入金额")])]),e("ul",{staticClass:"plus-ul"},[e("li",{staticStyle:{"border-radius":"10px"}},[e("div",{staticClass:"img-div"},[e("img",{attrs:{src:a.wxImg,alt:""}}),e("div",{staticClass:"div-text"},[a._v(" 支付宝支付 ")])])])]),e("div",{staticClass:"bnt-pay"},[e("div",{staticClass:"bnt-pay-text",staticStyle:{"background-color":"#1678ff"},on:{click:a.pay}},[a._v(" 付款 ")])])])},i=[function(){var a=this,t=a.$createElement,r=a._self._c||t;return r("div",{staticClass:"S"},[r("img",{attrs:{src:e("3958"),alt:""}})])}],s=e("4ec3"),n=e("f121"),c={data:function(){return{merchantName:"jeepay",avatar:e("0720"),amount:1,resData:{},wxImg:e("0720"),payOrderInfo:{}}},mounted:function(){this.setPayOrderInfo(!0)},methods:{setPayOrderInfo:function(a){var t=this;Object(s["b"])().then((function(e){t.payOrderInfo=e,a&&t.pay()})).catch((function(a){t.$router.push({name:n["a"].errorPageRouteName,params:{errInfo:a.msg}})}))},pay:function(){var a=this;Object(s["c"])(this.amount).then((function(t){return"0"!=t.code?alert(t.msg):1!=t.data.orderState?alert(t.data.errMsg):void(window.AlipayJSBridge?a.doAlipay(t.data.alipayTradeNo):document.addEventListener("AlipayJSBridgeReady",(function(){a.doAlipay(t.data.alipayTradeNo)}),!1))})).catch((function(t){a.$router.push({name:n["a"].errorPageRouteName,params:{errInfo:t.msg}})}))},doAlipay:function(a){var t=this;AlipayJSBridge.call("tradePay",{tradeNO:a},(function(a){"9000"==a.resultCode?t.payOrderInfo.returnUrl?location.href=t.payOrderInfo.returnUrl:(alert("支付成功！"),window.AlipayJSBridge.call("closeWebview")):"8000"==a.resultCode||"6004"==a.resultCode?(alert(JSON.stringify(a)),window.AlipayJSBridge.call("closeWebview")):(alert("用户已取消！"),window.AlipayJSBridge.call("closeWebview"))}))}}},o=c,d=(e("3fc5"),e("2877")),l=Object(d["a"])(o,r,i,!1,null,"3ccd70ed",null);t["default"]=l.exports}}]);
//# sourceMappingURL=chunk-1f980e9d.f4df51aa.js.map