(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"2c02":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("2e0d"),i={data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"支付宝",loadingType:"more",orderList:{name:"",code:"",id:""}},{state:1,text:"银行卡",loadingType:"more",orderList:{name:"",code:"",bankName:"",id:""}}]}},onLoad:function(t){this.tabCurrentIndex=+t.state||0},methods:{loadAli:function(t){var a=this;(0,n.aliInfo)({}).then((function(t){var e=t.data,n=a.navList[0].orderList;a.$set(n,"name",e.fullname),a.$set(n,"code",e.alino),a.$set(n,"id",e.id)}))},loadBank:function(){var t=this;(0,n.bankInfo)({}).then((function(a){var e=a.data,n=t.navList[1].orderList;t.$set(n,"name",e.fullname),t.$set(n,"code",e.bankno),t.$set(n,"bankName",e.bank),t.$set(n,"id",e.id)}))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t},confirm:function(){var t=this,a=t.navList[t.tabCurrentIndex].orderList,e=getCurrentPages();console.log(e);e[e.length-1];var n=e[e.length-2];if(console.log(n),1==t.tabCurrentIndex){if(!a.name)return this.$api.msg("请输入提款人姓名");if(!a.bankName)return this.$api.msg("请输入所属银行");if(!a.code)return this.$api.msg("请输入银行卡号");var i={fullname:a.name,bank:a.bankName,bankno:a.code};n.$vm.bankData=i,uni.navigateBack({delta:1})}if(0==t.tabCurrentIndex){if(!a.name)return this.$api.msg("请输入提款人姓名");if(!a.code)return this.$api.msg("请输入支付宝账号");var o={fullname:a.name,alino:a.code};n.$vm.aliData=o,uni.navigateBack({delta:1})}},setBankInfo:function(t){var a=this;(0,n.setBankInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),a.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))},setAliInfo:function(t){var a=this;(0,n.setAliInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),a.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))}}};a.default=i},"2e0d":function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.spreadCommission=o,a.userBalance=r,a.extractCash=s,a.extractBank=c,a.rechargeWechat=u,a.aliInfo=d,a.bankInfo=l,a.setAliInfo=f,a.setBankInfo=p,a.balance=v,a.zhuanList=b;var i=n(e("776a"));function o(t,a){return(0,i.default)({url:"/api/spread/commission/"+a,method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function p(t){return(0,i.default)({url:"/api/bank/edit",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function b(t){return(0,i.default)({url:"/api/transfer_list",method:"post",data:t})}},"3c68":function(t,a,e){var n=e("d571");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("546dc376",n,!0,{sourceMap:!1,shadowMode:!1})},"5bde":function(t,a,e){"use strict";var n=e("3c68"),i=e.n(n);i.a},"7a94":function(t,a,e){"use strict";e.r(a);var n=e("b858"),i=e("e36c");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("5bde");var r,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"66a6c3ae",null,!1,n["a"],r);a["default"]=c.exports},b858:function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"nav-item",class:{current:t.tabCurrentIndex===n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tabClick(n)}}},[t._v(t._s(a.text))])})),1),e("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(a,n){return e("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("姓名")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"提款人姓名","placeholder-class":"placeholder"},model:{value:a.orderList.name,callback:function(e){t.$set(a.orderList,"name",e)},expression:"tabItem.orderList.name"}})],1),e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v(t._s(0==n?"账号":"银行卡号"))]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:a.orderList.code,callback:function(e){t.$set(a.orderList,"code",e)},expression:"tabItem.orderList.code"}})],1),1==n?e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("所属银行")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入开户银行","placeholder-class":"placeholder"},model:{value:a.orderList.bankName,callback:function(e){t.$set(a.orderList,"bankName",e)},expression:"tabItem.orderList.bankName"}})],1):t._e()],1)})),1),e("v-uni-button",{staticClass:"add-btn up",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.confirm.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},o=[]},d571:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.row[data-v-66a6c3ae]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-66a6c3ae]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-66a6c3ae]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-66a6c3ae]{font-size:%?36?%;color:#909399}uni-page-body[data-v-66a6c3ae],\n.content[data-v-66a6c3ae]{background:#f8f8f8;height:100%}.swiper-box[data-v-66a6c3ae]{height:%?750?%}.navbar[data-v-66a6c3ae]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-66a6c3ae]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-66a6c3ae]{color:#d8a567}.navbar .nav-item.current[data-v-66a6c3ae]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #d8a567}.add-btn[data-v-66a6c3ae]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:0 auto;margin-top:%?30?%;font-size:%?32?%;border-radius:%?10?%}.add-btn.up[data-v-66a6c3ae]{background-color:#d8a567;color:#fff}body.?%PAGE?%[data-v-66a6c3ae]{background:#f8f8f8}',""]),t.exports=a},e36c:function(t,a,e){"use strict";e.r(a);var n=e("2c02"),i=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a}}]);