ch-tgr-h5/src/views/Merchant/MerchantCashout.vue
chenhao cc78412933 提现记录状态展示&&积分转余额校验
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-29 10:54:37 +08:00

61 lines
1.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<BasePage>
<div class="merchantcashout">
<div class="top">
<span>
提现中
<b class="red">{{ statistics.withdrawing?.toFixed(2) || '0.00' }}</b>
</span>
<span class="r">
累计提现
<b>{{ statistics.withdrawtotal?.toFixed(2) || '0.00' }}</b>
</span>
</div>
<BaseList ref="listRef" class="list" url="/v1/client/DShopsClient/withdraw">
<template #default="{ item }">
<div class="item">
<div class="line">
<b class="state">{{ item.statename }}</b>
<b class="r money red"><span>{{ item.wdnums?.toFixed(2) }}</span>
</b>
</div>
<div class="record">
<div class="left">
提现{{ $formatGMT(item.addtime, 'yyyy-MM-dd HH:mm:ss') }}
</div>
<div class="right" v-if="item.trantime && !item.wdtime">
{{ item.state === 5 ? '失败' : '发放' }}{{ $formatGMT(item.trantime, 'yyyy-MM-dd HH:mm:ss') }}
</div>
<div class="right" v-if="item.wdtime">
{{ item.state === 6 ? '失败' : '发放' }}{{ $formatGMT(item.wdtime, 'yyyy-MM-dd HH:mm:ss') }}
</div>
</div>
</div>
</template>
</BaseList>
</div>
</BasePage>
</template>
<script>
export default {
name: 'MerchantCashout',
data() {
return {
statistics: {}
}
},
mounted() {
this.init()
},
methods: {
init() {
this.$get('/v1/client/DShopsClient/withdrawstatistics').then(res => {
this.statistics = res.data || {}
})
}
}
}
</script>