|
|
@ -5,14 +5,14 @@ |
|
|
|
title="微信平台可提现资金" |
|
|
|
:balance="formatMoney(balanceInfo.total_amount_of_wechat)" |
|
|
|
type="wx" |
|
|
|
@click:extract="applyBtn(1, balanceInfo.total_amount_of_wechat)" |
|
|
|
@click:extract="applyBtn(1)" |
|
|
|
></platform-item> |
|
|
|
<view class="dw-space"></view> |
|
|
|
<platform-item |
|
|
|
title="抖音平台可提现资金" |
|
|
|
:balance="formatMoney(balanceInfo.total_amount_of_douyin)" |
|
|
|
type="dy" |
|
|
|
@click:extract="applyBtn(0, balanceInfo.total_amount_of_douyin)" |
|
|
|
@click:extract="applyBtn(0)" |
|
|
|
></platform-item> |
|
|
|
|
|
|
|
<view class="dw-space"></view> |
|
|
@ -35,6 +35,7 @@ export default { |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
balance: '', |
|
|
|
brand_id: '', |
|
|
|
balanceInfo: { |
|
|
|
/** |
|
|
@ -46,7 +47,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
this.brand_id = options.brand_id || ''; |
|
|
|
this.brand_id = options?.brand_id || ''; |
|
|
|
this.balance = options?.balance ?? ''; |
|
|
|
|
|
|
|
}, |
|
|
|
onShow(){ |
|
|
|
this.getDouyinWalletBalance(this.brand_id); |
|
|
@ -58,9 +61,10 @@ export default { |
|
|
|
}, |
|
|
|
// 申请提现 |
|
|
|
// md【241024】 241113新增 0抖音;1微信 |
|
|
|
applyBtn(source, balance){ |
|
|
|
if(!isNaN(balance) && balance < 0)return showModal({ |
|
|
|
content: '系统检测到您在欧轩有未支付的账单,请先完成支付后再提现。点击“前往”跳转钱包页面', |
|
|
|
applyBtn(source){ |
|
|
|
let { balance } = this; |
|
|
|
if(!isNaN(balance) && Number(balance) < 0)return showModal({ |
|
|
|
content: '系统检测到您在欧轩有未支付的账单,请先完成支付后再提现。', |
|
|
|
confirmText: '前往', |
|
|
|
success: res=>{ |
|
|
|
if(res.confirm)routeTo(); |
|
|
|