v4.0.18版本提交
This commit is contained in:
@@ -21,6 +21,7 @@ import { toMoneyNumber } from '../../lib/money';
|
||||
import { maskPhone, toDialablePhone } from '../../lib/phone';
|
||||
import { track } from '../../lib/analytics';
|
||||
import {
|
||||
fullStoreAddress,
|
||||
storeCategoryTags,
|
||||
storeStarCount,
|
||||
type StoreCategoryTreeNode,
|
||||
@@ -115,8 +116,7 @@ function envPhotoUrls(store: Store) {
|
||||
}
|
||||
|
||||
function fullAddress(store: Store) {
|
||||
const city = store.cityName || store.city || '';
|
||||
return `${store.province || ''}${city}${store.district || ''}${store.address || ''}`.trim();
|
||||
return fullStoreAddress(store, '');
|
||||
}
|
||||
|
||||
function pickStoreId(raw?: string | null) {
|
||||
@@ -447,8 +447,7 @@ export default function StoreDetailPage() {
|
||||
|
||||
<View className="store-detail-row">
|
||||
<Text className="store-detail-meta store-detail-meta--flex">
|
||||
{store.district ? `${store.district} · ` : ''}
|
||||
{store.address || '地址待完善'}
|
||||
{fullStoreAddress(store)}
|
||||
</Text>
|
||||
<Text className="store-detail-action" onClick={openMap}>
|
||||
导航
|
||||
|
||||
Reference in New Issue
Block a user