(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e90ac"],{"8c9d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"rpay"}})},i=[],a=n("27ae").Base64,d={name:"rpay",data:function(){return{jsApiParameters:"",return_url:""}},methods:{onBridgeReady:function(){var e=this,t=e.jsApiParameters;WeixinJSBridge.invoke("getBrandWCPayRequest",t,function(t){"get_brand_wcpay_request:ok"==t.err_msg?(e.$tool.hiddenLoading(),setTimeout(function(){e.$tool.tip("支付成功"),setTimeout(function(){window.location.href=e.return_url},1e3)},1e3)):"get_brand_wcpay_request:fail"==t.err_msg?alert("支付失败！"):"get_brand_wcpay_request:cancel"==t.err_msg&&(window.location.href=e.return_url)})},pdWeixinJSBridge:function(){var e=this;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",e.onBridgeReady,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",e.onBridgeReady),document.attachEvent("onWeixinJSBridgeReady",e.onBridgeReady)):e.onBridgeReady()},get_pay_data:function(){if(this.$tool.isStr(this.$route.query.data)){this.$tool.showLoading();var e=a.decode(this.$route.query.data),t=decodeURI(this.$route.query.returnurl);this.jsApiParameters=JSON.parse(e),this.return_url=t,this.pdWeixinJSBridge()}else alert("页面错误")}},mounted:function(){this.get_pay_data()}},o=d,u=n("2877"),s=Object(u["a"])(o,r,i,!1,null,"429b5185",null);t["default"]=s.exports}}]);
//# sourceMappingURL=chunk-2d0e90ac.48c08e2b.js.map