王总上门按摩后台代码
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.
 
 
 
 
 
shangmenanmo/public/h6/static/js/user-pages-cash-out.e32e98f...

1 lines
9.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-cash-out"],{1148:function(t,e,n){"use strict";n.r(e);var a=n("b646"),i=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=i.a},1424:function(t,e,n){var a=n("c00b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("75a86967",a,!0,{sourceMap:!1,shadowMode:!1})},"4f5c":function(t,e,n){"use strict";var a=n("1424"),i=n.n(a);i.a},ae35:function(t,e,n){"use strict";n.r(e);var a=n("bd7f"),i=n("1148");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("4f5c");var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"0bbcc036",null,!1,a["a"],void 0);e["default"]=r.exports},b646:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("18f7"),n("de6c"),n("aa9c"),n("5c47"),n("a1c1"),n("e838");var i=a(n("9b1b")),c=a(n("2634")),s=a(n("2fdc")),r=n("8f59"),o={components:{},data:function(){return{options:{},isLoad:!1,payList:[],payInd:0,detail:{},balance:"",cash:"",apply_price:"",text:"",type:1,lockTap:!1}},computed:(0,r.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},coachInfo:function(t){return t.user.coachInfo}}),onLoad:function(t){var e=this;return(0,s.default)((0,c.default)().mark((function n(){return(0,c.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,i.default)((0,i.default)({},(0,r.mapActions)(["getConfigInfo","getUserInfo","getCoachInfo"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,c.default)().mark((function n(){var a,i,s,r,o,l,u,p,f,d,v,h,b,g,m,x,w,y,_,C,k;return(0,c.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!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:return n.next=7,Promise.all([e.getConfigInfo(),e.getUserInfo()]);case 7:i=e.configInfo,s=i.wechat_transfer,r=i.alipay_transfer,o=i.under_transfer,l=[],1==s&&l.push({id:1,title:"微信零钱包"}),1==r&&l.push({id:2,title:"支付宝账户"}),1==o&&l.push({id:0,title:"线下转账"}),e.payList=l,u=e.options.type,n.t0=u,n.next="technician"===n.t0?17:"carfee"===n.t0?26:"distribution"===n.t0?32:"channel"===n.t0||"agent"===n.t0||"salesman"===n.t0?39:46;break;case 17:return n.next=19,e.$util.getPage(-1);case 19:return p=n.sent,f=p.detail,d=f.cap_cash,v=void 0===d?0:d,h=f.coach_level.balance,b=void 0===h?0:h,e.balance=100-b,e.cash=v,n.abrupt("break",46);case 26:if(g=e.coachInfo.id,m=void 0===g?0:g,m){n.next=30;break}return n.next=30,e.getCoachInfo();case 30:return e.cash=e.coachInfo.car_price,n.abrupt("break",46);case 32:return n.next=34,e.$util.getPage(-1).detail;case 34:return x=n.sent,w=x.new_cash,y=void 0===w?0:w,e.cash=y,n.abrupt("break",46);case 39:return n.next=41,e.$util.getPage(-1).detail;case 41:return _=n.sent,C=_.cash,k=void 0===C?0:C,e.cash=k,n.abrupt("break",46);case 46:e.$util.setNavigationBarColor({bg:e.primaryColor}),e.$util.hideAll(),e.isLoad=!0;case 49:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},toChangeItem:function(t){this.payInd=t,this.lockTap=!1},withAll:function(){this.apply_price=this.cash},checkInput:function(t,e){var n=this,a=this.$util.formatMoney(t.detail.value);this.$nextTick((function(){n[e]=a}))},submit:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){var n,a,i,s,r,o,l,u,p,f,d,v,h,b,g,m;return(0,c.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,a=t.apply_price,i=t.text,s=t.payList,r=t.payInd,o=t.userInfo,l=o.alipay_number,u=void 0===l?"":l,p=o.alipay_name,f=void 0===p?"":p,d=s[r].id,2!=d||u&&f){e.next=7;break}return t.$util.showToast({title:u?"请先绑定支付宝账户姓名":"请先绑定支付宝账户"}),e.abrupt("return");case 7:if(v=t.configInfo.cash_mini,i=i?i.replace(/(^\s*)|(\s*$)/g,""):"",(0!=d||i)&&a){e.next=12;break}return t.$util.showToast({title:0!=d||i?"请输入提现金额":"请输入到账信息"}),e.abrupt("return");case 12:if(!(parseFloat(a)<parseFloat(v))){e.next=15;break}return t.$util.showToast({title:"提现金额不能低于最低提现金额".concat(v)}),e.abrupt("return");case 15:if(!(parseFloat(a)>parseFloat(n))){e.next=18;break}return t.$util.showToast({title:"提现金额不能大于可提现金额".concat(n)}),e.abrupt("return");case 18:if(!t.lockTap){e.next=20;break}return e.abrupt("return");case 20:return t.lockTap=!0,t.$util.showLoading(),e.prev=22,h=t.options.type,b={technician:"technician",carfee:"technician",distribution:"mine",channel:"channel",agent:"agent",salesman:"salesman"},g=b[h],m={apply_price:a,text:i,apply_transfer:d},"technician"!=h&&"carfee"!==h||(m.type="technician"==h?1:2),e.next=30,t.$api[g].applyWallet(m);case 30:t.$util.hideAll(),t.$util.showToast({title:"提交成功"}),setTimeout((function(){t.$util.back(),t.$util.goUrl({url:1,openType:"navigateBack"})}),1e3),e.next=38;break;case 35:e.prev=35,e.t0=e["catch"](22),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 38:case"end":return e.stop()}}),e,null,[[22,35]])})))()}})};e.default=o},bd7f:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=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 pd-lg f-paragraph fill-base radius-16"},[n("v-uni-view",{staticClass:"f-title c-title text-bold"},[t._v("提现账户")]),t._l(t.payList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"flex-center mt-lg",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem(a)}}},[n("i",{staticClass:"pay-icon iconfont c-caption",class:[{"icon-xuanze":t.payInd!=a},{"icon-radio-fill":t.payInd==a}],style:{color:t.payInd==a?t.primaryColor:"#BEC3CE"}}),n("v-uni-view",{staticClass:"flex-1 ml-lg f-mini-title c-title"},[n("v-uni-view",{staticClass:"flex-y-center"},[n("v-uni-view",[t._v(t._s(e.title))]),2==e.id?n("v-uni-view",{staticClass:"flex-1 flex-between ml-md"},[n("v-uni-view",{staticClass:"f-desc c-paragraph"},[t._v(t._s(t.userInfo.alipay_number?t.userInfo.split_alipay_number:"暂无"))]),n("v-uni-view",{style:{color:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/alipay-account"})}}},[t._v(t._s(t.userInfo.alipay_number?"修改":"去设置"))])],1):t._e()],1)],1)],1)}))],2),n("v-uni-view",{staticClass:"mt-md ml-lg mr-lg f-paragraph fill-base radius-16",staticStyle:{overflow:"hidden"}},[n("v-uni-view",{staticClass:"fill-space pd-lg b-1px-b"},[n("v-uni-view",{staticClass:"flex-between pt-md pb-md"},[n("v-uni-view",{staticClass:"f-title c-title text-bold"},[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",{staticClass:"f-title c-title text-bold"},[t._v("提现金额")]),n("v-uni-view",{staticClass:"flex-y-center pt-lg pb-md b-1px-b"},[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:"flex-y-center f-caption c-caption pt-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.withAll.apply(void 0,arguments)}}},[t._v("可提现余额¥"+t._s(t.cash)),n("v-uni-view",{staticClass:"ml-md c-warning"},[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"},[t._v("¥"+t._s(t.configInfo.cash_mini||0))])],1),n("v-uni-view",{staticClass:"space-lg"}),n("v-uni-view",{staticClass:"space-lg"}),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)],1)],1):t._e()},i=[]},c00b:function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.technician-income-cash-out .cash-out-btn[data-v-0bbcc036]{width:%?622?%;height:%?88?%;margin:0 auto}',""]),t.exports=e}}]);