Browse Source

fixed tid1819

tid1878
刘嘉炜 3 months ago
parent
commit
95de40fc33
  1. 16
      src/subpackage/wallet/pages/douyin_withdraw/index.vue
  2. 6
      src/subpackage/wallet/pages/index/index.vue
  3. 10
      src/subpackage/wallet/pages/index/recharge_record.vue

16
src/subpackage/wallet/pages/douyin_withdraw/index.vue

@ -5,14 +5,14 @@
title="微信平台可提现资金" title="微信平台可提现资金"
:balance="formatMoney(balanceInfo.total_amount_of_wechat)" :balance="formatMoney(balanceInfo.total_amount_of_wechat)"
type="wx" type="wx"
@click:extract="applyBtn(1, balanceInfo.total_amount_of_wechat)"
@click:extract="applyBtn(1)"
></platform-item> ></platform-item>
<view class="dw-space"></view> <view class="dw-space"></view>
<platform-item <platform-item
title="抖音平台可提现资金" title="抖音平台可提现资金"
:balance="formatMoney(balanceInfo.total_amount_of_douyin)" :balance="formatMoney(balanceInfo.total_amount_of_douyin)"
type="dy" type="dy"
@click:extract="applyBtn(0, balanceInfo.total_amount_of_douyin)"
@click:extract="applyBtn(0)"
></platform-item> ></platform-item>
<view class="dw-space"></view> <view class="dw-space"></view>
@ -35,6 +35,7 @@ export default {
}, },
data(){ data(){
return { return {
balance: '',
brand_id: '', brand_id: '',
balanceInfo: { balanceInfo: {
/** /**
@ -46,7 +47,9 @@ export default {
} }
}, },
onLoad(options){ onLoad(options){
this.brand_id = options.brand_id || '';
this.brand_id = options?.brand_id || '';
this.balance = options?.balance ?? '';
}, },
onShow(){ onShow(){
this.getDouyinWalletBalance(this.brand_id); this.getDouyinWalletBalance(this.brand_id);
@ -58,9 +61,10 @@ export default {
}, },
// //
// md241024 241113 01 // md241024 241113 01
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: '前往', confirmText: '前往',
success: res=>{ success: res=>{
if(res.confirm)routeTo(); if(res.confirm)routeTo();

6
src/subpackage/wallet/pages/index/index.vue

@ -20,7 +20,7 @@
</view> </view>
</view> </view>
<wallet-modal-success ref="walletModalSuccess" :title="'充值成功'">
<wallet-modal-success ref="walletModalSuccess" :title="'充值成功'" @click:button="toRechargeRecord">
<template v-slot:tip>充值成功</template> <template v-slot:tip>充值成功</template>
<template v-slot:btn>充值记录</template> <template v-slot:btn>充值记录</template>
</wallet-modal-success> </wallet-modal-success>
@ -112,7 +112,9 @@ export default {
}) })
}, },
dyBtnClick(){ dyBtnClick(){
routeTo(`/subpackage/wallet/pages/douyin_withdraw/index?brand_id=${this.brand_id ?? ''}`, 'nT');
let { brand_id, balance } = this;
let _qryStr = `brand_id=${brand_id ?? ''}&balance=${balance ?? 0}`;
routeTo(`/subpackage/wallet/pages/douyin_withdraw/index?${_qryStr}`, 'nT');
}, },
bfBtnClick(){ bfBtnClick(){
routeTo(`/subpackage/wallet/pages/baofu_withdraw/index?brand_id=${this.brand_id ?? ''}`, 'nT'); routeTo(`/subpackage/wallet/pages/baofu_withdraw/index?brand_id=${this.brand_id ?? ''}`, 'nT');

10
src/subpackage/wallet/pages/index/recharge_record.vue

@ -13,16 +13,12 @@
<record-line name="充值时间">{{ e.pay_time || '-' }}</record-line> <record-line name="充值时间">{{ e.pay_time || '-' }}</record-line>
<record-line name="支付方式">{{ e.pay_type || '-' }}</record-line> <record-line name="支付方式">{{ e.pay_type || '-' }}</record-line>
<record-line name="交易流水号">{{ e.trans_no || '-' }}</record-line> <record-line name="交易流水号">{{ e.trans_no || '-' }}</record-line>
<record-line name="充值途径">{{ e.optsourse || '-' }}</record-line>
<record-line name="充值途径">
{{ e.optsourse || '-' }} <block v-if="e.optname"> {{ e.optname }} </block>
</record-line>
</view> </view>
</view> </view>
</view> </view>
<!-- 充值金额12.00
充值单号TX20191017898999
充值时间2024-10-17 12:12:12
支付方式微信支付
交易流水号4002676665666
充值途径商家助手刘晓 -->
</template> </template>
<script> <script>

Loading…
Cancel
Save