jhzh
2025-08-04 ef341b7695a62249399fe63fb77bbb887ab71734
src/page/user/compontents/cash-list.vue
@@ -15,7 +15,7 @@
            <div class="order-title">
              <span class="main"> {{ $t("hjtxyhk") }} </span>
              <span class="payNumber"
                >{{ $USD }}{{ item.withAmt | _toLocaleString }}</span
                >{{ $USD }}{{ item.withAmt  }}</span
              >
              <span v-if="item.withStatus!=1" class="red pull-right">
                {{
@@ -78,7 +78,7 @@
                <span class="col-xs-6">
                  {{ $t("hj44") }}:
                  <b class="space">
                    {{ $USD }} {{ item.withFee | _toLocaleString }}
                    {{ $USD }} {{ item.withFee  }}
                  </b>
                </span>
                <!-- <span class="col-xs-6">实际到账金额:<b class="space" style="font-size:0.26rem">{{item.withAmt - item.withFee}}</b>元</span>                         -->
@@ -112,7 +112,7 @@
              <p class="clearfix">
                <span class="secondary col-xs-6"
                  >{{ $t("sj") }}:
                  <b v-if="item.applyTime">{{ $moment(item.applyTime).format("DD-MM-YYYY hh:mm:ss A") }}</b>
                  <b v-if="item.applyTime">{{ formatTimestamp(item.applyTime) }}</b>
                  <b v-else></b>
                </span>
              </p>
@@ -170,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转账失败