故事详情排版修改
This commit is contained in:
@@ -102,7 +102,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: './account/center',
|
redirect: '/account',
|
||||||
},
|
},
|
||||||
/* {
|
/* {
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
ModalForm,
|
ModalForm,
|
||||||
|
ProFormDatePicker,
|
||||||
ProFormDateTimePicker,
|
ProFormDateTimePicker,
|
||||||
ProFormSelect,
|
ProFormSelect,
|
||||||
ProFormText,
|
ProFormText,
|
||||||
@@ -11,6 +12,7 @@ import ImgCrop from 'antd-img-crop';
|
|||||||
import type { StoryType } from '../data.d';
|
import type { StoryType } from '../data.d';
|
||||||
import useStyles from '../style.style';
|
import useStyles from '../style.style';
|
||||||
import { defaultIcons } from '@/commonConstant/commonConstant';
|
import { defaultIcons } from '@/commonConstant/commonConstant';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
type OperationModalProps = {
|
type OperationModalProps = {
|
||||||
done: boolean;
|
done: boolean;
|
||||||
@@ -78,7 +80,7 @@ const OperationModal: FC<OperationModalProps> = (props) => {
|
|||||||
message.error('获取 Canvas 绘图上下文失败');
|
message.error('获取 Canvas 绘图上下文失败');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
img.onerror = () => {
|
img.onerror = () => {
|
||||||
message.error('图像加载失败');
|
message.error('图像加载失败');
|
||||||
@@ -290,8 +292,8 @@ const OperationModal: FC<OperationModalProps> = (props) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* 其他表单项 */}
|
{/* 其他表单项 */}
|
||||||
<ProFormDateTimePicker
|
<ProFormDatePicker
|
||||||
name="createTime"
|
name="storyTime"
|
||||||
label="开始时间"
|
label="开始时间"
|
||||||
rules={[
|
rules={[
|
||||||
{
|
{
|
||||||
@@ -303,6 +305,7 @@ const OperationModal: FC<OperationModalProps> = (props) => {
|
|||||||
style: {
|
style: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
},
|
},
|
||||||
|
maxDate: dayjs().endOf('day'),
|
||||||
}}
|
}}
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -55,12 +55,23 @@ const useStyles = createStyles(({ token }) => {
|
|||||||
[`@media screen and (max-width: ${token.screenXS}px)`]: {
|
[`@media screen and (max-width: ${token.screenXS}px)`]: {
|
||||||
marginLeft: '0',
|
marginLeft: '0',
|
||||||
'& > div': {
|
'& > div': {
|
||||||
|
display: 'block',
|
||||||
|
marginBottom: '8px',
|
||||||
|
marginLeft: '0',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
[`@media screen and (max-width: ${token.screenSM}px)`]: {
|
||||||
|
'& > div': {
|
||||||
|
display: 'block',
|
||||||
|
marginBottom: '8px',
|
||||||
marginLeft: '0',
|
marginLeft: '0',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
[`@media screen and (max-width: ${token.screenMD}px)`]: {
|
[`@media screen and (max-width: ${token.screenMD}px)`]: {
|
||||||
'& > div': {
|
'& > div': {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
|
marginBottom: '8px',
|
||||||
|
marginLeft: '0',
|
||||||
},
|
},
|
||||||
'& > div:last-child': {
|
'& > div:last-child': {
|
||||||
top: '0',
|
top: '0',
|
||||||
@@ -70,6 +81,8 @@ const useStyles = createStyles(({ token }) => {
|
|||||||
[`@media screen and (max-width: ${token.screenLG}px) and (min-width: @screen-md)`]: {
|
[`@media screen and (max-width: ${token.screenLG}px) and (min-width: @screen-md)`]: {
|
||||||
'& > div': {
|
'& > div': {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
|
marginBottom: '8px',
|
||||||
|
marginLeft: '0',
|
||||||
},
|
},
|
||||||
'& > div:last-child': {
|
'& > div:last-child': {
|
||||||
top: '0',
|
top: '0',
|
||||||
@@ -99,6 +112,12 @@ const useStyles = createStyles(({ token }) => {
|
|||||||
verticalAlign: 'middle',
|
verticalAlign: 'middle',
|
||||||
'> span': { lineHeight: '20px' },
|
'> span': { lineHeight: '20px' },
|
||||||
'> p': { marginTop: '4px', marginBottom: '0', lineHeight: '22px' },
|
'> p': { marginTop: '4px', marginBottom: '0', lineHeight: '22px' },
|
||||||
|
[`@media screen and (max-width: ${token.screenXS}px)`]: {
|
||||||
|
display: 'block',
|
||||||
|
marginBottom: '8px',
|
||||||
|
marginLeft: '0',
|
||||||
|
width: '100%',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
extraContentSearch: {
|
extraContentSearch: {
|
||||||
width: '272px',
|
width: '272px',
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ const Login: React.FC = () => {
|
|||||||
// await fetchUserInfo();
|
// await fetchUserInfo();
|
||||||
localStorage.setItem('timeline_user', JSON.stringify(response.data))
|
localStorage.setItem('timeline_user', JSON.stringify(response.data))
|
||||||
const urlParams = new URL(window.location.href).searchParams;
|
const urlParams = new URL(window.location.href).searchParams;
|
||||||
window.location.href = urlParams.get('redirect') || '/';
|
window.location.href = urlParams.get('redirect')?.split('?redirect=')[1] || '/';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(response.message);
|
console.log(response.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user