feat(user): 新增收货地址管理及售后申请页面
- 新增地址类型定义,增强前端地址数据结构 - 新增地址编辑页面,支持地址智能识别和定位选点功能 - 地址编辑支持省市区选择及默认地址设置 - 新增地址列表页面,支持地址展示、删除、编辑和选择功能 - 实现售后申请页面,支持选择售后类型和退款原因 - 售后申请支持商品选择、退款金额计算和凭证上传 - 新增售后详情页面,支持售后状态展示及申请取消 - 优化页面加载和用户交互体验,增加错误提示和权限处理
This commit is contained in:
@@ -29,10 +29,10 @@ const IndexPage: React.FC = () => {
|
||||
// 功能入口(8个)
|
||||
const featureEntries = [
|
||||
{ icon: '🎁', label: '全部商品', url: '/pages/shop/index' },
|
||||
{ icon: '🎯', label: '限时秒杀', url: '/pages/shop/seckill-list/index' },
|
||||
{ icon: '🤝', label: '收货地址', url: '/pages/user/address-list' },
|
||||
{ icon: '🎫', label: '领券中心', url: '/pages/index/coupon-center/index' },
|
||||
{ icon: '⭐', label: '我的收藏', url: '/pages/user/favorite-list/index' },
|
||||
{ icon: '👑', label: '会员中心', url: '/pages/user/member/index' },
|
||||
{ icon: '👑', label: '关于我们', url: '/pages/user/about/index' },
|
||||
{ icon: '💰', label: '积分商城', url: '/pages/points/index' },
|
||||
{ icon: '🏪', label: '门店信息', url: '/pages/store/list/index' },
|
||||
{ icon: '❓', label: '帮助中心', url: '/pages/user/help-center/index' },
|
||||
@@ -86,7 +86,7 @@ const IndexPage: React.FC = () => {
|
||||
}
|
||||
|
||||
// tabBar 页面列表
|
||||
const tabBarPages = ['/pages/index/index', '/pages/shop/index', '/pages/user/user']
|
||||
const tabBarPages = ['/pages/index/index', '/pages/shop/index', '/pages/order/list', '/pages/user/user']
|
||||
|
||||
const handleFeatureClick = (url: string) => {
|
||||
if (tabBarPages.includes(url)) {
|
||||
@@ -231,7 +231,7 @@ const IndexPage: React.FC = () => {
|
||||
<Image
|
||||
style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }}
|
||||
src={item.image}
|
||||
mode='aspectFit'
|
||||
mode='aspectFill'
|
||||
/>
|
||||
) : (
|
||||
<View style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }} className='bg-gray-100 flex items-center justify-center'>
|
||||
@@ -239,20 +239,20 @@ const IndexPage: React.FC = () => {
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
<View className='p-2'>
|
||||
<Text className='text-sm text-gray-700 truncate block'>{item.goodsName || item.name}</Text>
|
||||
<View className='flex items-center mt-1'>
|
||||
<Price
|
||||
price={item.price || '0'}
|
||||
original={item.salePrice && item.salePrice !== item.price ? item.salePrice : undefined}
|
||||
size='small'
|
||||
loginMask
|
||||
/>
|
||||
<View className='p-2'>
|
||||
<Text className='text-sm text-gray-700 truncate block'>{item.goodsName || item.name}</Text>
|
||||
<View className='flex items-center mt-1'>
|
||||
<Price
|
||||
price={item.price || '0'}
|
||||
original={item.salePrice && item.salePrice !== item.price ? item.salePrice : undefined}
|
||||
size='small'
|
||||
loginMask
|
||||
/>
|
||||
</View>
|
||||
{item.sales !== undefined && item.sales > 0 && (
|
||||
<Text className='text-xs text-gray-400 mt-1'>已售 {item.sales}</Text>
|
||||
)}
|
||||
</View>
|
||||
{item.sales !== undefined && item.sales > 0 && (
|
||||
<Text className='text-xs text-gray-400 mt-1'>已售 {item.sales}</Text>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
))
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user