require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/dougong/index"],{"3dbe":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uSafeBottom:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(e.bind(null,"f585"))},loginModal:function(){return Promise.all([e.e("common/vendor"),e.e("components/login-modal/login-modal")]).then(e.bind(null,"e34a"))}},o=function(){var t=this.$createElement;this._self._c},u=[]},"75f5":function(t,n,e){},a973:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("7ca3")),u=e("8f59");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function s(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,o.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var r={data:function(){return{money:"",type:"",is_submit:!1,balance:"0.00",dougonData:{kh_status:0,qx_status:0,rz_status:0}}},computed:s(s({},(0,u.mapGetters)(["base","fenxiao","user","is_login"])),{},{needInfo:function(){return 1!=this.dougonData.kh_status||1!=this.dougonData.rz_status||1!=this.dougonData.qx_status}}),onLoad:function(){},onShow:function(){if(!this.is_login)return this.$util.authLogin();this.init()},methods:s(s({},(0,u.mapActions)(["getUser"])),{},{onCancel:function(){},toList:function(){if(!this.is_login)return this.$util.authLogin();this.jump("./list")},submit:function(t){var n=this;if(!this.is_login)return this.$util.authLogin();var e={};return 1!=this.base.dg_status?this.$util.toast("未开启汇付提现功能，请等待管理员开启后重试"):1!=this.dougonData.kh_status||1!=this.dougonData.rz_status?this.$util.toast("请先完善账户信息",1e3,(function(){n.toPersonInfo()})):1!=this.dougonData.qx_status?this.$util.toast("提现权限未开启，请再次提交信息。",1e3,(function(){n.toPersonInfo()})):(e.money=this.money,this.is_submit&&this.$util.toast("操作频繁！"),this.is_submit=!0,void this.$util.post("user/txaccount/tixian",e).then((function(t){n.is_submit=!1,1==t.code?n.$util.toast(t.message,1500,(function(){n.$util.backPage()})):n.$util.toast(t.message)})).catch((function(t){n.is_submit=!1})))},init:function(){var n=this;if(1==this.base.is_pian)return this.$util.toast("暂未开启提现，请稍后重试",3e3,(function(){t.navigateBack({delta:1})}));this.$util.get("user/txaccount/account",{},!1).then((function(t){1==t.code&&(n.balance=t.data.money,n.dougonData=t.data)}))},toPersonInfo:function(){this.jump("/plugin/person_info/index")}})};n.default=r}).call(this,e("df3c")["default"])},c1a9:function(t,n,e){"use strict";e.r(n);var i=e("3dbe"),o=e("c2e4");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("ec316");var a=e("828b"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},c2e4:function(t,n,e){"use strict";e.r(n);var i=e("a973"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},dc93:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("4c1a");i(e("3240"));var o=i(e("c1a9"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},ec316:function(t,n,e){"use strict";var i=e("75f5"),o=e.n(i);o.a}},[["dc93","common/runtime","common/vendor"]]]);