Browse Source

修复bug

wkw 3 ngày trước cách đây
mục cha
commit
e3283113cd

+ 4 - 2
src/api/path/backend.api.js

@@ -6,6 +6,8 @@ export function transactions(account) {
 }
 
 // 获取代币列表
-export function tokenTransfers(account, param) {
-  return service.get(`addresses/${account}/token-transfers`, { params: param });
+export function tokenTransfers(account, DBaddress) {
+  const url = `addresses/${account}/token-transfers?type=ERC-20%2CERC-721%2CERC-1155&filter=to%20%7C%20from&token=${DBaddress}`;
+  return service.get(url);
 }
+

+ 2 - 2
src/i18n/zhHk/wallet.js

@@ -10,8 +10,8 @@ export default {
     SelectTheCurrency:"選擇幣種",
     TransactionDetails:"交易詳情",
     PaymentAddress:"付款地址:",
-    ReceivingAddress:"收款地址:",
-    MinerIsFee:"礦工費:",
+    ReceivingAddress:"收款地址",
+    MinerIsFee:"礦工費",
     PleaseEnterThePassword:"請輸入密碼",
     Cancel:"取消",
     Sure:"確定",

+ 3 - 3
src/updater/update.json

@@ -1,7 +1,7 @@
 {
-  "version": "1.0.4",
-  "releaseDate": "2025-08-12 08:03:08",
-  "checksum": "dc30d525be1db1bad04aeff0542f88e3cec773ccd2db475e066871529bcb895c",
+  "version": "1.0.5",
+  "releaseDate": "2025-08-12 08:25:54",
+  "checksum": "52761e429f466e75b59f1fd218392f37e5d51640965dfa44c66d181e3d18a5b4",
   "minBinaryVersion": "1.0.0",
   "mandatory": false,
   "upDataDescription": "✨修正一些錯誤。。。。!!!"

+ 2 - 7
src/views/wallet/index.vue

@@ -343,6 +343,7 @@ const changePop = (val, item) => {
 };
 // 查看历史记录
 const getDetail = (item) => {
+  historyList.value = [];
   if (item.name == "ACC") {
     getList();
   } else {
@@ -365,13 +366,7 @@ const getList = async () => {
   }
 };
 const getDBList = async (DBaddress) => {
-  const res = await tokenTransfers(walletStore.account, {
-    params: {
-      type: "ERC-20,ERC-721,ERC-1155",
-      filter: "to | from",
-      token: DBaddress,
-    },
-  });
+  const res = await tokenTransfers(walletStore.account,DBaddress);
   const items = res.items || [];
   if (items.length > 0) {
     items.forEach((val) => {

+ 5 - 1
src/views/wallet/proceeds/index.vue

@@ -10,13 +10,17 @@
                 <div class="address">{{walletStore.account}}</div>
             </div>
         </div>
-        <van-button class="footer-btn" type="primary" size="large">{{ $t('wallet.Copy') }}</van-button>
+        <van-button 
+            class="footer-btn im-copy-btn" 
+            :data-clipboard-text="walletStore.account" type="primary" size="large" >{{ $t('wallet.Copy') }}</van-button>
     </div>
 </template>
 
 <script setup>
 import QrcodeVue from 'qrcode.vue'
 import { useWalletStore } from "@/stores/modules/walletStore";
+import { useCopy } from "@/hooks/use-copy.js";
+useCopy();
 const walletStore = useWalletStore();
 const qrtext = walletStore.account;
 </script>