Browse Source

提币记录新增撤销和拒绝理由

master
liaoxinyu 12 months ago
parent
commit
fd5d501f96
  1. 3
      i18n/lang/en.json
  2. 3
      i18n/lang/zh-TW.json
  3. 54
      pages/assets/records.vue

3
i18n/lang/en.json

@ -69,7 +69,8 @@
"c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.", "c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.",
"c6": "Proportion of increase", "c6": "Proportion of increase",
"c7": "Current valuation", "c7": "Current valuation",
"withdrawals":"Please select the withdrawal address" "withdrawals":"Please select the withdrawal address",
"rejection":"Reason for rejection"
}, },
"base": { "base": {
"a0": "Title", "a0": "Title",

3
i18n/lang/zh-TW.json

@ -68,7 +68,8 @@
"c4": "數量", "c4": "數量",
"c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服", "c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服",
"c6": "漲幅比例", "c6": "漲幅比例",
"withdrawals":"請選擇提幣地址" "withdrawals":"請選擇提幣地址",
"rejection":"拒絕理由"
}, },
"base": { "base": {
"a0": "標題", "a0": "標題",

54
pages/assets/records.vue

@ -16,29 +16,39 @@
<view class=""> <view class="">
<table class="w-max"> <table class="w-max">
<thead class="p-x-md"> <thead class="p-x-md">
<tr class="fn-sm p-x-md"> <tr class="fn-sm p-x-md" style="display: flex;align-items: center;">
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th> <view class="p-b-md fn-left p-l-md" style="width: 30%;">{{ $t("assets.c9") }}</view>
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th> <view class="p-b-md fn-left" style="width: 20%;">{{ $t("assets.d0") }}</view>
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th> <view class="p-b-md fn-right p-r-md" style="width: 30%;">{{ $t("assets.c0") }}</view>
<view class="p-b-md fn-right" style="width: 10%;">{{ $t("exchange.g3") }}</view>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id"> <tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id">
<td class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm"> <view style="display: flex;align-items: center;">
{{ item.datetime | parseTime }} <view class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm" style="width: 30%;">
</td> {{ item.datetime | parseTime }}
<td v-if="type=='draw'"> </view>
<view>{{ item.status_text }}</view> <view v-if="type=='draw'" style="width: 20%;">
</td> <view>{{ item.status_text }}</view>
<td v-if="type=='recharge'"> </view>
<view v-if="item.status==0">{{$t('assets.d1')}}</view> <view v-if="type=='recharge'">
<view v-if="item.status==1" class="color-buy">{{$t('assets.d2')}}</view> <view v-if="item.status==0">{{$t('assets.d1')}}</view>
<view v-if="item.status==2" class="color-sell">{{$t('assets.d3')}}</view> <view v-if="item.status==1" class="color-buy">{{$t('assets.d2')}}</view>
</td> <view v-if="item.status==2" class="color-sell">{{$t('assets.d3')}}</view>
<td class="fn-right p-r-md rounded-tr-sm rounded-br-sm"> </view>
{{ item.amount }} <view class="fn-right p-r-md rounded-tr-sm rounded-br-sm" style="width: 30%;">
<span class="color-default">({{ item.coin_name }})</span> {{ item.amount }}
</td> <span class="color-default">({{ item.coin_name }})</span>
</view>
<view class="" v-if="item.status==0" style="width: 10%;">
<span style="color: #4381F6;width: 60px;height: 30px;font-size: 12px;"
@click="cancelWithdraw(item)">{{$t('exchange.g4')}}</span>
</view>
</view>
<view class="p-l-md" v-if="item.remark" style="color:red;word-wrap: break-word;width:632rpx;">
{{$t('common.rejection')}}{{item.remark}}
</view>
</tr> </tr>
<!-- <tr v-if="loadMore"> <!-- <tr v-if="loadMore">
<td colspan="3" class="fn-center p-xs link-active" @click="more"> <td colspan="3" class="fn-center p-xs link-active" @click="more">
@ -105,6 +115,12 @@ import formData from "@/utils/class/date";
this.depositHistory(); this.depositHistory();
} }
}, },
cancelWithdraw(item) {
Wallet.cancelWithdraw({ withdraw_id: item.id }).then(res => {
this.$toast(this.$t('otc.d4'));
this.getWithdrawRecords()
})
},
}, },
onLoad(e) { onLoad(e) {
// console.log('---------',e); // console.log('---------',e);

Loading…
Cancel
Save