Commit 19e19115 authored by 涂伟's avatar 涂伟

fix: 'mobile配置优化,新增h5登录页面配置'

parent a1f272a9
Pipeline #74226 passed with stages
......@@ -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}>
提交
......
......@@ -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' }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment