wkw 2 days ago
parent
commit
5ed6dd8c09
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/pages/trade/index.vue
  2. 1 1
      src/utils/web.js

+ 2 - 2
src/pages/trade/index.vue

@@ -12,9 +12,9 @@
         </view>
       </view>
       <view class="home-code">
-        <view class="trade-border-box"> STT{{ (Number(gameList[2]?.bonus) || 0).toFixed(6) }}</view>
+        <view class="trade-border-box"> STT{{ (Number(gameList[2]?.prev_bonus) || 0).toFixed(6) }}</view>
         <view class="trade-border-num"
-          >≈¥{{ ((Number(gameList[2]?.bonus) || 0) * 7.2).toFixed(2) }}</view
+          >≈¥{{ ((Number(gameList[2]?.prev_bonus) || 0) * 7.2).toFixed(2) }}</view
         >
       </view>
       <view class="trade-img-box">

+ 1 - 1
src/utils/web.js

@@ -3,7 +3,7 @@ import jlabiData from "@/utils/abijson/jlabi.json";
 import bmabiData from "@/utils/abijson/bmabi.json";
 import pubData from "@/utils/abijson/pub.json";
 
-const web3 = await getWeb3();
+const web3 = getWeb3();
 
 const TOKEN_ADDRESSES = {
     wgt: "0xCec9CE45f9E8f41016c89576CD27d74d5103c04c",