webpackJsonp([57],{"5I2p":function(n,e,t){var i=t("XyPL");"string"==typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);t("rjj0")("62a35a6e",i,!0)},P95X:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=t("hky6"),a={data:function(){return{scanSource:"未知扫码来源",sn:"",price:"",payUrl:""}},methods:{goWx:function(){window.location.href=this.wxUrl},goPay:function(){var n=this;i.v({order_id:this.$route.query.id,pay_type:this.scanSource}).then(function(e){"wx"==n.scanSource?(alert(e),n.invokeWeChatPay(e)):window.open(e)})},invokeWeChatPay:function(n){var e=this;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",function(){return e.onBridgeReady(n)},!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",function(){return e.onBridgeReady(n)}),document.attachEvent("onWeixinJSBridgeReady",function(){return e.onBridgeReady(n)})):this.onBridgeReady(n)},onBridgeReady:function(n){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(n){"get_brand_wcpay_request:ok"==n.err_msg?alert("支付成功"):alert("支付失败")})},detectScanSource:function(){this.price=this.$route.query.price,this.sn=this.$route.query.sn;var n=window.navigator.userAgent.toLowerCase();"micromessenger"==n.match(/MicroMessenger/i)?this.scanSource="wx":"alipayclient"==n.match(/AlipayClient/i)?this.scanSource="ali":this.scanSource="unknown"}},mounted:function(){this.detectScanSource()}},r=t("XyMi");var o=function(n){t("5I2p")},c=Object(r.a)(a,function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"center"},[t("div",{staticClass:"header_info"},[t("p",[n._v("订单编号: "),t("span",[n._v(n._s(n.sn))])]),n._v(" "),t("p",[n._v("付款金额:"),t("span",[n._v(" ¥")]),t("span",[n._v(n._s(n.price))])])]),n._v(" "),t("div",{staticClass:"btn"},[t("el-button",{staticStyle:{width:"100%","font-size":"18px"},attrs:{type:"primary"},on:{click:n.goPay}},[n._v("\n            确认支付\n        ")])],1)])},[],!1,o,"data-v-29345c57",null);e.default=c.exports},XyPL:function(n,e,t){(n.exports=t("FZ+f")(!1)).push([n.i,"\n.center[data-v-29345c57] {\r\n    width: 100%;\r\n    padding: 15px;\n}\n.header_info[data-v-29345c57] {\r\n    border-radius: 10px;\r\n    padding: 10px;\r\n    width: 100%;\r\n    background-color: #fff;\n}\np[data-v-29345c57] {\r\n    padding-top: 5px;\r\n    padding-bottom: 5px;\n}\n.btn[data-v-29345c57] {\r\n    width: 100%;\r\n    margin-top: 80px;\n}\r\n",""])}});