(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/withdrawalConfirm"],{"05bd":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("7ca3")),i=n("8f59");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{withdrawal_no:"",type:""}},onLoad:function(t){var e=this;t.withdrawal_no?(this.withdrawal_no=t.withdrawal_no,t.type&&(this.type=t.type),this.queryWaitInfo()):this.$util.toast("参数错误",1500,(function(){e.$util.backPage()}))},computed:c(c({},(0,i.mapGetters)(["globalPlatform"])),{},{apiUrl:function(){return 1==this.type?"user/withdrawal/queryWaitInfo":2==this.type||3==this.type?"fenxiao/withdrawal/queryWaitInfo":4==this.type?"yajin/yajin/queryWaitInfo":"user/withdrawal/queryWaitInfo"},comfrimApiUrl:function(){return 1==this.type?"user/withdrawal/confirm":2==this.type?"fenxiao/withdrawal/confirm":3==this.type?"merchant_admin/withdrawal/confirm":3==this.type?"yajin/yajin/comfirm":"user/withdrawal/confirm"}}),methods:{confirm:function(){this.queryWaitInfo()},queryWaitInfo:function(){var e=this;this.$util.get(this.apiUrl,{withdrawal_no:this.withdrawal_no}).then((function(n){1==n.code?t.canIUse("requestMerchantTransfer")?t.requestMerchantTransfer({mchId:n.data.mchId,appId:n.data.appId,package:n.data.package,success:function(t){e.$util.get(e.comfrimApiUrl,{withdrawal_no:e.withdrawal_no}).then((function(t){e.init()}))},fail:function(t){}}):t.showModal({content:"你的微信版本过低，请更新至最新版本。",showCancel:!1}):e.toast(n.message)})).catch((function(t){}))}}};e.default=u}).call(this,n("3223")["default"])},1323:function(t,e,n){"use strict";n.r(e);var r=n("05bd"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},"457c":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var r={loginModal:function(){return Promise.all([n.e("common/vendor"),n.e("components/login-modal/login-modal")]).then(n.bind(null,"e34a"))}},a=function(){var t=this.$createElement;this._self._c},i=[]},"72fc":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("4c1a");r(n("3240"));var a=r(n("e83f"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e83f:function(t,e,n){"use strict";n.r(e);var r=n("457c"),a=n("1323");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var o=n("828b"),c=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"5d94f685",null,!1,r["a"],void 0);e["default"]=c.exports}},[["72fc","common/runtime","common/vendor"]]]);