Merge branch 'trunk' into feat/partner
* trunk: feat: update feat: update feat: search city feat: s 新页面 feat: biz-service
This commit is contained in:
@ -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) || '';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user