diff --git a/src/main.jsx b/src/main.jsx index 4a058bf..0167a37 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -53,7 +53,7 @@ const router = createBrowserRouter([ ReactDOM.createRoot(document.getElementById('root')).render( // - +
Loading...
} />
diff --git a/src/views/AccountProfile.jsx b/src/views/AccountProfile.jsx index 41fda6d..0b6e015 100644 --- a/src/views/AccountProfile.jsx +++ b/src/views/AccountProfile.jsx @@ -1,6 +1,6 @@ import { useEffect } from 'react' import { - Row, Col, Space, Descriptions, Avatar, Radio, Tag + Row, Col, Space, Descriptions, Avatar, Tag } from 'antd' import { UserOutlined @@ -22,7 +22,7 @@ function AccountProfile() { {loginUser.username.substring(1)}{loginUser.username}​ {loginUser.accountList?.map(a => { return ( - } bordered={false}>{a} + } bordered={false}>{a.OPI_Code} )})} {loginUser.mobile} diff --git a/src/views/DingdingQRCode.jsx b/src/views/DingdingQRCode.jsx index 590226f..d4a9395 100644 --- a/src/views/DingdingQRCode.jsx +++ b/src/views/DingdingQRCode.jsx @@ -46,7 +46,7 @@ function DingdingQRCode() { loginUser.mobile = '+' + json.result.stateCode + '-' + json.result.mobile loginUser.email = json.result.email loginUser.openId = json.result.openId - console.info(JSON.stringify(loginUser)) + loginUser.accountList = json.result.accountlist navigate('/account/profile') } else { setLoginStatus(403) diff --git a/src/views/OrderFollow.jsx b/src/views/OrderFollow.jsx index 71ff46e..237b96a 100644 --- a/src/views/OrderFollow.jsx +++ b/src/views/OrderFollow.jsx @@ -7,13 +7,13 @@ import { NavLink } from 'react-router-dom' import dayjs from 'dayjs' import { Conditional } from '@/components/Conditional' import { useAuthContext } from '@/stores/AuthContext' -import { prepareUrl } from '@/utils/commons' +import { prepareUrl, isNotEmpty } from '@/utils/commons' const { RangePicker } = DatePicker const AdvanceSearchForm = memo(function ({ onSubmit }) { - const DATE_PRESETS = [ + const DATE_RANGE_PRESETS = [ { label: '本周', value: [dayjs().startOf('w'), dayjs().endOf('w')], @@ -60,23 +60,22 @@ const AdvanceSearchForm = memo(function ({ onSubmit }) { - - + + - - + + - - + + - - +