feat(pages): 实现商品分类页面及优化轮播图功能
- 新增商品分类页面,包含左侧导航和右侧商品列表 - 实现分类切换和商品展示功能 - 添加骨架屏加载效果和空状态处理 - 优化首页轮播图组件,支持自动播放和触摸滑动 - 调整轮播图高度默认值为300px- 移除旧的热卖商品逻辑,改为获取推荐文章 - 修复医生申请页面用户类型选择功能 - 更新页面标题文本内容 - 添加网站配置获取hook
This commit is contained in:
@@ -400,20 +400,8 @@ const AddUserAddress = () => {
|
|||||||
</CellGroup>
|
</CellGroup>
|
||||||
<View className={'h-3 bg-gray-100'}></View>
|
<View className={'h-3 bg-gray-100'}></View>
|
||||||
<CellGroup style={{padding: '4px 0'}}>
|
<CellGroup style={{padding: '4px 0'}}>
|
||||||
{FormData?.type}
|
<Form.Item label="姓名" name="realName" required>
|
||||||
<Form.Item label="用户类型" name="type" initialValue={FormData?.type} required>
|
<Input placeholder={'请填写真实姓名'} value={FormData?.realName || ''} />
|
||||||
<Radio.Group defaultValue="1" direction="horizontal" value={FormData?.type}>
|
|
||||||
{userType?.map((item) => (
|
|
||||||
<Radio key={item.value} value={item.value} onChange={() => {
|
|
||||||
setFormData({
|
|
||||||
...FormData,
|
|
||||||
type: item.value
|
|
||||||
})
|
|
||||||
}}>
|
|
||||||
{item.label}
|
|
||||||
</Radio>
|
|
||||||
))}
|
|
||||||
</Radio.Group>
|
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="性别" name="sex" required>
|
<Form.Item label="性别" name="sex" required>
|
||||||
<Radio.Group defaultValue="0" direction="horizontal">
|
<Radio.Group defaultValue="0" direction="horizontal">
|
||||||
@@ -425,20 +413,31 @@ const AddUserAddress = () => {
|
|||||||
</Radio>
|
</Radio>
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="真实姓名" name="realName">
|
<Form.Item label="年龄" name="age" initialValue={18}>
|
||||||
<Input placeholder={'请填写真实姓名'} value={FormData?.realName || ''} />
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item label="年龄" name="age" initialValue={18} style={{
|
|
||||||
display: 'none'
|
|
||||||
}}>
|
|
||||||
<ConfigProvider theme={customTheme}>
|
<ConfigProvider theme={customTheme}>
|
||||||
<InputNumber defaultValue={1} />
|
<InputNumber value={FormData?.age || 18} />
|
||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
<InputNumber
|
|
||||||
value={FormData?.age || 0}
|
|
||||||
/>
|
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{FormData?.type == 1 && (
|
<Form.Item label="用户类型" name="type" initialValue={FormData?.type} required>
|
||||||
|
<Radio.Group
|
||||||
|
defaultValue="1"
|
||||||
|
direction="horizontal"
|
||||||
|
value={FormData?.type}
|
||||||
|
onChange={(value: any) => {
|
||||||
|
setFormData({
|
||||||
|
...FormData,
|
||||||
|
type: value
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{userType?.map((item) => (
|
||||||
|
<Radio key={item.value} value={item.value}>
|
||||||
|
{item.label}
|
||||||
|
</Radio>
|
||||||
|
))}
|
||||||
|
</Radio.Group>
|
||||||
|
</Form.Item>
|
||||||
|
{FormData?.type == 0 && (
|
||||||
<Form.Item label="个人签名" name="introduction">
|
<Form.Item label="个人签名" name="introduction">
|
||||||
<TextArea
|
<TextArea
|
||||||
placeholder={'个人签名'}
|
placeholder={'个人签名'}
|
||||||
@@ -452,7 +451,7 @@ const AddUserAddress = () => {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
{
|
{
|
||||||
FormData?.type == 2 && (
|
FormData?.type == 1 && (
|
||||||
<Form.Item label="医生简介" name="introduction">
|
<Form.Item label="医生简介" name="introduction">
|
||||||
<TextArea
|
<TextArea
|
||||||
placeholder={'医生简介'}
|
placeholder={'医生简介'}
|
||||||
|
|||||||
Reference in New Issue
Block a user