This commit is contained in:
parent
828bb8a93e
commit
7c452ce42f
@ -210,7 +210,7 @@ const onSubmit = handleSubmit(async (val) => {
|
|||||||
const amount = parseFloat(val.money)
|
const amount = parseFloat(val.money)
|
||||||
|
|
||||||
// 1. 基础校验
|
// 1. 基础校验
|
||||||
if (amount > props.commission / 100) return toast.error('佣金不足')
|
// if (amount > props.commission / 100) return toast.error('佣金不足')
|
||||||
const minAmount = val.type === 'USDT(TRC20)' ? 30 : 200
|
const minAmount = val.type === 'USDT(TRC20)' ? 30 : 200
|
||||||
if (amount < minAmount)
|
if (amount < minAmount)
|
||||||
return toast.error(`金额不能小于${minAmount}${val.type === 'USDT(TRC20)' ? 'USDT' : 'RMB'}`)
|
return toast.error(`金额不能小于${minAmount}${val.type === 'USDT(TRC20)' ? 'USDT' : 'RMB'}`)
|
||||||
@ -219,7 +219,7 @@ const onSubmit = handleSubmit(async (val) => {
|
|||||||
isPending.value = true
|
isPending.value = true
|
||||||
|
|
||||||
// 2. 检查是否有未完成工单
|
// 2. 检查是否有未完成工单
|
||||||
const data = await request.get<any>('/v1/public/ticket/list', {
|
const data = await request.get<any>('/api/v1/public/ticket/list', {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 1,
|
size: 1,
|
||||||
issue_type: 1,
|
issue_type: 1,
|
||||||
@ -233,7 +233,7 @@ const onSubmit = handleSubmit(async (val) => {
|
|||||||
const description =
|
const description =
|
||||||
val.type === 'USDT(TRC20)' ? `${val.type}-${val.account}` : `${val.type}-${val.avatar}`
|
val.type === 'USDT(TRC20)' ? `${val.type}-${val.account}` : `${val.type}-${val.avatar}`
|
||||||
|
|
||||||
await request.post('/v1/public/ticket/', {
|
await request.post('/api/v1/public/ticket/', {
|
||||||
title: `提现-${val.money}`,
|
title: `提现-${val.money}`,
|
||||||
description,
|
description,
|
||||||
issue_type: 1,
|
issue_type: 1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user