From 6a00e076e538772cfc448731d0349895f4b5422e Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Wed, 06 Apr 2022 11:41:26 +0800
Subject: [PATCH] gx

---
 src/pages/index/account.vue |   32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/src/pages/index/account.vue b/src/pages/index/account.vue
index 9952c23..4e4af7e 100644
--- a/src/pages/index/account.vue
+++ b/src/pages/index/account.vue
@@ -108,14 +108,26 @@
                                     </div>
                                 </van-tab>
                                 <van-tab :title='$t("message.Mining")'>
-                                    <div class="list-row flex align-center justify-between">
+                                    <div class="list-row list-row2 flex align-center justify-between">
                                         <span class="name">{{$t("message.Time")}}</span>
                                         <span class="name">{{$t("message.Type")}}</span>
                                         <span class="name">{{$t("message.Output")}}</span>
                                     </div>
-                                    <div class="list-row flex align-center justify-between" v-for="item in miningList">
+                                    <div class="list-row list-row2 flex align-center justify-between" v-for="item in miningList">
                                         <span>{{item.createTime}}</span>
                                         <span>{{$t("message.Mining")}}</span>
+                                        <span>{{item.amount}} ETH</span>
+                                    </div>
+                                </van-tab>
+                                <van-tab :title='$t("message.Reward")'>
+                                    <div class="list-row list-row2 flex align-center justify-between">
+                                        <span class="name">{{$t("message.Time")}}</span>
+                                        <span class="name">{{$t("message.Type")}}</span>
+                                        <span class="name">{{$t("message.Output")}}</span>
+                                    </div>
+                                    <div class="list-row list-row2 flex align-center justify-between" v-for="item in rewardList">
+                                        <span>{{item.createTime}}</span>
+                                        <span>{{$t("message.Reward")}}</span>
                                         <span>{{item.amount}} ETH</span>
                                     </div>
                                 </van-tab>
@@ -142,6 +154,7 @@
     let exchangeList = ref([])
     let withdrawList = ref([])
     let miningList = ref([])
+    let rewardList = ref([]);
     let myAccountInfo = ref({});
     let info = ref({});
     let ethAmount = ref();
@@ -166,6 +179,7 @@
             getRecordList(1)
             getRecordList(2)
             getRecordList(3)
+            getRecordList(4)
         }
     }
     function getWalletInfo(){
@@ -194,8 +208,10 @@
                 proxy.exchangeList = result;
               } else if (type == 2) {
                 proxy.withdrawList = result;
-              } else {
+              } else if (type == 3) {
                 proxy.miningList = result;
+              } else {
+                proxy.rewardList = result;
               }
           }
         })
@@ -279,6 +295,7 @@
             getRecordList(1)
             getRecordList(2)
             getRecordList(3)
+            getRecordList(4)
         }
     }
     onMounted(() => {
@@ -291,6 +308,7 @@
         exchangeList,
         withdrawList,
         miningList,
+        rewardList,
         info,
         ethAmount,
         ethToUsdtAmount,
@@ -443,7 +461,7 @@
         width: 45%
     }
     .list-row span:nth-child(3){
-        text-align: center;
+        text-align: right;
         width: 15%
     }
     .list-row:not(:last-child){
@@ -452,4 +470,10 @@
     .list-row:nth-child(1){
         margin: 30px 0;
     }
+    .list-row2 span:nth-child(2){
+        width: 22%
+    }
+    .list-row2 span:nth-child(3){
+        width: 38%
+    }
 </style>
\ No newline at end of file

--
Gitblit v1.9.1