diff --git a/src/api/modules/account/market.ts b/src/api/modules/account/market.ts deleted file mode 100644 index 45c71f2..0000000 --- a/src/api/modules/account/market.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { request } from '@/api'; -import type{ searchParams,pointDiffConfigParams } from '@/api/types/account/market' - -// 查询和获取做市商列表 -export async function getMarketListApi(params: searchParams): Promise { - return request.get('agent/getAgentList', { ...params }) -} - -//获取所属上级列表 -export async function getParAgentListApi(params: pointDiffConfigParams): Promise { - return request.get('/agent/getParAgentListByRoleId',{...params}) -} - -//获取代理点差列表 -export async function getPointDiffConfigListApi(params: pointDiffConfigParams): Promise { - return request.get('/agent/getSelfVarietyPointDiffConfig',{...params}) -} - -//获取风控模板选列表 -export async function getRiskTemplateListApi(): Promise { - return request.get('/agent/getRiskControlOptions') -} - -//添加做市商 -export async function addMarketApi(params:any): Promise { - return request.post('/agent/createAgent',{...params}) -} -//编辑做市商 -export async function editMarketApi(params:any): Promise { - return request.post('/agent/editAgent',{...params}) -} \ No newline at end of file diff --git a/src/api/modules/profile/business.ts b/src/api/modules/profile/business.ts new file mode 100644 index 0000000..0bac9a3 --- /dev/null +++ b/src/api/modules/profile/business.ts @@ -0,0 +1,39 @@ +import { request } from '@/api' +import type { searchParams, pointDiffConfigParams } from '@/api/types/account/market' + +// 查询和获取做市商列表 +export async function getMarketListApi(params: searchParams): Promise { + return request.get('agent/getAgentList', { ...params }) +} + +//获取所属上级列表 +export async function getParAgentListApi(params: pointDiffConfigParams): Promise { + return request.get('/agent/getParAgentListByRoleId', { ...params }) +} + +//获取代理点差列表 +export async function getPointDiffConfigListApi(params: pointDiffConfigParams): Promise { + return request.get('/agent/getSelfVarietyPointDiffConfig', { ...params }) +} + +//获取风控模板选列表 +export async function getRiskTemplateListApi(): Promise { + return request.get('/agent/getRiskControlOptions') +} + +//添加做市商 +export async function addMarketApi(params: any): Promise { + return request.post('/agent/createAgent', { ...params }) +} +//编辑做市商 +export async function editMarketApi(params: any): Promise { + return request.post('/agent/editAgent', { ...params }) +} +//编辑做市商账户基本信息 +export async function updateCapital(params: any): Promise { + return request.post('/user/updateCapital', { ...params }) +} +//编辑做市商保证金 +export async function editAgentBail(params: any): Promise { + return request.post('/agent/editAgentBail', { ...params }) +} diff --git a/src/views/capital/withdraw/index.vue b/src/views/capital/withdraw/index.vue index 7ce8f8b..0ab090b 100644 --- a/src/views/capital/withdraw/index.vue +++ b/src/views/capital/withdraw/index.vue @@ -271,14 +271,6 @@ const handleMockSubmit = async () => { padding-left: 12px; font-size: 16px; color: #303133; - - &::before { - position: absolute; - left: 0; - top: 1px; - color: #f56c6c; - content: '*'; - } } .currency-box { diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 4203d35..5fe108e 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -36,10 +36,39 @@ - - - - + + + + @@ -141,7 +170,7 @@ > @@ -149,9 +178,8 @@