You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xxdj1/unpackage/dist/build/h5/static/js/user-pages-cash-out.cbea402...

1 line
8.3 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-cash-out"],{"0595":function(t,e,n){"use strict";n.r(e);var i=n("af6a"),a=n("904a");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("83b4");var c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"4e03a271",null,!1,i["a"],void 0);e["default"]=s.exports},"5d1c":function(t,e,n){var i=n("ede3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("58f2d746",i,!0,{sourceMap:!1,shadowMode:!1})},"83b4":function(t,e,n){"use strict";var i=n("5d1c"),a=n.n(i);a.a},"904a":function(t,e,n){"use strict";n.r(e);var i=n("ad5f"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},ad5f:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("5319"),n("acd8");var a=i(n("5530")),r=i(n("c7eb")),c=i(n("1da1")),s=n("26cb"),o={components:{},data:function(){return{options:{},isLoad:!1,detail:{},balance:"",cash:"",apply_price:"",text:"",type:1,lockTap:!1}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,c.default)((0,r.default)().mark((function n(){return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.$util.showLoading(),e.options=t,n.next=4,e.initIndex();case 4:case"end":return n.stop()}}),n)})))()},methods:(0,a.default)((0,a.default)({},(0,s.mapActions)(["getConfigInfo"])),{},{initIndex:function(){var t=arguments,e=this;return(0,c.default)((0,r.default)().mark((function n(){var i,a,c,s,o,u,l,p,f;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id){n.next=8;break}return n.next=8,e.getConfigInfo();case 8:a=e.options.type,n.t0=a,n.next="technician"===n.t0?12:"carfee"===n.t0?21:"distribution"===n.t0?24:30;break;case 12:return n.next=14,e.$util.getPage(-1);case 14:return c=n.sent,s=c.detail,o=s.cap_cash,u=s.coach_level.balance,e.balance=100-u,e.cash=o,n.abrupt("break",30);case 21:return l=e.$util.getPage(-1).coach_info.car_price,e.cash=l,n.abrupt("break",30);case 24:return n.next=26,e.$util.getPage(-1).detail;case 26:return p=n.sent,f=p.new_cash,e.cash=f,n.abrupt("break",30);case 30:e.$util.setNavigationBarColor({bg:e.primaryColor}),e.$util.hideAll(),e.isLoad=!0;case 33:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},withAll:function(){this.apply_price=this.cash},checkInput:function(t,e){var n=this,i=this.$util.formatMoney(t.detail.value);this.$nextTick((function(){n[e]=i}))},submit:function(){var t=this;return(0,c.default)((0,r.default)().mark((function e(){var n,i,a,c,s,o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0.0"==t.apply_price&&t.$nextTick((function(){t.apply_price="0"})),n=t.cash,i=t.apply_price,a=t.text,c=t.configInfo.cash_mini,a=a?a.replace(/(^\s*)|(\s*$)/g,""):"",a&&i){e.next=7;break}return t.$util.showToast({title:a?"请输入提现金额":"请输入到账信息"}),e.abrupt("return");case 7:if(!(parseFloat(i)<parseFloat(c))){e.next=10;break}return t.$util.showToast({title:"提现金额不能低于最低提现金额".concat(c)}),e.abrupt("return");case 10:if(!(parseFloat(i)>parseFloat(n))){e.next=13;break}return t.$util.showToast({title:"提现金额不能大于可提现金额".concat(n)}),e.abrupt("return");case 13:if(!t.lockTap){e.next=15;break}return e.abrupt("return");case 15:return t.lockTap=!0,t.$util.showLoading(),e.prev=17,s=t.options.type,o="distribution"==s?"mine":"technician",e.next=22,t.$api[o].applyWallet("dist