Commit fa22f10d authored by 涂伟's avatar 涂伟

fix: '移动端配置新增背景图和过渡页'

parent e518d624
...@@ -30,9 +30,11 @@ const tabNames: any = { ...@@ -30,9 +30,11 @@ const tabNames: any = {
logo: '项目logo', logo: '项目logo',
menu: '菜单图标', menu: '菜单图标',
CityTemp: '用户上传', CityTemp: '用户上传',
bootAnimation: '开机动画', // bootAnimation: '开机动画',
loginPageImage: '登录页', loginPageImage: '登录页',
homePageImage: '主页焦点图', homePageImage: '主页焦点图',
userPageImage: '背景图',
bootAnimation: '过渡页',
} }
function getBase64(file: File | Blob) { function getBase64(file: File | Blob) {
...@@ -378,11 +380,12 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -378,11 +380,12 @@ class PicturesWall extends React.Component<PicturesWallType> {
// 图片尺寸提示 // 图片尺寸提示
const picSize = { const picSize = {
bootAnimation: '1125*2436', bootAnimation: '1125*619',
loginPageImage: '1132*1194', loginPageImage: '1132*1194',
homePageImage: '1125*617' homePageImage: '1125*617',
userPageImage: '1125*2436',
} }
const picStr = 'bootAnimation,loginPageImage,homePageImage' const picStr = 'bootAnimation,loginPageImage,homePageImage,userPageImage'
const uploadButton = ( const uploadButton = (
<div> <div>
......
...@@ -41,7 +41,7 @@ import { ...@@ -41,7 +41,7 @@ import {
} from '@ant-design/icons'; } from '@ant-design/icons';
import styles from './maintenance.less'; import styles from './maintenance.less';
import RuleConfig from '@/components/RuleConfig'; import RuleConfig from '@/components/RuleConfig';
import { FormRender } from 'panda-xform'; // import { FormRender } from 'panda-xform';
import { import {
CM_XWBPlan_AccountTable, CM_XWBPlan_AccountTable,
NewCM_XWBPlan_feedbackTable, NewCM_XWBPlan_feedbackTable,
...@@ -1754,13 +1754,13 @@ const AddModal = props => { ...@@ -1754,13 +1754,13 @@ const AddModal = props => {
bodyStyle={{ height: '700px', overflow: 'scroll' }} bodyStyle={{ height: '700px', overflow: 'scroll' }}
footer={null} footer={null}
> >
<Spin spinning={loading}> {/* <Spin spinning={loading}>
{formJson ? ( {formJson ? (
<FormRender schemaValues={formJson} /> <FormRender schemaValues={formJson} />
) : ( ) : (
<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} style={{ marginTop: '300px' }} /> <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} style={{ marginTop: '300px' }} />
)} )}
</Spin> </Spin> */}
</Modal> </Modal>
</Drawer> </Drawer>
); );
......
...@@ -174,6 +174,32 @@ const SiteConfig = props => { ...@@ -174,6 +174,32 @@ const SiteConfig = props => {
<PicturesWall picType="homePageImage" /> <PicturesWall picType="homePageImage" />
</Item> </Item>
<Item
label="背景图:"
name="userPageImage"
rules={[
{
required: true,
message: '请选择背景图',
},
]}
>
<PicturesWall picType="userPageImage" />
</Item>
<Item
label="过渡页:"
name="bootAnimation"
rules={[
{
required: true,
message: '请选择过渡页',
},
]}
>
<PicturesWall picType="bootAnimation" />
</Item>
<Item <Item
label="APP登陆页面:" label="APP登陆页面:"
name="loginTemplate" name="loginTemplate"
......
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