|
|
@@ -122,24 +122,24 @@ const state = reactive<FindPartnerPopupState>({
|
|
|
labelKey: 'home.findPartner.sections.price.tags.unlimited',
|
|
|
},
|
|
|
{
|
|
|
- id: '0-1000',
|
|
|
- labelKey: 'home.findPartner.sections.price.tags.range_0_1000',
|
|
|
+ id: '0-10',
|
|
|
+ labelKey: 'home.findPartner.sections.price.tags.range_0_10',
|
|
|
},
|
|
|
{
|
|
|
- id: '1000-1500',
|
|
|
- labelKey: 'home.findPartner.sections.price.tags.range_1000_1500',
|
|
|
+ id: '10-15',
|
|
|
+ labelKey: 'home.findPartner.sections.price.tags.range_10_15',
|
|
|
},
|
|
|
{
|
|
|
- id: '1500-2500',
|
|
|
- labelKey: 'home.findPartner.sections.price.tags.range_1500_2500',
|
|
|
+ id: '15-25',
|
|
|
+ labelKey: 'home.findPartner.sections.price.tags.range_15_25',
|
|
|
},
|
|
|
{
|
|
|
- id: '2500-5000',
|
|
|
- labelKey: 'home.findPartner.sections.price.tags.range_2500_5000',
|
|
|
+ id: '25-50',
|
|
|
+ labelKey: 'home.findPartner.sections.price.tags.range_25_50',
|
|
|
},
|
|
|
{
|
|
|
- id: '5000+',
|
|
|
- labelKey: 'home.findPartner.sections.price.tags.range_5000_plus',
|
|
|
+ id: 'over50',
|
|
|
+ labelKey: 'home.findPartner.sections.price.tags.range_over50',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -199,18 +199,18 @@ const mapRegionToBackend = (id?: string): string => {
|
|
|
}
|
|
|
|
|
|
const mapPriceToBackend = (id?: string): number => {
|
|
|
- // 价格区间:-1:无限制,0:0-1000,1:1000-1500,2:1500-2500,3:2500-5000,4:5000以上
|
|
|
+ // 价格区间:-1:无限制,0:[0,10],1:(10,15],2:(15,25],3:(25,50],4:over50
|
|
|
if (!id || id === 'unlimited')
|
|
|
return -1
|
|
|
- if (id === '0-1000')
|
|
|
+ if (id === '0-10')
|
|
|
return 0
|
|
|
- if (id === '1000-1500')
|
|
|
+ if (id === '10-15')
|
|
|
return 1
|
|
|
- if (id === '1500-2500')
|
|
|
+ if (id === '15-25')
|
|
|
return 2
|
|
|
- if (id === '2500-5000')
|
|
|
+ if (id === '25-50')
|
|
|
return 3
|
|
|
- if (id === '5000+')
|
|
|
+ if (id === 'over50')
|
|
|
return 4
|
|
|
return -1
|
|
|
}
|