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

@@ -5,6 +5,7 @@ import {Dongdong, ArrowRight, CheckNormal, Checked} from '@nutui/icons-react-tar
import {View} from '@tarojs/components'
import {ShopUserAddress} from "@/api/shop/shopUserAddress/model";
import {listShopUserAddress, removeShopUserAddress, updateShopUserAddress} from "@/api/shop/shopUserAddress";
import FixedButton from "@/components/FixedButton";
const Address = () => {
const [list, setList] = useState<ShopUserAddress[]>([])
@@ -144,17 +145,8 @@ const Address = () => {
/>
</Cell.Group>
))}
<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
className="px-6"
onClick={() => Taro.navigateTo({url: '/user/address/add'})}>
</Button>
</View>
{/* 底部浮动按钮 */}
<FixedButton text={'新增地址'} onClick={() => Taro.navigateTo({url: '/user/address/add'})} />
</>
);
};