feat(user): 新增收货地址管理及售后申请页面
- 新增地址类型定义,增强前端地址数据结构 - 新增地址编辑页面,支持地址智能识别和定位选点功能 - 地址编辑支持省市区选择及默认地址设置 - 新增地址列表页面,支持地址展示、删除、编辑和选择功能 - 实现售后申请页面,支持选择售后类型和退款原因 - 售后申请支持商品选择、退款金额计算和凭证上传 - 新增售后详情页面,支持售后状态展示及申请取消 - 优化页面加载和用户交互体验,增加错误提示和权限处理
This commit is contained in:
43
src_bak/components/common/FixedButton/index.tsx
Normal file
43
src_bak/components/common/FixedButton/index.tsx
Normal file
@@ -0,0 +1,43 @@
|
||||
import React from 'react'
|
||||
import { View } from '@tarojs/components'
|
||||
import { Button } from '@nutui/nutui-react-taro'
|
||||
|
||||
interface FixedButtonProps {
|
||||
text?: string
|
||||
onClick?: () => void
|
||||
icon?: React.ReactNode
|
||||
disabled?: boolean
|
||||
background?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 底部固定按钮组件
|
||||
* 用于地址列表"新增地址"、地址编辑"保存"等底部固定操作
|
||||
*/
|
||||
const FixedButton: React.FC<FixedButtonProps> = ({ text, onClick, icon, disabled, background }) => {
|
||||
return (
|
||||
<>
|
||||
{/* 底部安全区域占位 */}
|
||||
<View className="h-20 w-full" />
|
||||
<View
|
||||
className="z-50 bg-white border-t border-gray-200 px-4 py-3"
|
||||
style={{ paddingBottom: '12px', flexShrink: 0 }}
|
||||
>
|
||||
<Button
|
||||
type="primary"
|
||||
style={{ background }}
|
||||
size="large"
|
||||
block
|
||||
icon={icon}
|
||||
disabled={disabled}
|
||||
className="px-6"
|
||||
onClick={onClick}
|
||||
>
|
||||
{text || '确定'}
|
||||
</Button>
|
||||
</View>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default FixedButton
|
||||
Reference in New Issue
Block a user