Commit ef23aaa2 authored by 张烨's avatar 张烨

style: 优化样式

parent b27be4ff
...@@ -5,6 +5,7 @@ import { ...@@ -5,6 +5,7 @@ import {
getSevenParamsByTransType, getSevenParamsByTransType,
postSevenParams, postSevenParams,
} from '../../../services/appConfig/api'; } from '../../../services/appConfig/api';
import styles from './otherConfig.less';
const SevenParams = props => { const SevenParams = props => {
const { Option } = Select; const { Option } = Select;
...@@ -204,13 +205,12 @@ const SevenParams = props => { ...@@ -204,13 +205,12 @@ const SevenParams = props => {
}, []); }, []);
return ( return (
<div style={{ width: '100%' }} className={props.cls}> <div style={{ width: '100%', paddingLeft: '15px' }} className={props.cls}>
<p>七参数配置:</p> <p className={styles.title}>七参数配置:</p>
<Form <Form
form={sevenForm} form={sevenForm}
labelCol={{ span: 2, offset: 2 }} labelCol={{ span: 2, offset: 0 }}
wrapperCol={{ span: 16, offset: 1 }} wrapperCol={{ span: 12, offset: 0 }}
style={{ height: 'calc(100vh - 300px)', overflow: 'auto' }}
onFinish={submitSevenParams} onFinish={submitSevenParams}
initialValues={{ ellipseType: '1', transType: '1' }} initialValues={{ ellipseType: '1', transType: '1' }}
> >
...@@ -328,7 +328,7 @@ const SevenParams = props => { ...@@ -328,7 +328,7 @@ const SevenParams = props => {
)} )}
<Form.Item wrapperCol={{ offset: 12 }}> <Form.Item wrapperCol={{ offset: 12 }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
提交 更新七参数
</Button> </Button>
</Form.Item> </Form.Item>
</Form> </Form>
......
...@@ -5,7 +5,7 @@ import { Switch, Button, Message, Spin, Modal } from 'antd'; ...@@ -5,7 +5,7 @@ import { Switch, Button, Message, Spin, Modal } from 'antd';
import BaseForm from '@/components/BaseForm/index'; import BaseForm from '@/components/BaseForm/index';
import { getApkNameAndDate, SaveMobileApk } from '@/services/appConfig/api'; import { getApkNameAndDate, SaveMobileApk } from '@/services/appConfig/api';
import styles from './VersionPublish.less'; import styles from './otherConfig.less';
// const JSON_BASE = `${ // const JSON_BASE = `${
// location.origin // location.origin
...@@ -145,8 +145,8 @@ export default () => { ...@@ -145,8 +145,8 @@ export default () => {
<Spin /> <Spin />
) : ( ) : (
<> <>
<p>版本发布:</p>
<div className="base-info"> <div className="base-info">
<p className={styles.title}>apk版本管理:</p>
<div className={styles.row}> <div className={styles.row}>
<div className={styles.label}>当前包名:</div> <div className={styles.label}>当前包名:</div>
<div className="value"> <div className="value">
...@@ -177,7 +177,11 @@ export default () => { ...@@ -177,7 +177,11 @@ export default () => {
<Switch checked disabled /> <Switch checked disabled />
</div> </div>
</div> </div>
<Button type="primary" onClick={() => setShowModal(true)}> <Button
style={{ marginLeft: '40px' }}
type="primary"
onClick={() => setShowModal(true)}
>
更新 更新
</Button> </Button>
</div> </div>
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
min-height: 300px; min-height: 300px;
} }
.title{
font-weight: bold;
}
.VersionPublish { .VersionPublish {
display: flex; display: flex;
padding: 0 15px; padding: 0 15px;
...@@ -16,6 +20,7 @@ ...@@ -16,6 +20,7 @@
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 15px; margin-bottom: 15px;
padding-left: 40px;
} }
.label { .label {
......
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