Commit fa22f10d authored by 涂伟's avatar 涂伟

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

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