Parcourir la source

优化:修改收益页面每页查询数量

haiyang il y a 15 heures
Parent
commit
3030bde19f
2 fichiers modifiés avec 21 ajouts et 13 suppressions
  1. 1 0
      src/pages/home/home.vue
  2. 20 13
      src/pages/income/income.vue

+ 1 - 0
src/pages/home/home.vue

@@ -414,6 +414,7 @@ async function onRefresh() {
             width: 100%;
             object-fit: cover;
             z-index: 0;
+            border-radius: 42rpx;
         }
 
         .home-header-coupon-title {

+ 20 - 13
src/pages/income/income.vue

@@ -28,16 +28,6 @@ const { hasLogin } = storeToRefs(tokenStore)
 
 const show = ref(false)
 const filterValue = ref(Date.now())
-function confirm() {
-    // 函数实现
-    show.value = false
-}
-function cancel() {
-    show.value = false
-}
-function close() {
-    show.value = false
-}
 // 发券人账户表-通过userId查询账户信息
 const { send: getAccountCountRequest, data: accountCountData } = useRequest(getAccountCount, {
     immediate: false,
@@ -70,7 +60,7 @@ const {
         })
         return response.detailList || []
     },
-    pageSize: 5,
+    pageSize: 7,
 })
 
 // 获取账户明细分页数据(Map格式)---已结算
@@ -92,9 +82,26 @@ const {
         })
         return response.detailList || []
     },
-    pageSize: 5,
+    pageSize: 7,
 })
 
+async function confirm() {
+    // 函数实现
+    show.value = false
+    if (status.value === 0) {
+        await pendingSettlementRefresh()
+    }
+    else {
+        await settledRefresh()
+    }
+}
+function cancel() {
+    show.value = false
+}
+function close() {
+    show.value = false
+}
+
 // 下拉刷新
 async function onRefresh() {
     refreshing.value = true
@@ -486,7 +493,7 @@ function goPage(page: string) {
         .income-header-menu-list {
             background: #ffffff;
             flex: 1;
-            min-height: 200rpx;
+            min-height: calc(30vh - 100rpx);
             overflow-y: auto;
             /* 确保内容超出时可滚动 */