Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
225f1927
提交
225f1927
authored
10月 23, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:邀请新好友获取积分
上级
31a25d86
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
43 行增加
和
0 行删除
+43
-0
index.tsx
src/pages/activityManage/recommendManage/index.tsx
+30
-0
router.tsx
src/router/router.tsx
+13
-0
没有找到文件。
src/pages/activityManage/recommendManage/index.tsx
0 → 100644
浏览文件 @
225f1927
import
React
from
'react'
;
import
{
Form
,
Switch
}
from
'antd'
;
const
RecommendManageView
=
()
=>
{
// 表单钩子
const
[
formRefs
]
=
Form
.
useForm
();
return
(
<>
<
div
className=
'recommend-form'
style=
{
{
width
:
'90%'
}
}
>
<
Form
labelCol=
{
{
span
:
3
}
}
wrapperCol=
{
{
offset
:
1
}
}
form=
{
formRefs
}
initialValues=
{
{
show
:
1
,
activityType
:
1
}
}
>
<
Form
.
Item
label=
'是否启用'
name=
'status'
rules=
{
[{
required
:
true
,
message
:
'请选择是否启用'
}]
}
valuePropName=
'checked'
>
<
Switch
/>
</
Form
.
Item
>
</
Form
>
</
div
>
</>
);
};
export
default
RecommendManageView
;
src/router/router.tsx
浏览文件 @
225f1927
...
@@ -39,6 +39,7 @@ import {
...
@@ -39,6 +39,7 @@ import {
BarChartOutlined
,
BarChartOutlined
,
FireOutlined
,
FireOutlined
,
InsertRowAboveOutlined
,
InsertRowAboveOutlined
,
WechatOutlined
,
}
from
'@ant-design/icons'
;
}
from
'@ant-design/icons'
;
import
{
Spin
}
from
'antd'
;
import
{
Spin
}
from
'antd'
;
...
@@ -172,6 +173,7 @@ import LimitInfo from '~/pages/systemManage/limitManage/limitInfo';
...
@@ -172,6 +173,7 @@ import LimitInfo from '~/pages/systemManage/limitManage/limitInfo';
import
CustomListDetail
from
'~/pages/customManage/customList/detail'
;
import
CustomListDetail
from
'~/pages/customManage/customList/detail'
;
import
ServiceCategoryDetail
from
'~/pages/categoryManage/serviceCategoryList/detail'
;
import
ServiceCategoryDetail
from
'~/pages/categoryManage/serviceCategoryList/detail'
;
import
RewardsManageView
from
'~/pages/activityManage/rewardsManage'
;
import
RewardsManageView
from
'~/pages/activityManage/rewardsManage'
;
import
RecommendManageView
from
'~/pages/activityManage/recommendManage'
;
const
AddressManageView
=
React
.
lazy
(()
=>
import
(
'~/pages/systemManage/addressManage'
));
const
AddressManageView
=
React
.
lazy
(()
=>
import
(
'~/pages/systemManage/addressManage'
));
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
...
@@ -528,6 +530,17 @@ export const routerList: Array<RouteObjectType> = [
...
@@ -528,6 +530,17 @@ export const routerList: Array<RouteObjectType> = [
icon
:
<
InsertRowAboveOutlined
/>,
icon
:
<
InsertRowAboveOutlined
/>,
},
},
},
},
{
path
:
'/activityManage/recommendManage'
,
element
:
withLoadingComponent
(<
RecommendManageView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
520
,
title
:
'推荐奖励'
,
icon
:
<
WechatOutlined
/>,
develop
:
true
,
},
},
],
],
},
},
{
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论