启程易购后端代码
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.
qicheng_shop_backend/public/static/js/pages-users-user_cash-index...

1 line
28 KiB

8 months ago
(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)<e.minPrice)return this.$util.Tips({title:"提现金额不能低于"+e.minPrice});a.extract_type=this.currentTab,e.load=!0,e.sys_extension_type&&1==e.currentTab&&(a={extract_price:t.detail.value.extract_price,extract_type:3}),(0,r.extractCash)(a).then((function(t){e.getUserInfo(),e.load=!1,e.$util.Tips({title:t.message,icon:"success"}),setTimeout((function(){uni.navigateTo({url:"/pages/users/user_spread_user/index"})}),1e3)})).catch((function(t){return e.load=!1,e.$util.Tips({title:t})}))}},goPay:function(t){this.$set(this,"pay_close",!0)},payClose:function(){this.pay_close=!1},onChangeFun:function(t){var e=t,a=e.action||null,n=void 0!=e.value?e.value:null;a&&this[a]&&this[a](n),this.currentTab=e.type}}};e.default=l},"2df3":function(t,e,a){var n=a("477c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.export