feat(shop): 新增文章管理功能
- 添加文章列表页面,支持搜索、分页加载、下拉刷新等功能 - 实现文章详情查看、编辑和删除功能- 新增文章发布页面,支持富文本编辑和图片上传 - 优化地址管理页面,统一底部按钮样式 - 新增 FixedButton 组件用于底部固定按钮
This commit is contained in:
@@ -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'})} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user