(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_cash-index"],{1634:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d81d"),a("14d9"),a("a434"),a("a9e3");var i=n(a("5530")),r=a("6859"),o=a("26cb"),c=n(a("9c08")),s=a("3255"),u=a("ddb3"),l={components:{cash:c.default},data:function(){return{navList:[{id:"0",ids:1,name:"银行卡",icon:"icon-yinhangqia",bg_color:"#FE960F"},{id:"1",ids:2,name:"微信",icon:"icon-weixin2",bg_color:"#41B035"},{id:"2",ids:3,name:"支付宝",icon:"icon-icon34",bg_color:"#00A9F2"}],currentTab:"0",extract_price:"",index:0,array:[],minPrice:0,userInfo:[],isClone:!1,loading:!0,load:!1,pics:[],extract_pic:"",placeholderValue:"0.00",payColor:"",pay_close:!1,real_name:"",bank_address:"",bank_code:"",pay_type:[]}},computed:(0,i.default)((0,i.default)({},(0,o.mapGetters)(["isLogin","viewColor"])),(0,s.configMap)(["sys_extension_type","withdraw_type"])),watch:{withdraw_type:{handler:function(){this.loadType()},immediate:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getUserExtractBank(),this.getBankInfo()):(0,u.toLogin)()},methods:{loadType:function(){var t=this;this.pay_type=[];var e=this.withdraw_type;e.length>0&&this.navList.map((function(a,n){e.map((function(e){a.ids==e&&t.pay_type.push(a)}))})),this.currentTab=this.pay_type[0].id},getBankInfo:function(){var t=this;(0,r.getBankInfo)().then((function(e){var a=e.data;t.real_name=a.real_name,t.bank_name=a.bank_name,t.bank_code=a.bank_code,t.bank_address=a.bank_address}))},getUserExtractBank:function(){var t=this;(0,r.extractBank)().then((function(e){var a=e.data;t.$set(t,"array",a)}))},getUserInfo:function(){var t=this;(0,r.spreadInfo)().then((function(e){t.userInfo=e.data,t.minPrice=e.data.user_extract_min}))},swichNav:function(t){this.currentTab=t,this.load=!1},bindPickerChange:function(t){this.index=t.detail.value},handlePayColor:function(){var t="";return t=1==this.currentTab?"#41B035":2==this.currentTab?"#00A9F2":"#FE960F ",t},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.pics.push(e.data.path),t.$set(t,"pics",t.pics),t.$set(t,"extract_pic",t.pics[0])}))},DelPic:function(t){this.pics[t];this.pics.splice(t,1),this.$set(this,"pics",this.pics)},subCash:function(t){var e=this,a=t.detail.value;if(!e.load){if(0==e.currentTab){if(0==a.real_name.length)return this.$util.Tips({title:"请填写持卡人姓名"});if(0==a.bank_code.length)return this.$util.Tips({title:"请填写卡号"});a.extract_type="bank",a.bank_name=e.array&&e.array.length?e.array[e.index].name:""}else if(1==e.currentTab){if(a.extract_type="weixin",!this.sys_extension_type){if(a.extract_pic=e.extract_pic,0==a.wechat.length)return this.$util.Tips({title:"请填写微信号"});if(0==a.extract_pic.length)return this.$util.Tips({title:"请上传收款码"})}}else if(2==e.currentTab){if(a.extract_type="alipay",a.extract_pic=e.extract_pic,0==a.alipay_code.length)return this.$util.Tips({title:"请填写账号"});if(0==a.extract_pic.length)return this.$util.Tips({title:"请上传收款码"})}if(0==a.extract_price.length)return this.$util.Tips({title:"请填写提现金额"});if(Number(a.extract_price)0?a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("银行")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-picker",{attrs:{value:t.index,range:t.array,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"Bank"},[t._v(t._s(t.array[t.index]["name"]))]),a("v-uni-text",{staticClass:"iconfont icon-qiepian38"})],1)],1)],1):t._e(),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("支行信息")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请输入支行信息","placeholder-class":"placeholder",name:"bank_address"},model:{value:t.bank_address,callback:function(e){t.bank_address=e},expression:"bank_address"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"extract_price",type:"digit"},model:{value:t.extract_price,callback:function(e){t.extract_price=e},expression:"extract_price"}})],1)],1),a("v-uni-view",{staticClass:"tip mt25"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.brokerage_price)+",")]),t._v("冻结佣金:¥"+t._s(t.userInfo.lock_brokerage))],1),a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.userInfo.broken_day)+"天,到期后可提现")]),a("v-uni-view",{staticClass:"btn-submit"},[a("v-uni-button",{staticClass:"bnt b-color",class:t.load?"disabled":"",attrs:{formType:"submit",disabled:t.load}},[t._v("提现")])],1)],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:1!=t.currentTab}},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.subCash.apply(void 0,arguments)}}},[t.sys_extension_type?a("v-uni-view",{staticClass:"auto_arrival"},[a("v-uni-view",{staticClass:"tip"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.brokerage_price))])],1),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{"placeholder-class":"placeholder1",name:"extract_price",type:"digit",placeholder:t.placeholderValue},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.placeholderValue=""}},model:{value:t.extract_price,callback:function(e){t.extract_price=e},expression:"extract_price"}})],1),a("v-uni-view",{staticClass:"btn-submit"},[a("v-uni-button",{staticClass:"bnt b-color",class:t.load?"disabled":"",attrs:{formType:"submit",disabled:t.load}},[t._v("提现")])],1)],1):a("v-uni-view",{},[a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("账号")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请填写您的微信账号","placeholder-class":"placeholder",name:"wechat"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"extract_price",type:"digit"},model:{value:t.extract_price,callback:function(e){t.extract_price=e},expression:"extract_price"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper uploadItem"},[a("v-uni-view",{staticClass:"name"},[t._v("收款码")]),a("v-uni-view",{staticClass:"input upload acea-row row-middle"},[t._l(t.pics,(function(e,n){return a("v-uni-view",{key:n,staticClass:"picture"},[a("v-uni-image",{attrs:{src:e}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DelPic(n)}}})],1)})),t.pics.length<1?a("v-uni-view",{staticClass:"picture acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v("上传图片")])],1):t._e()],2)],1),a("v-uni-view",{staticClass:"tip mt25"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.brokerage_price)+",")]),t._v("冻结佣金:¥"+t._s(t.userInfo.lock_brokerage))],1),a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.userInfo.broken_day)+"天,到期后可提现")]),a("v-uni-button",{staticClass:"bnt b-color",class:t.load?"disabled":"",attrs:{formType:"submit",disabled:t.load}},[t._v("提现")])],1)],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:2!=t.currentTab}},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.subCash.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("账号")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请填写您的支付宝账号","placeholder-class":"placeholder",name:"alipay_code"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"extract_price",type:"digit"},model:{value:t.extract_price,callback:function(e){t.extract_price=e},expression:"extract_price"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper uploadItem"},[a("v-uni-view",{staticClass:"name"},[t._v("收款码")]),a("v-uni-view",{staticClass:"input upload acea-row row-middle"},[t._l(t.pics,(function(e,n){return a("v-uni-view",{key:n,staticClass:"picture"},[a("v-uni-image",{attrs:{src:e}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DelPic(n)}}})],1)})),t.pics.length<1?a("v-uni-view",{staticClass:"picture acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v("上传图片")])],1):t._e()],2)],1),a("v-uni-view",{staticClass:"tip mb25"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.brokerage_price)+",")]),t._v("冻结佣金:¥"+t._s(t.userInfo.lock_brokerage))],1),t.userInfo.broken_day>0?a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.userInfo.broken_day)+"天,到期后可提现")]):t._e(),a("v-uni-view",{staticClass:"btn-submit"},[a("v-uni-button",{staticClass:"bnt b-color",class:t.load?"disabled":"",attrs:{formType:"submit",disabled:t.load}},[t._v("提现")])],1)],1)],1)],1)],1),a("cash",{attrs:{payMode:t.pay_type,pay_close:t.pay_close,order_id:t.currentTab},on:{payClose:function(e){arguments[0]=e=t.$handleEvent(e),t.payClose.apply(void 0,arguments)},onChangeFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeFun.apply(void 0,arguments)}}})],1)},i=[]},e4a1:function(t,e,a){"use strict";var n=a("2df3"),i=a.n(n);i.a},ecf7:function(t,e,a){"use strict";a.r(e);var n=a("32ed"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a}}]);