Browse Source

commit

main
mac 5 months ago
parent
commit
32aeb7d197
  1. 4
      src/components/layout/Slider.tsx
  2. 12
      src/http/service.ts
  3. 26
      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) => {
switch (id) {
case 1:
window.open("https://m.swissquotecn.com/mt5")
window.open("https://www.metatrader4.com/zh/download")
break;
case 2:
window.open("https://m.swissquotecn.com/mt5")
window.open("https://www.metatrader4.com/zh/download")
break;
case 3:
push('/')

12
src/http/service.ts

@ -18,7 +18,7 @@ service.interceptors.request.use(
timestamp: timestamp,
args: ps,
};
let sign = signGenerator(signData);
(config.headers as any).sign = sign;
(config.headers as any).timestamp = timestamp;
@ -43,14 +43,18 @@ service.interceptors.response.use(
(res: any) => {
let data = JSON.parse(res.data);
if (data && data.code === 101) {
store.setToken('')
return data
}
if (data && data.code !== 0) {
notification.warning({
message: data.msg
})
}
if (data && data.code === 101) {
store.setToken('')
}
return data;
},
error => {

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

@ -93,6 +93,10 @@ const AssetsRecords = () => {
title: '描述',
dataIndex: 'describe',
},
{
title: '金额',
dataIndex: 'amount'
},
{
title: '剩余',
dataIndex: 'balance',
@ -100,6 +104,10 @@ const AssetsRecords = () => {
<span>${val}</span>
)
},
{
title: '状态',
dataIndex: 'status'
},
]}
/>
</div>
@ -127,6 +135,10 @@ const AssetsRecords = () => {
title: '描述',
dataIndex: 'describe',
},
{
title: '金额',
dataIndex: 'amount'
},
{
title: '剩余',
dataIndex: 'balance',
@ -134,6 +146,10 @@ const AssetsRecords = () => {
<span>${val}</span>
)
},
{
title: '状态',
dataIndex: 'status'
},
]}
/>
</div>
@ -161,6 +177,10 @@ const AssetsRecords = () => {
title: '描述',
dataIndex: 'describe',
},
{
title: '金额',
dataIndex: 'amount'
},
{
title: '剩余',
dataIndex: 'balance',
@ -168,6 +188,10 @@ const AssetsRecords = () => {
<span>${val}</span>
)
},
{
title: '状态',
dataIndex: 'status'
},
]}
/>
</div>
@ -185,7 +209,7 @@ const AssetsRecords = () => {
}
}
}}>
<Tabs defaultActiveKey='1' tabPosition="top" items={[
<Tabs defaultActiveKey='1' tabPosition="top" items={[
{
key: '1',
label: '资金账户记录',

1
src/pages/withdraw/index.tsx

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

Loading…
Cancel
Save