webpackJsonp([49],{BeKk:function(e,n,t){var i=t("V8Te");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);t("rjj0")("be9aed60",i,!1)},P95X:function(e,n,t){"use strict";Object.defineProperty(n,"__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 e=this;i.w({order_id:this.$route.query.id,pay_type:this.scanSource}).then(function(n){"wx"==e.scanSource?(alert(n.appId),e.invokeWeChatPay(n)):window.open(n)})},invokeWeChatPay:function(e){var n=this;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",function(){return n.onBridgeReady(e)},!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",function(){return n.onBridgeReady(e)}),document.attachEvent("onWeixinJSBridgeReady",function(){return n.onBridgeReady(e)})):this.onBridgeReady(e)},onBridgeReady:function(e){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?alert("支付成功"):alert("支付失败")})},detectScanSource:function(){this.price=this.$route.query.price,this.sn=this.$route.query.sn;var e=window.navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)?(this.scanSource="wx",i.u(this.$route.query.id,{ip:this.$route.query.url}).then(function(e){})):"alipayclient"==e.match(/AlipayClient/i)?this.scanSource="ali":this.scanSource="unknown"}},mounted:function(){this.detectScanSource()}},r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"center"},[t("div",{staticClass:"header_info"},[t("p",[e._v("\n      订单编号: "),t("span",[e._v(e._s(e.sn))])]),e._v(" "),t("p",[e._v("\n      付款金额:"),t("span",[e._v(" ¥")]),t("span",[e._v(e._s(e.price))])])]),e._v(" "),t("div",{staticClass:"btn"},[t("el-button",{staticStyle:{width:"100%","font-size":"18px"},attrs:{type:"primary"},on:{click:e.goPay}},[e._v("\n      确认支付\n    ")])],1)])},o=[];r._withStripped=!0;var d=t("XyMi"),c=!1;var s=function(e){c||t("BeKk")},u=Object(d.a)(a,r,o,!1,s,"data-v-3b2adb42",null);u.options.__file="src\\components\\payType.vue";n.default=u.exports},V8Te:function(e,n,t){(e.exports=t("FZ+f")(!1)).push([e.i,"\n.center[data-v-3b2adb42] {\r\n  width: 100%;\r\n  padding: 15px;\n}\n.header_info[data-v-3b2adb42] {\r\n  border-radius: 10px;\r\n  padding: 10px;\r\n  width: 100%;\r\n  background-color: #fff;\n}\np[data-v-3b2adb42] {\r\n  padding-top: 5px;\r\n  padding-bottom: 5px;\n}\n.btn[data-v-3b2adb42] {\r\n  width: 100%;\r\n  margin-top: 80px;\n}\r\n",""])}});