feat: 修改新增参数名称
This commit is contained in:
@@ -118,12 +118,13 @@ const getHeaderData = async () => {
|
|||||||
|
|
||||||
const getList = async (mescroll) => {
|
const getList = async (mescroll) => {
|
||||||
const opt = filterOptions[filterIndex.value] || filterOptions[0];
|
const opt = filterOptions[filterIndex.value] || filterOptions[0];
|
||||||
|
const transactionType =
|
||||||
|
isIncomeFilter.value && incomeTabValue.value ? incomeTabValue.value : opt.value;
|
||||||
const res = await api
|
const res = await api
|
||||||
.agentEarningsIncomeDetailsPage({
|
.agentEarningsIncomeDetailsPage({
|
||||||
pageNo: mescroll.num,
|
pageNo: mescroll.num,
|
||||||
pageSize: mescroll.size,
|
pageSize: mescroll.size,
|
||||||
...(opt.value ? { transactionType: opt.value } : {}),
|
...(transactionType ? { transactionType } : {}),
|
||||||
...(isIncomeFilter.value && incomeTabValue.value ? { sourceType: incomeTabValue.value } : {}),
|
|
||||||
})
|
})
|
||||||
.catch(() => ({ code: -1 }));
|
.catch(() => ({ code: -1 }));
|
||||||
|
|
||||||
@@ -276,25 +277,27 @@ onShow(() => {
|
|||||||
.income-tabs {
|
.income-tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: flex-start;
|
||||||
padding: 0 0 20rpx;
|
gap: 12rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.income-tab {
|
.income-tab {
|
||||||
width: 146rpx;
|
width: 132rpx;
|
||||||
height: 62rpx;
|
padding: 5rpx 0;
|
||||||
line-height: 62rpx;
|
display: flex;
|
||||||
text-align: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 14rpx;
|
border-radius: 14rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 24rpx;
|
font-size: 22rpx;
|
||||||
font-weight: 400;
|
|
||||||
color: #111111;
|
color: #111111;
|
||||||
border: 2rpx solid #d9d9d9;
|
border: 2rpx solid #d9d9d9;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.income-tab.active {
|
.income-tab.active {
|
||||||
color: #fb4d32;
|
color: #fb4d32;
|
||||||
background: #ffefe5;
|
background: #ffefe5;
|
||||||
|
|||||||
Reference in New Issue
Block a user