(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/withdrawal/list"],{"0607":function(t,e,n){"use strict";var a=n("1921"),r=n.n(a);r.a},1921:function(t,e,n){},"23e2":function(t,e,n){"use strict";(function(t,a){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7ca3")),o=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={data:function(){return{list:[],type:1,withdrawal_no:""}},computed:u(u({},(0,o.mapGetters)(["base","fenxiao","globalPlatform"])),{},{contribute_vadded:function(){return this.fenxiao&&this.fenxiao.texts&&this.fenxiao.texts.contribute_vadded_score?this.fenxiao.texts&&this.fenxiao.texts.contribute_vadded_score:"贡献分"}}),watch:{},onLoad:function(t){t.type&&(this.type=t.type),this.init()},methods:{init:function(){var e=this;this.$util.get("user/withdrawal/list",{withdrawal_type:this.type}).then((function(n){e.list=n.data.list,n.data.title&&t.setNavigationBarTitle({title:n.data.title})}))},confirmWithdrawal:function(t){this.withdrawal_no=t.withdrawal_no,this.queryWaitInfo()},queryWaitInfo:function(){var t=this;this.$util.get("user/withdrawal/queryWaitInfo",{withdrawal_no:this.withdrawal_no}).then((function(e){1==e.code?a.canIUse("requestMerchantTransfer")?a.requestMerchantTransfer({mchId:e.data.mchId,appId:e.data.appId,package:e.data.package,success:function(e){t.$util.get("user/withdrawal/confirm",{withdrawal_no:t.withdrawal_no}).then((function(e){t.init()}))},fail:function(t){}}):a.showModal({content:"你的微信版本过低，请更新至最新版本。",showCancel:!1}):t.toast(e.message)})).catch((function(t){}))},getWithdrawalStatusText:function(t,e){var n={0:"申请中",1:"已提现",2:"已拒绝"};if(1==t){if(-1==e)return n[t]||"未知状态";if(0==e)return"待确认";if(1==e)return"已收款"}return n[t]||"未知状态"}}};e.default=s}).call(this,n("df3c")["default"],n("3223")["default"])},"51fc":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))}},r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.list,(function(e,n){var a=t.__get_orig(e),r=t.getWithdrawalStatusText(e.status,e.is_confirm);return{$orig:a,m0:r}}))),a=!t.list||0==t.list.length;t.$mp.data=Object.assign({},{$root:{l0:n,g0:a}})},i=[]},c3e5:function(t,e,n){"use strict";n.r(e);var a=n("23e2"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},c6f8:function(t,e,n){"use strict";n.r(e);var a=n("51fc"),r=n("c3e5");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("0607");var o=n("828b"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"359c024a",null,!1,a["a"],void 0);e["default"]=c.exports},e9d7:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("4c1a");a(n("3240"));var r=a(n("c6f8"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["e9d7","common/runtime","common/vendor"]]]);