index.js 6.1 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_cash/index"],{"13c6":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i("d1ea"),a=i("86eb"),u=i("26cb"),o=n(i("19b6")),s={components:{authorize:function(){i.e("components/Authorize").then(function(){return resolve(i("ad23"))}.bind(null,i)).catch(i.oe)}},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,u.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getUserInfo(),this.getUserExtractBank())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getUserExtractBank()):(0,a.toLogin)()},methods:{inputNum:function(t){var e=t.detail.value,i=e.indexOf(".");this.moneyMaxLeng=i>-1?i+3:8,this.true_money=Math.floor(100*this.$util.$h.Mul(e,this.$util.$h.Div(this.$util.$h.Sub(100,this.withdrawal_fee),100)))/100||0},uploadpic:function(t){var e=this;e.$util.uploadImageOne("upload/image",(function(i){"W"===t?e.qrcodeUrlW=i.data.url:e.qrcodeUrlZ=i.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,r.extractBank)().then((function(e){var i=e.data.extractBank;i.unshift("请选择银行"),i.forEach((function(e,n){i.splice(n,1,t.$t(e))})),t.$set(t,"array",i),t.minPrice=e.data.minPrice,t.withdrawal_fee=e.data.withdrawal_fee,t.brokerageType=e.data.brokerageType?parseInt(e.data.brokerageType):0}))},getUserInfo:function(){var t=this,e=this;(0,r.getUserInfo)().then((function(i){e.navList=[{name:e.$t("银行卡"),icon:"icon-yinhangqia",id:0},{name:e.$t("微信"),icon:"icon-weixin2",id:1},{name:e.$t("支付宝"),icon:"icon-icon34",id:2}];var n=[];e.userInfo=i.data;for(var r=0;r<e.userInfo.extract_type.length;r++)t.navList[e.userInfo.extract_type[r]].id==e.userInfo.extract_type[r]&&n.push(t.navList[e.userInfo.extract_type[r]]);t.navList=n,t.swichNav(t.navList[0].id)}))},swichNav:function(t){this.currentTab=t},bindPickerChange:function(t){this.index=t.detail.value},subCash:function(t){var e=this,i=this,n=t.detail.value;if(!this.prevent){if(0==i.currentTab){if(!n.name.trim())return this.$util.Tips({title:this.$t("请填写持卡人姓名")});if(!n.cardnum.trim())return this.$util.Tips({title:this.$t("请填写卡号")});if(0==i.index)return this.$util.Tips({title:this.$t("请选择银行")});n.extract_type="bank",n.bankname=i.array[i.index]}else if(1==i.currentTab){if(n.extract_type="weixin",!i.brokerageType&&!n.name.trim())return this.$util.Tips({title:this.$t("请填写微信号")});n.weixin=n.name,n.qrcode_url=i.qrcodeUrlW}else if(2==i.currentTab){if(n.extract_type="alipay",0==n.name.length)return this.$util.Tips({title:this.$t("请填写账号")});n.alipay_code=n.name,n.qrcode_url=i.qrcodeUrlZ}if(!n.money.trim())return this.$util.Tips({title:this.$t("请填写提现金额")});if(Number(n.money)<Number(i.minPrice))return this.$util.Tips({title:this.$t("提现金额不能低于")+i.minPrice});this.prevent=!0,(0,r.extractCash)(n).then((function(t){return i.getUserInfo(),e.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_spread_user/index",tab:2})})).catch((function(t){return setTimeout((function(t){e.prevent=!1}),1e3),e.$util.Tips({title:t})}))}}}};e.default=s},"355d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.$t("持卡人")),n=t.$t("请输入持卡人姓名"),r=t.$t("卡号"),a=t.$t("请填写卡号"),u=t.$t("银行"),o=t.$t("提现"),s=t.$t("最低提现金额"),c=t.$t("当前可提现金额"),l=t.$t("¥"),f=t.$t("冻结佣金"),m=t.$t("¥"),d=t.$t("提现手续费: "),$=t.$t("实际到账: "),h=t.$t("¥"),p=t.$t("说明: 每笔佣金的冻结期为"),b=t.$t("天,到期后可提现"),v=t.$t("提现"),g=t.brokerageType?null:t.$t("账号"),_=t.brokerageType?null:t.$t("请填写您的微信账号"),x=t.$t("提现"),y=t.$t("最低提现金额"),T=t.brokerageType?null:t.$t("收款码"),U=t.brokerageType||t.qrcodeUrlW?null:t.$t("上传图片"),k=t.$t("当前可提现金额"),w=t.$t("¥"),I=t.$t("冻结佣金"),q=t.$t("¥"),L=t.$t("提现手续费: "),P=t.$t("实际到账: "),N=t.$t("¥"),O=t.$t("说明: 每笔佣金的冻结期为"),W=t.$t("天,到期后可提现"),B=t.$t("提现"),E=t.$t("账号"),Z=t.$t("请填写您的支付宝账号"),C=t.$t("提现"),M=t.$t("最低提现金额"),A=t.$t("收款码"),j=t.qrcodeUrlZ?null:t.$t("上传图片"),D=t.$t("当前可提现金额"),S=t.$t("¥"),z=t.$t("冻结佣金"),G=t.$t("¥"),J=t.$t("提现手续费: "),F=t.$t("实际到账: "),H=t.$t("¥"),K=t.$t("说明: 每笔佣金的冻结期为"),Q=t.$t("天,到期后可提现"),R=t.$t("提现");t.$mp.data=Object.assign({},{$root:{m0:i,m1:n,m2:r,m3:a,m4:u,m5:o,m6:s,m7:c,m8:l,m9:f,m10:m,m11:d,m12:$,m13:h,m14:p,m15:b,m16:v,m17:g,m18:_,m19:x,m20:y,m21:T,m22:U,m23:k,m24:w,m25:I,m26:q,m27:L,m28:P,m29:N,m30:O,m31:W,m32:B,m33:E,m34:Z,m35:C,m36:M,m37:A,m38:j,m39:D,m40:S,m41:z,m42:G,m43:J,m44:F,m45:H,m46:K,m47:Q,m48:R}})},r=[]},"4be6":function(t,e,i){"use strict";var n=i("adb6"),r=i.n(n);r.a},"4f33":function(t,e,i){"use strict";i.r(e);var n=i("13c6"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"6dfb":function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("4789");n(i("66fd"));var r=n(i("9698"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},9698:function(t,e,i){"use strict";i.r(e);var n=i("355d"),r=i("4f33");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("4be6");var u=i("f0c5"),o=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},adb6:function(t,e,i){}},[["6dfb","common/runtime","common/vendor"]]]);