From 2d9eaadefb271a43a9a7de7c299377321e07bc8e Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Thu, 14 Aug 2025 13:29:10 +0800
Subject: [PATCH] 1
---
src/page/user/compontents/cash-list.vue | 62 ++++++++++++++++++++++++++----
1 files changed, 53 insertions(+), 9 deletions(-)
diff --git a/src/page/user/compontents/cash-list.vue b/src/page/user/compontents/cash-list.vue
index 53f2a7a..87d6576 100644
--- a/src/page/user/compontents/cash-list.vue
+++ b/src/page/user/compontents/cash-list.vue
@@ -14,8 +14,37 @@
<div class="order-info-box">
<div class="order-title">
<span class="main"> {{ $t("hjtxyhk") }} </span>
- <span class="payNumber">{{ $USD }}{{ item.withAmt }}</span>
- <span class="red pull-right">
+ <span class="payNumber"
+ >{{ $USD }}{{ item.withAmt }}</span
+ >
+ <span v-if="item.withStatus!=1" class="red pull-right">
+ {{
+ item.withStatus == 1
+ ? $t("hjtxcg")
+ : item.withStatus == 2
+ ? $t("hjtxsb")
+ : item.withStatus == 3
+ ? $t("hjddqx")
+ : $t("hjshz")
+ }}
+ <i
+ v-if="item.withStatus == 1"
+ class="iconfont icon-tongguo4 animated bounceIn"
+ ></i>
+ <i
+ v-if="item.withStatus == 0"
+ class="iconfont icon-dengdai animated bounceInDown"
+ ></i>
+ <i
+ v-if="item.withStatus == 2"
+ class="iconfont icon-failure animated bounceInDown"
+ ></i>
+ <i
+ v-if="item.withStatus == 3"
+ class="iconfont icon-iconfontweitongguo animated bounceInDown"
+ ></i>
+ </span>
+ <span v-if="item.withStatus==1" class="green pull-right" >
{{
item.withStatus == 1
? $t("hjtxcg")
@@ -48,7 +77,9 @@
<p class="clearfix">
<span class="col-xs-6">
{{ $t("hj44") }}:
- <b class="space"> {{ $USD }} {{ item.withFee }} </b>
+ <b class="space">
+ {{ $USD }} {{ item.withFee }}
+ </b>
</span>
<!-- <span class="col-xs-6">实际到账金额:<b class="space" style="font-size:0.26rem">{{item.withAmt - item.withFee}}</b>元</span> -->
</p>
@@ -81,19 +112,17 @@
<p class="clearfix">
<span class="secondary col-xs-6"
>{{ $t("sj") }}:
- <b v-if="item.applyTime">{{
- new Date(item.applyTime) | timeFormat
- }}</b>
+ <b v-if="item.applyTime">{{ formatTimestamp(item.applyTime) }}</b>
<b v-else></b>
</span>
</p>
</div>
- <div v-if="item.withStatus == 0" class="order-foot clearfix">
+ <!-- <div v-if="item.withStatus == 0" class="order-foot clearfix">
<div @click="cancle(item.id)" class="foot-btn">
<i class="font-icon"></i>
{{ $t("hjqxtx") }}
</div>
- </div>
+ </div> -->
</div>
<!-- <div class="capital">
<div class="pro">
@@ -141,6 +170,20 @@
this.getListDetail();
},
methods: {
+ formatTimestamp(timestamp) {
+ const date = new Date(timestamp); // 将时间戳转换为 Date 对象
+
+ const day = date.getDate(); // 日期
+ const month = date.getMonth() + 1; // 月份(从 0 开始,所以下标要加 1)
+ const year = date.getFullYear(); // 年份
+ const hours = date.getHours(); // 小时
+ const minutes = date.getMinutes(); // 分钟
+ const seconds = date.getSeconds(); // 秒钟
+
+ // 格式化为 "日月年/时分秒" 格式
+ return `${year}${this.$t('年')}${month}${this.$t('月')}${day}${this.$t('日')}/${hours}:${minutes}:${seconds}`;
+ // return `${month}`;
+ },
async getListDetail() {
let opt = {
withStatus: "", // 提现状态 0已提交,1转账成功,2转账失败
@@ -187,7 +230,8 @@
</script>
<style lang="less" scoped>
.wrapper {
- // padding-top: 0.9rem;
+ background-color: #fff !important;
+ height: 95vh;
}
.payNumber {
--
Gitblit v1.9.3