feat(shop): 新增文章管理功能

- 添加文章列表页面,支持搜索、分页加载、下拉刷新等功能
- 实现文章详情查看、编辑和删除功能- 新增文章发布页面,支持富文本编辑和图片上传
- 优化地址管理页面,统一底部按钮样式
- 新增 FixedButton 组件用于底部固定按钮
This commit is contained in:
2025-08-13 02:54:28 +08:00
parent 9dabda3d47
commit 0e457f66d8
8 changed files with 686 additions and 189 deletions

View File

@@ -0,0 +1,26 @@
import {View} from '@tarojs/components';
import {Button} from '@nutui/nutui-react-taro'
function FixedButton({text, onClick, icon}) {
return (
<>
{/* 底部安全区域占位 */
}
<View className="h-20 w-full"></View>
<View
className="fixed z-50 bottom-0 left-0 right-0 bg-white border-t border-gray-200 px-4 py-3 safe-area-bottom">
<Button
type="success"
size="large"
block
icon={icon}
className="px-6"
onClick={onClick}>
{text || '新增'}
</Button>
</View>
</>
)
}
export default FixedButton;