Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
19e19115
Commit
19e19115
authored
Jun 14, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 'mobile配置优化,新增h5登录页面配置'
parent
a1f272a9
Pipeline
#74226
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
4 deletions
+50
-4
SiteConfig.jsx
src/pages/productCenter/mobileConfig/SiteConfig.jsx
+25
-2
addConfig.jsx
src/pages/productCenter/mobileConfig/addConfig.jsx
+25
-2
No files found.
src/pages/productCenter/mobileConfig/SiteConfig.jsx
View file @
19e19115
...
...
@@ -9,6 +9,10 @@ const SiteConfig = props => {
const
{
miniTitle
,
submitCallback
,
addCallback
,
parentKey
,
clientName
,
singleList
}
=
props
;
const
[
config
,
setConfig
]
=
useState
(
''
);
// 网站配置信息
const
[
loginList
,
setLoginList
]
=
useState
([{
text
:
'默认界面'
,
value
:
'default'
}]);
// 系统登陆页
const
[
h5LoginList
,
setH5LoginList
]
=
useState
([
{
text
:
'h5默认界面'
,
value
:
'default'
},
{
text
:
'江西登录界面'
,
value
:
'jiangxi'
},
]);
// H5登陆页
const
[
styleList
,
setStyleList
]
=
useState
([
{
text
:
'熊猫产品'
,
value
:
'default'
},
{
text
:
'通用项目'
,
value
:
'project'
},
...
...
@@ -167,7 +171,7 @@ const SiteConfig = props => {
</
Item
>
<
Item
label=
"登陆页面:"
label=
"
APP
登陆页面:"
name=
"loginTemplate"
rules=
{
[
{
...
...
@@ -186,6 +190,25 @@ const SiteConfig = props => {
</
Select
>
</
Item
>
<
Item
label=
"H5登陆页面:"
name=
"h5loginTemplate"
rules=
{
[
{
required
:
true
,
message
:
'请选择登陆页面'
,
},
]
}
>
<
Select
placeholder=
"请选择登陆页面"
>
{
h5LoginList
&&
h5LoginList
.
map
((
item
,
index
)
=>
(
<
Option
value=
{
item
.
value
}
key=
{
`item${index}`
}
>
{
item
.
text
}
</
Option
>
))
}
</
Select
>
</
Item
>
{
/* <Item
label="系统皮肤:"
name="theme"
rules={[
...
...
@@ -228,7 +251,7 @@ const SiteConfig = props => {
<Radio value>是</Radio>
<Radio value={false}>否</Radio>
</Radio.Group>
</
Item
>
</Item>
*/
}
<
Item
wrapperCol=
{
{
span
:
6
,
offset
:
7
}
}
>
<
Button
type=
"primary"
onClick=
{
submit
}
>
提交
...
...
src/pages/productCenter/mobileConfig/addConfig.jsx
View file @
19e19115
...
...
@@ -9,6 +9,10 @@ const AddConfig = props => {
console
.
log
(
subType
,
'ubType'
);
const
[
config
,
setConfig
]
=
useState
(
''
);
// 网站配置信息
const
[
loginList
,
setLoginList
]
=
useState
([{
text
:
'默认界面'
,
value
:
'default'
}]);
// 系统登陆页
const
[
h5LoginList
,
setH5LoginList
]
=
useState
([
{
text
:
'h5默认界面'
,
value
:
'default'
},
{
text
:
'江西登录界面'
,
value
:
'jiangxi'
},
]);
// H5登陆页
const
[
styleList
,
setStyleList
]
=
useState
([
{
text
:
'熊猫产品'
,
value
:
'default'
},
{
text
:
'通用项目'
,
value
:
'project'
},
...
...
@@ -204,7 +208,7 @@ const AddConfig = props => {
</
Item
>
<
Item
label=
"登陆页面:"
label=
"
APP
登陆页面:"
name=
"loginTemplate"
rules=
{
[
{
...
...
@@ -223,6 +227,25 @@ const AddConfig = props => {
</
Select
>
</
Item
>
<
Item
label=
"H5登陆页面:"
name=
"h5loginTemplate"
rules=
{
[
{
required
:
true
,
message
:
'请选择登陆页面'
,
},
]
}
>
<
Select
placeholder=
"请选择登陆页面"
>
{
h5LoginList
&&
h5LoginList
.
map
((
item
,
index
)
=>
(
<
Option
value=
{
item
.
value
}
key=
{
`item${index}`
}
>
{
item
.
text
}
</
Option
>
))
}
</
Select
>
</
Item
>
{
/* <Item
label="系统皮肤:"
name="theme"
rules={[
...
...
@@ -265,7 +288,7 @@ const AddConfig = props => {
<Radio value>是</Radio>
<Radio value={false}>否</Radio>
</Radio.Group>
</
Item
>
</Item>
*/
}
</
Form
>
</
div
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment