{"size": 2541, "ext": "js", "max_stars_repo_path": "task/unpackage/dist/build/.tmp/app-plus/pages/guild/withdrawal.js", "max_stars_repo_name": "lf0205/video-APP", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "task/unpackage/dist/build/.tmp/app-plus/pages/guild/withdrawal.js", "max_issues_repo_name": "lf0205/video-APP", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "task/unpackage/dist/build/.tmp/app-plus/pages/guild/withdrawal.js", "max_forks_repo_name": "lf0205/video-APP", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 2541.0, "max_line_length": 2541, "alphanum_fraction": 0.702085793}
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/guild/withdrawal"],{"5aea":function(t,a,i){"use strict";i.r(a);var n=i("6b65"),e=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(a,t,function(){return n[t]})}(o);a["default"]=e.a},6172:function(t,a,i){"use strict";(function(t){i("ae7a"),i("921b");n(i("66fd"));var a=n(i("6280"));function n(t){return t&&t.__esModule?t:{default:t}}t(a.default)}).call(this,i("6e42")["createPage"])},6280:function(t,a,i){"use strict";i.r(a);var n=i("ff04"),e=i("5aea");for(var o in e)"default"!==o&&function(t){i.d(a,t,function(){return e[t]})}(o);i("cf7c");var u=i("2877"),s=Object(u["a"])(e["default"],n["a"],n["b"],!1,null,"02ba4204",null);a["default"]=s.exports},"6b65":function(t,a,i){"use strict";(function(t){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={data:function(){return{amount:"",balance:0,withdrawal_fee:0,minWithdrawalAmount:0,withdrawalAmountTimes:0,account:{name:"",account:""}}},onLoad:function(t){this.balance=t.balance||0},created:function(){if(this.role=this.$api.getConfig("guild_user_role"),9==this.role){this.withdrawal_fee=this.$api.getConfig("withdrawal_fee",this.$api.SYSTEM_CONFIG)||0;var a=this.$api.getConfig("",this.$api.SYSTEM_CONFIG);this.minWithdrawalAmount=a.min_withdrawal_amount||0,this.withdrawalAmountTimes=a.withdrawal_amount_times||0}else this.$api.modal("您没有操作权限","",function(){t.navigateBack()})},onShow:function(){this.account=this.$api.getConfig("account")},methods:{selAll:function(){this.amount=this.balance},editAccess:function(){t.navigateTo({url:"/pages/user/edit_account"})},withdraw:function(){var a=this;0!=this.amount?this.amount<this.minWithdrawalAmount?this.$api.msg("每笔提现金额不得少于"+this.minWithdrawalAmount+"元"):0===this.withdrawalAmountTimes||1e4*this.amount%(1e4*this.withdrawalAmountTimes)===0?parseFloat(this.balance)<parseFloat(this.amount)?this.$api.msg("余额不足"):this.$api.modal("确认提现"+this.amount+"元？","",function(i){i.confirm&&a.$api.post("guild/withdraw",{amount:a.amount},function(i){0==i.code&&a.$api.modal("提现申请提交成功","",function(){t.navigateBack({delta:1})})})}):this.$api.msg("提现金额只能为"+this.withdrawalAmountTimes+"的整数倍"):this.$api.msg("提现金额不能为0")}}};a.default=i}).call(this,i("6e42")["default"])},8231:function(t,a,i){},cf7c:function(t,a,i){"use strict";var n=i("8231"),e=i.n(n);e.a},ff04:function(t,a,i){"use strict";var n=function(){var t=this,a=t.$createElement;t._self._c},e=[];i.d(a,"a",function(){return n}),i.d(a,"b",function(){return e})}},[["6172","common/runtime","common/vendor"]]]);