mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-07 13:15:44 +08:00
@@ -43,8 +43,7 @@ function CustomPage(props) {
|
||||
const loginRef = useRef()
|
||||
const router = useRouter()
|
||||
const { location, address } = useSelector((state) => state.user)
|
||||
const nearbyText =
|
||||
location?.city || location?.province || address?.city || ''
|
||||
const nearbyText = address?.city || location?.city || ''
|
||||
|
||||
useEffect(() => {
|
||||
fetch()
|
||||
|
||||
@@ -46,11 +46,7 @@ function WgtHomeHeader(props) {
|
||||
}
|
||||
}}
|
||||
>
|
||||
<View className='address'>
|
||||
{location?.address ||
|
||||
[location?.province, location?.city, location?.district].filter(Boolean).join('') ||
|
||||
'选择地区'}
|
||||
</View>
|
||||
<View className='address'>{location?.address || '北京市北京市昌平区'}</View>
|
||||
<Text className='iconfont icon-qianwang-01'></Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
@@ -90,9 +90,7 @@ function Home() {
|
||||
|
||||
const showAdv = useSelector((member) => member.user.showAdv)
|
||||
const { location, address } = useSelector((state) => state.user)
|
||||
/** 导航栏城市:优先跟随 LBS 定位,与「选择商家」页一致;勿用收货地址盖住当前定位 */
|
||||
const nearbyText =
|
||||
location?.city || location?.province || address?.city || ''
|
||||
const nearbyText = address?.city || location?.city || ''
|
||||
const { setNavigationBarTitle } = useNavigation()
|
||||
const { updateAddress } = useLocation()
|
||||
const locationKeyRef = useRef('')
|
||||
|
||||
Reference in New Issue
Block a user