Merge branch 'trunk' into feat/partner

* trunk:
  feat: update
  feat: update
  feat: search city
  feat: s
  新页面
  feat: biz-service
This commit is contained in:
eleanor.mao
2025-05-20 23:45:59 +08:00
17 changed files with 995 additions and 927 deletions

View File

@ -33,9 +33,12 @@ export const calcDistance = (distance: number, fractionDigits = 2) => {
}
return '999km';
};
export const getCurrentCityCode = () => {
return selectLocation(store.getState()).cityCode;
};
export const getCurrentCity = () => {
const cityCode = selectLocation(store.getState()).cityCode;
const cityCode = getCurrentCityCode();
return CITY_CODE_TO_NAME_MAP.get(cityCode) || '';
};