From 58b0f1e9bd03a472321acf1dfc4e89fc4ce9df7a Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Mon, 29 Sep 2025 01:14:10 +0800
Subject: [PATCH] 9.28更换api

---
 src/page/user/compontents/cash-list.vue |   58 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 45 insertions(+), 13 deletions(-)

diff --git a/src/page/user/compontents/cash-list.vue b/src/page/user/compontents/cash-list.vue
index 53f2a7a..0a35b32 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">{{
+                item.withAmt | _toLocaleString
+              }}</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">
+                    {{ item.withFee | _toLocaleString }}
+                  </b>
                 </span>
                 <!-- <span class="col-xs-6">实际到账金额:<b class="space" style="font-size:0.26rem">{{item.withAmt - item.withFee}}</b>元</span>                         -->
               </p>
@@ -82,18 +113,18 @@
                 <span class="secondary col-xs-6"
                   >{{ $t("sj") }}:
                   <b v-if="item.applyTime">{{
-                    new Date(item.applyTime) | timeFormat
+                    $moment(item.applyTime).format("DD-MM-YYYY hh:mm:ss A")
                   }}</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">
@@ -131,7 +162,7 @@
       loading: false,
       list: [],
       pageNum: 1,
-      pageSize: 15,
+      pageSize: 15
     };
   },
   watch: {},
@@ -145,11 +176,11 @@
       let opt = {
         withStatus: "", // 提现状态 0已提交,1转账成功,2转账失败
         pageNum: this.pageNum,
-        pageSize: 15,
+        pageSize: 15
       };
       let data = await api.withdrawList(opt);
       if (data.status === 0) {
-        data.data.list.forEach((element) => {
+        data.data.list.forEach(element => {
           this.list.push(element);
         });
       } else {
@@ -170,7 +201,7 @@
       // 取消提现
       // MessageBox.confirm('您确定要平仓吗?').then(async action => {
       let opt = {
-        withId: val,
+        withId: val
       };
       let data = await api.canceloutMoney(opt);
       if (data.status === 0) {
@@ -181,13 +212,14 @@
         Toast(data.msg);
       }
       // });
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="less" scoped>
 .wrapper {
-  // padding-top: 0.9rem;
+  // background-color: #fff !important;
+  // height: 95vh;
 }
 
 .payNumber {

--
Gitblit v1.9.3