diff --git a/pages/home/noReleaseAmount.vue b/pages/home/noReleaseAmount.vue index 58546a3..95c0814 100644 --- a/pages/home/noReleaseAmount.vue +++ b/pages/home/noReleaseAmount.vue @@ -118,12 +118,13 @@ const getHeaderData = async () => { const getList = async (mescroll) => { const opt = filterOptions[filterIndex.value] || filterOptions[0]; + const transactionType = + isIncomeFilter.value && incomeTabValue.value ? incomeTabValue.value : opt.value; const res = await api .agentEarningsIncomeDetailsPage({ pageNo: mescroll.num, pageSize: mescroll.size, - ...(opt.value ? { transactionType: opt.value } : {}), - ...(isIncomeFilter.value && incomeTabValue.value ? { sourceType: incomeTabValue.value } : {}), + ...(transactionType ? { transactionType } : {}), }) .catch(() => ({ code: -1 })); @@ -276,25 +277,27 @@ onShow(() => { .income-tabs { display: flex; align-items: center; - justify-content: space-around; - padding: 0 0 20rpx; + justify-content: flex-start; + gap: 12rpx; } .income-tab { - width: 146rpx; - height: 62rpx; - line-height: 62rpx; - text-align: center; + width: 132rpx; + padding: 5rpx 0; + display: flex; + align-items: center; + justify-content: center; background: #fff; border-radius: 14rpx; overflow: hidden; - font-size: 24rpx; - font-weight: 400; + font-size: 22rpx; color: #111111; border: 2rpx solid #d9d9d9; box-sizing: border-box; } + + .income-tab.active { color: #fb4d32; background: #ffefe5;