(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/pay/index/index"],{3998:function(n,e,o){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(o("4c22"));function i(n){return n&&n.__esModule?n:{default:n}}var a=function(){Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(o("f505"))}.bind(null,o)).catch(o.oe)},c=function(){o.e("components/loading-cover/loading-cover").then(function(){return resolve(o("cd2f"))}.bind(null,o)).catch(o.oe)},u=function(){o.e("components/payment-mp-wx/payment-mp-wx").then(function(){return resolve(o("b83d"))}.bind(null,o)).catch(o.oe)},r={components:{loadingCover:c,payment:u,nsShowToast:a},data:function(){return{isIphoneX:!1,payInfo:{},outTradeNo:"",balance:0,payTypeList:[{name:"支付宝支付",provider:"NsAlipay",icon:"iconzhifubaozhifu-"},{name:"微信支付",provider:"NsWeixinpay",icon:"iconweixinzhifu"}]}},mixins:[t.default],onLoad:function(n){n.code&&(this.outTradeNo=n.code),this.isIphoneX=this.$util.uniappIsIPhoneX()},onShow:function(){this.$langConfig.refresh(),n.getStorageSync("token")?this.getPayInfo():this.$util.redirectTo("/pages/login/login/login")},methods:{getPayInfo:function(){var n=this;this.$api.sendRequest({url:"/api/pay/info",data:{out_trade_no:this.outTradeNo},success:function(e){e.code>=0&&e.data?(n.payInfo=e.data,n.$refs.loadingCover&&n.$refs.loadingCover.hide()):n.$util.showToast({title:"未获取到支付信息!！",success:function(){setTimeout((function(){n.$util.redirectTo("/pages/index/index/index",{},"reLaunch")}),1500)}})},fail:function(e){n.$refs.loadingCover&&n.$refs.loadingCover.hide()}})}}};e.default=r}).call(this,o("543d")["default"])},"65bf":function(n,e,o){"use strict";o.r(e);var t=o("3998"),i=o.n(t);for(var a in t)"default"!==a&&function(n){o.d(e,n,(function(){return t[n]}))}(a);e["default"]=i.a},6717:function(n,e,o){"use strict";var t=o("c1ec"),i=o.n(t);i.a},8728:function(n,e,o){"use strict";(function(n){o("6b76");t(o("66fd"));var e=t(o("e78f"));function t(n){return n&&n.__esModule?n:{default:n}}n(e.default)}).call(this,o("543d")["createPage"])},add9:function(n,e,o){"use strict";var t={loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"cd2f"))},nsShowToast:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(o.bind(null,"f505"))}},i=function(){var n=this,e=n.$createElement,o=(n._self._c,n.$lang("paymentAmount")),t=n.$lang("common.currencySymbol");n.$mp.data=Object.assign({},{$root:{m0:o,m1:t}})},a=[];o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return t}))},c1ec:function(n,e,o){},e78f:function(n,e,o){"use strict";o.r(e);var t=o("add9"),i=o("65bf");for(var a in i)"default"!==a&&function(n){o.d(e,n,(function(){return i[n]}))}(a);o("6717");var c,u=o("f0c5"),r=Object(u["a"])(i["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],c);e["default"]=r.exports}},[["8728","common/runtime","common/vendor"]]]);