| | |
| | | fail: (res) => { |
| | | console.log("22222222222222",res) |
| | | uni.showToast({ |
| | | title:'对不起,提现失败。'+res.err_msg |
| | | title:'对不起,提现失败。', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | |
| | | ); */ |
| | | }, |
| | | submit() { |
| | | var that = this; |
| | | if(!this.canTransfer){ |
| | | uni.showToast({ |
| | | title:'您的微信版本过低,请更新至最新版本使用该功能。' |
| | |
| | | this.changing1 = false |
| | | return |
| | | } |
| | | this.changing1 = true |
| | | var that = this |
| | | var param ={amount:this.amount,name:this.name } |
| | | that.$u.api.applyWithdrawal(param) |
| | | .then(res =>{ |
| | | if(res.code ===200){ |
| | | that.wxMerchantTransfer(res.data); |
| | | // uni.navigateTo({ |
| | | // url: '/pages/withdrawal-successful/withdrawal-successful' |
| | | // }) |
| | | } |
| | | }).finally(() => { |
| | | that.changing1 = false |
| | | that.tips='' |
| | | that.amount =null |
| | | }) |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['fNJy4545hcrH83bP3a1vszs7XEKWjXMsrfr2XCNsql0'], |
| | | success(res) { |
| | | this.changing1 = true |
| | | var param ={amount:that.amount,name:that.name } |
| | | that.$u.api.applyWithdrawal(param) |
| | | .then(res =>{ |
| | | if(res.code ===200){ |
| | | that.wxMerchantTransfer(res.data); |
| | | // uni.navigateTo({ |
| | | // url: '/pages/withdrawal-successful/withdrawal-successful' |
| | | // }) |
| | | } |
| | | }).finally(() => { |
| | | that.changing1 = false |
| | | that.tips='' |
| | | that.amount =null |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | } |