wkw 2 days ago
parent
commit
d74cd5cbef
3 changed files with 3 additions and 5 deletions
  1. 1 0
      src/api/game.js
  2. 1 4
      src/pages/trade/index.vue
  3. 1 1
      src/utils/http.js

+ 1 - 0
src/api/game.js

@@ -69,5 +69,6 @@ export const reportLogger = (data) => {
     url: '/api/report/logger',
     url: '/api/report/logger',
     method: 'post',
     method: 'post',
     data,
     data,
+    showLoading:false
   })
   })
 }
 }

+ 1 - 4
src/pages/trade/index.vue

@@ -489,7 +489,6 @@ const getClaimPrize = async (hash) =>{
     receive_hash:hash
     receive_hash:hash
   });
   });
   if (res.status == 200) {
   if (res.status == 200) {
-    uni.hideLoading();
     uni.showToast({
     uni.showToast({
       title: '领取成功',
       title: '领取成功',
       icon: 'none',
       icon: 'none',
@@ -497,7 +496,7 @@ const getClaimPrize = async (hash) =>{
     })
     })
     setTimeout(() => {
     setTimeout(() => {
       getGameRank(gameDetail.value?.id)
       getGameRank(gameDetail.value?.id)
-    }, 1500);
+    }, 800);
   }
   }
 }
 }
 
 
@@ -511,7 +510,6 @@ const getsendSingleReward = async (prize_money) =>{
     if (result.status === "success") {
     if (result.status === "success") {
       await getClaimPrize(result.hash);
       await getClaimPrize(result.hash);
     }else{
     }else{
-      uni.hideLoading();
       uni.showToast({
       uni.showToast({
         title: result.message || "领取失败",
         title: result.message || "领取失败",
         icon: 'none',
         icon: 'none',
@@ -519,7 +517,6 @@ const getsendSingleReward = async (prize_money) =>{
       });
       });
     }
     }
   } catch (error) {
   } catch (error) {
-    uni.hideLoading();
     uni.showToast({
     uni.showToast({
       title: error.message || "领取失败",
       title: error.message || "领取失败",
       icon: 'none',
       icon: 'none',

+ 1 - 1
src/utils/http.js

@@ -1,4 +1,4 @@
-const BASE_URL = 'https://wallet.angeltokens.io'
+const BASE_URL = 'https://wallet.angeltokens.io'//'https://wallet.angeltokens.io'
 
 
 export const http = (options) => {
 export const http = (options) => {
   const {
   const {