1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_cash-index"],{"41d2":function(t,i,a){var e=a("b8bb");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("d4ecb13e",e,!0,{sourceMap:!1,shadowMode:!1})},"4f331":function(t,i,a){"use strict";a.r(i);var e=a("9a0c"),n=a.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(s);i["default"]=n.a},7644:function(t,i,a){"use strict";var e=a("41d2"),n=a.n(e);n.a},9698:function(t,i,a){"use strict";a.r(i);var e=a("a222"),n=a("4f331");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(s);a("7644");var r=a("f0c5"),o=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"24d2412a",null,!1,e["a"],void 0);i["default"]=o.exports},"9a0c":function(t,i,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("c975"),a("3c65"),a("d3b7"),a("159b"),a("a434"),a("e25e"),a("14d9"),a("498a"),a("a9e3");var n=a("d1ea"),s=a("86eb"),r=a("26cb"),o=e(a("19b6")),c={components:{},mixins:[o.default],data:function(){return{navList:[],currentTab:0,index:0,array:[],minPrice:0,userInfo:[],isClone:!1,isAuto:!1,isShowAuth:!1,qrcodeUrlW:"",qrcodeUrlZ:"",prevent:!1,brokerageType:0,withdrawal_fee:0,true_money:0}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,i){t&&(this.getUserInfo(),this.getUserExtractBank())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getUserExtractBank()):(0,s.toLogin)()},methods:{inputNum:function(t){var i=t.detail.value,a=i.indexOf(".");this.moneyMaxLeng=a>-1?a+3:8,this.true_money=Math.floor(100*this.$util.$h.Mul(i,this.$util.$h.Div(this.$util.$h.Sub(100,this.withdrawal_fee),100)))/100||0},uploadpic:function(t){var i=this;i.$util.uploadImageOne("upload/image",(function(a){"W"===t?i.qrcodeUrlW=a.data.url:i.qrcodeUrlZ=a.data.url}))},DelPicW:function(){this.qrcodeUrlW=""},DelPicZ:function(){this.qrcodeUrlZ=""},onLoadFun:function(){this.getUserInfo(),this.getUserExtractBank()},authColse:function(t){this.isShowAuth=t},getUserExtractBank:function(){var t=this;(0,n.extractBank)().then((function(i){var a=i.data.extractBank;a.unshift("请选择银行"),a.forEach((function(i,e){a.splice(e,1,t.$t(i))})),t.$set(t,"array",a),t.minPrice=i.data.minPrice,t.withdrawal_fee=i.data.withdrawal_fee,t.brokerageType=i.data.brokerageType?parseInt(i.data.brokerageType):0}))},getUserInfo:function(){var t=this,i=this;(0,n.getUserInfo)().then((function(a){i.navList=[{name:i.$t("银行卡"),icon:"icon-yinhangqia",id:0},{name:i.$t("微信"),icon:"icon-weixin2",id:1},{name:i.$t("支付宝"),icon:"icon-icon34",id:2}];var e=[];i.userInfo=a.data;for(var n=0;n<i.userInfo.extract_type.length;n++)t.navList[i.userInfo.extract_type[n]].id==i.userInfo.extract_type[n]&&e.push(t.navList[i.userInfo.extract_type[n]]);t.navList=e,t.swichNav(t.navList[0].id)}))},swichNav:function(t){this.currentTab=t},bindPickerChange:function(t){this.index=t.detail.value},subCash:function(t){var i=this,a=this,e=t.detail.value;if(!this.prevent){if(0==a.currentTab){if(!e.name.trim())return this.$util.Tips({title:this.$t("请填写持卡人姓名")});if(!e.cardnum.trim())return this.$util.Tips({title:this.$t("请填写卡号")});if(0==a.index)return this.$util.Tips({title:this.$t("请选择银行")});e.extract_type="bank",e.bankname=a.array[a.index]}else if(1==a.currentTab){if(e.extract_type="weixin",!a.brokerageType&&!e.name.trim())return this.$util.Tips({title:this.$t("请填写微信号")});e.weixin=e.name,e.qrcode_url=a.qrcodeUrlW}else if(2==a.currentTab){if(e.extract_type="alipay",0==e.name.length)return this.$util.Tips({title:this.$t("请填写账号")});e.alipay_code=e.name,e.qrcode_url=a.qrcodeUrlZ}if(!e.money.trim())return this.$util.Tips({title:this.$t("请填写提现金额")});if(Number(e.money)<Number(a.minPrice))return this.$util.Tips({title:this.$t("提现金额不能低于")+a.minPrice});this.prevent=!0,(0,n.extractCash)(e).then((function(t){return a.getUserInfo(),i.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_spread_user/index",tab:2})})).catch((function(t){return setTimeout((function(t){i.prevent=!1}),1e3),i.$util.Tips({title:t})}))}}}};i.default=c},a222:function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{style:t.colorStyle},[a("v-uni-view",{staticClass:"cash-withdrawal"},[a("v-uni-view",{staticClass:"nav acea-row"},t._l(t.navList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"item fontcolor",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.swichNav(i.id)}}},[a("v-uni-view",{staticClass:"line bg-color",class:t.currentTab==i.id?"on":""}),a("v-uni-view",{staticClass:"iconfont",class:i.icon+" "+(t.currentTab==i.id?"on":"")}),a("v-uni-view",[t._v(t._s(i.name))])],1)})),1),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"list",attrs:{hidden:0!=t.currentTab}},[a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),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(t._s(t.$t("持卡人")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("请输入持卡人姓名"),"placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("卡号")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",placeholder:t.$t("请填写卡号"),"placeholder-class":"placeholder",name:"cardnum"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("银行")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-picker",{attrs:{value:t.index,range:t.array},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.bindPickerChange.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"Bank"},[t._v(t._s(t.array[t.index]))]),a("v-uni-text",{staticClass:"iconfont icon-qiepian38"})],1)],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("提现")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("最低提现金额")+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.inputNum.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("当前可提现金额"))+":"),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.userInfo.commissionCount))]),t._v(","+t._s(t.$t("冻结佣金"))+":"+t._s(t.$t("¥"))+t._s(t.userInfo.broken_commission))],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("提现手续费: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.withdrawal_fee)+"%")]),t._v(","+t._s(t.$t("实际到账: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.true_money))])],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("说明: 每笔佣金的冻结期为"))+t._s(t.userInfo.broken_day)+t._s(t.$t("天,到期后可提现")))]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v(t._s(t.$t("提现")))])],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:1!=t.currentTab}},[a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCash.apply(void 0,arguments)}}},[t.brokerageType?t._e():a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("账号")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("请填写您的微信账号"),"placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("提现")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("最低提现金额")+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.inputNum.apply(void 0,arguments)}}})],1)],1),t.brokerageType?t._e():a("v-uni-view",{staticClass:"item acea-row row-top row-between"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("收款码")))]),a("v-uni-view",{staticClass:"input acea-row"},[t.qrcodeUrlW?a("v-uni-view",{staticClass:"picEwm"},[a("v-uni-image",{attrs:{src:t.qrcodeUrlW}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1 fontcolor",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.DelPicW.apply(void 0,arguments)}}})],1):a("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadpic("W")}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v(t._s(t.$t("上传图片")))])],1)],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("当前可提现金额"))+":"),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.userInfo.commissionCount)+",")]),t._v(t._s(t.$t("冻结佣金"))+":"+t._s(t.$t("¥"))+t._s(t.userInfo.broken_commission))],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("提现手续费: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.withdrawal_fee)+"%")]),t._v(","+t._s(t.$t("实际到账: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.true_money))])],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("说明: 每笔佣金的冻结期为"))+t._s(t.userInfo.broken_day)+t._s(t.$t("天,到期后可提现")))]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v(t._s(t.$t("提现")))])],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:2!=t.currentTab}},[a("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),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(t._s(t.$t("账号")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("请填写您的支付宝账号"),"placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("提现")))]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:t.$t("最低提现金额")+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.inputNum.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-top row-between"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("收款码")))]),a("v-uni-view",{staticClass:"input acea-row"},[t.qrcodeUrlZ?a("v-uni-view",{staticClass:"picEwm"},[a("v-uni-image",{attrs:{src:t.qrcodeUrlZ}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1 fontcolor",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.DelPicZ.apply(void 0,arguments)}}})],1):a("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadpic("Z")}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v(t._s(t.$t("上传图片")))])],1)],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("当前可提现金额"))+":"),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.userInfo.commissionCount)+",")]),t._v(t._s(t.$t("冻结佣金"))+":"+t._s(t.$t("¥"))+t._s(t.userInfo.broken_commission))],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("提现手续费: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.withdrawal_fee)+"%")]),t._v(","+t._s(t.$t("实际到账: "))),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.$t("¥"))+t._s(t.true_money))])],1),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.$t("说明: 每笔佣金的冻结期为"))+t._s(t.userInfo.broken_day)+t._s(t.$t("天,到期后可提现")))]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v(t._s(t.$t("提现")))])],1)],1)],1)],1)],1)},n=[]},b8bb:function(t,i,a){var e=a("24fb");i=e(!1),i.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-24d2412a]{background-color:#fff!important}body.?%PAGE?%[data-v-24d2412a]{background-color:#fff!important}.fontcolor[data-v-24d2412a]{color:var(--view-theme)!important}.cash-withdrawal .nav[data-v-24d2412a]{height:%?130?%;box-shadow:0 %?10?% %?10?% #f8f8f8}.cash-withdrawal .nav .item[data-v-24d2412a]{font-size:%?26?%;flex:1;text-align:center}.cash-withdrawal .nav .item ~ .item[data-v-24d2412a]{border-left:1px solid #f0f0f0}.cash-withdrawal .nav .item .iconfont[data-v-24d2412a]{width:%?40?%;height:%?40?%;border-radius:50%;border:%?2?% solid var(--view-theme);text-align:center;line-height:%?37?%;margin:0 auto %?6?% auto;font-size:%?22?%;box-sizing:border-box}.cash-withdrawal .nav .item .iconfont.on[data-v-24d2412a]{background-color:var(--view-theme);color:#fff;border-color:var(--view-theme)}.cash-withdrawal .nav .item .line[data-v-24d2412a]{width:%?2?%;height:%?20?%;margin:0 auto;transition:height .3s}.cash-withdrawal .nav .item .line.on[data-v-24d2412a]{height:%?39?%}.cash-withdrawal .wrapper .list[data-v-24d2412a]{padding:0 %?30?%}.cash-withdrawal .wrapper .list .item[data-v-24d2412a]{border-bottom:%?1?% solid #eee;min-height:%?28?%;font-size:%?30?%;color:#333;padding:%?39?% 0}.cash-withdrawal .wrapper .list .item .name[data-v-24d2412a]{width:%?130?%}.cash-withdrawal .wrapper .list .item .input[data-v-24d2412a]{width:%?505?%}.cash-withdrawal .wrapper .list .item .input .placeholder[data-v-24d2412a]{color:#bbb}.cash-withdrawal .wrapper .list .item .picEwm[data-v-24d2412a],\n.cash-withdrawal .wrapper .list .item .pictrue[data-v-24d2412a]{width:%?140?%;height:%?140?%;border-radius:%?3?%;position:relative;margin-right:%?23?%}.cash-withdrawal .wrapper .list .item .picEwm uni-image[data-v-24d2412a]{width:100%;height:100%;border-radius:%?3?%}.cash-withdrawal .wrapper .list .item .picEwm .icon-guanbi1[data-v-24d2412a]{position:absolute;right:%?-14?%;top:%?-16?%;font-size:%?40?%}.cash-withdrawal .wrapper .list .item .pictrue[data-v-24d2412a]{border:1px solid #ddd;font-size:%?22?%;color:#bbb}.cash-withdrawal .wrapper .list .item .pictrue .icon-icon25201[data-v-24d2412a]{font-size:%?47?%;color:#ddd;margin-bottom:3px}.cash-withdrawal .wrapper .list .tip[data-v-24d2412a]{font-size:%?26?%;color:#999;margin-top:%?25?%}.cash-withdrawal .wrapper .list .bnt[data-v-24d2412a]{font-size:%?32?%;color:#fff;width:%?690?%;height:%?90?%;text-align:center;border-radius:%?50?%;line-height:%?90?%;margin:%?64?% auto}.cash-withdrawal .wrapper .list .tip2[data-v-24d2412a]{font-size:%?26?%;color:#999;text-align:center;margin:%?44?% 0 %?20?% 0}.cash-withdrawal .wrapper .list .value[data-v-24d2412a]{height:%?135?%;line-height:%?135?%;border-bottom:%?1?% solid #eee;width:%?690?%;margin:0 auto}.cash-withdrawal .wrapper .list .value uni-input[data-v-24d2412a]{font-size:%?80?%;color:#282828;height:%?135?%;text-align:center}.cash-withdrawal .wrapper .list .value .placeholder2[data-v-24d2412a]{color:#bbb}.price[data-v-24d2412a]{color:var(--view-priceColor)}',""]),t.exports=i}}]);
|