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.
1 lines
8.3 KiB
1 lines
8.3 KiB
(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("distribution"==s?{apply_price:i,text:a}:{apply_price:i,text:a,type:"technician"==s?1:2});case 22:t.$util.hideAll(),t.$util.showToast({title:"提交成功"}),setTimeout((function(){t.$util.back(),t.$util.goUrl({url:1,openType:"navigateBack"})}),1e3),e.next=30;break;case 27:e.prev=27,e.t0=e["catch"](17),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 30:case"end":return e.stop()}}),e,null,[[17,27]])})))()}})};e.default=o},af6a:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isLoad?n("v-uni-view",{staticClass:"technician-income-cash-out"},[n("v-uni-view",{staticClass:"mt-md ml-lg mr-lg f-paragraph fill-base section",staticStyle:{overflow:"hidden"}},[n("v-uni-view",{staticClass:"fill-space b-1px-b",staticStyle:{padding:"40rpx 30rpx"}},[n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticStyle:{"font-size":"30rpx","font-family":"PingFang SC","font-weight":"500",color:"#333333"}},[t._v("备注")]),n("v-uni-input",{staticClass:"flex-1 f-paragraph ml-md",attrs:{type:"text",placeholder:"请输入到账信息"},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1)],1),n("v-uni-view",{staticClass:"pd-lg"},[n("v-uni-view",{staticStyle:{"font-size":"30rpx","font-weight":"500",color:"#999999"}},[t._v("提现金额")]),n("v-uni-view",{staticClass:"flex-y-center b-1px-b",staticStyle:{padding:"50rpx 0"}},[n("v-uni-view",{staticClass:"text-bold"},[t._v("¥")]),n("v-uni-input",{staticClass:"flex-1 f-paragraph ml-sm",attrs:{type:"digit",placeholder:"请输入提现金额"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.checkInput(e,"apply_price")}},model:{value:t.apply_price,callback:function(e){t.apply_price=e},expression:"apply_price"}})],1),n("v-uni-view",{staticClass:"f-caption c-caption pt-md",staticStyle:{display:"flex","justify-content":"space-between"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.withAll.apply(void 0,arguments)}}},[n("v-uni-view",{},[n("v-uni-text",[t._v("可提现余额")]),n("v-uni-text",{staticStyle:{"font-size":"30rpx",color:"#08BF77"}},[t._v("¥"+t._s(t.cash))])],1),n("v-uni-view",{staticStyle:{"font-size":"30rpx","font-weight":"500",color:"#08BF77"}},[t._v("全部提现")])],1),n("v-uni-view",{staticClass:"flex-y-center f-caption c-caption pt-sm"},[t._v("最低提现额度"),n("v-uni-view",{staticClass:"ml-md c-warning"},[n("v-uni-text",{staticStyle:{"font-size":"30rpx",color:"#08BF77"}},[t._v("¥"+t._s(t.configInfo.cash_mini||0))])],1)],1),n("v-uni-view",{staticClass:"space-lg"}),n("v-uni-view",{staticClass:"space-lg"})],1)],1),n("v-uni-view",{staticClass:"cash-out-btn flex-center f-title c-base radius-16",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("确认提现")])],1):t._e()},a=[]},ede3:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.technician-income-cash-out .cash-out-btn[data-v-4e03a271]{width:84%;text-align:center;padding:%?31?% 0;margin:0 auto;margin-top:%?60?%;background:#08bf77;border-radius:45px}.section[data-v-4e03a271]{border-radius:%?30?%}',""]),t.exports=e}}]); |