wkw 3 ngày trước cách đây
mục cha
commit
262dee29a8
2 tập tin đã thay đổi với 11 bổ sung1 xóa
  1. 9 0
      src/views/wallet/index.vue
  2. 2 1
      src/views/wallet/proceeds/index.vue

+ 9 - 0
src/views/wallet/index.vue

@@ -1,5 +1,6 @@
 <template>
   <div class="container">
+  <van-pull-refresh v-model="loading" @refresh="onRefresh" style="height:100%">
     <svg-icon name="wallet-bg" class="bg-img" />
     <div class="user-info-body">
       <div class="user-info-lf">
@@ -126,6 +127,7 @@
         </template>
       </div>
     </div>
+  </van-pull-refresh>
     <van-popup v-model:show="showWallet" position="bottom" round>
       <div class="pop-content">
         <div class="pop-title">
@@ -312,6 +314,7 @@ const router = useRouter();
 const walletStore = useWalletStore();
 const systemStore = useSystemStore();
 
+const loading = ref(false);
 const isShow = ref(true);
 const showWallet = ref(false);
 const showHistory = ref(false);
@@ -323,6 +326,12 @@ const selectUrl = ref({});
 const goToPage = (url) => {
   router.push(url);
 };
+const onRefresh = () => {
+  setTimeout(() => {
+    gethotTokens();
+    loading.value = false;
+  }, 1000);
+};
 // 跳转详情
 const goToPageDetail = () => {
   router.push({

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

@@ -12,7 +12,8 @@
         </div>
         <van-button 
             class="footer-btn im-copy-btn" 
-            :data-clipboard-text="walletStore.account" type="primary" size="large" >{{ $t('wallet.Copy') }}</van-button>
+            :data-clipboard-text="walletStore.account" type="primary" size="large" >{{ $t('wallet.Copy') }}
+        </van-button>
     </div>
 </template>