Browse Source

commit

main
mac 5 months ago
parent
commit
32aeb7d197
  1. 4
      src/components/layout/Slider.tsx
  2. 10
      src/http/service.ts
  3. 24
      src/pages/record/assets/index.tsx
  4. 1
      src/pages/withdraw/index.tsx

4
src/components/layout/Slider.tsx

@ -32,10 +32,10 @@ const Slider = () => {
const handleLeftMenu = (id: number) => { const handleLeftMenu = (id: number) => {
switch (id) { switch (id) {
case 1: case 1:
window.open("https://m.swissquotecn.com/mt5")
window.open("https://www.metatrader4.com/zh/download")
break; break;
case 2: case 2:
window.open("https://m.swissquotecn.com/mt5")
window.open("https://www.metatrader4.com/zh/download")
break; break;
case 3: case 3:
push('/') push('/')

10
src/http/service.ts

@ -43,14 +43,18 @@ service.interceptors.response.use(
(res: any) => { (res: any) => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
if (data && data.code === 101) {
store.setToken('')
return data
}
if (data && data.code !== 0) { if (data && data.code !== 0) {
notification.warning({ notification.warning({
message: data.msg message: data.msg
}) })
} }
if (data && data.code === 101) {
store.setToken('')
}
return data; return data;
}, },
error => { error => {

24
src/pages/record/assets/index.tsx

@ -93,6 +93,10 @@ const AssetsRecords = () => {
title: '描述', title: '描述',
dataIndex: 'describe', dataIndex: 'describe',
}, },
{
title: '金额',
dataIndex: 'amount'
},
{ {
title: '剩余', title: '剩余',
dataIndex: 'balance', dataIndex: 'balance',
@ -100,6 +104,10 @@ const AssetsRecords = () => {
<span>${val}</span> <span>${val}</span>
) )
}, },
{
title: '状态',
dataIndex: 'status'
},
]} ]}
/> />
</div> </div>
@ -127,6 +135,10 @@ const AssetsRecords = () => {
title: '描述', title: '描述',
dataIndex: 'describe', dataIndex: 'describe',
}, },
{
title: '金额',
dataIndex: 'amount'
},
{ {
title: '剩余', title: '剩余',
dataIndex: 'balance', dataIndex: 'balance',
@ -134,6 +146,10 @@ const AssetsRecords = () => {
<span>${val}</span> <span>${val}</span>
) )
}, },
{
title: '状态',
dataIndex: 'status'
},
]} ]}
/> />
</div> </div>
@ -161,6 +177,10 @@ const AssetsRecords = () => {
title: '描述', title: '描述',
dataIndex: 'describe', dataIndex: 'describe',
}, },
{
title: '金额',
dataIndex: 'amount'
},
{ {
title: '剩余', title: '剩余',
dataIndex: 'balance', dataIndex: 'balance',
@ -168,6 +188,10 @@ const AssetsRecords = () => {
<span>${val}</span> <span>${val}</span>
) )
}, },
{
title: '状态',
dataIndex: 'status'
},
]} ]}
/> />
</div> </div>

1
src/pages/withdraw/index.tsx

@ -29,7 +29,6 @@ const Withdraw = () => {
return return
} }
return
const res: any = await http_withdraw({ const res: any = await http_withdraw({
...values, ...values,
receiving_account_id: Number(values.receiving_account_id) receiving_account_id: Number(values.receiving_account_id)

Loading…
Cancel
Save