开发环境配置,转账--三方转账转入账号问题修复
This commit is contained in:
parent
e14dd66e2b
commit
22eb76a440
|
|
@ -1,17 +1,17 @@
|
|||
# 开发环境标识(Vite 内置变量,无需修改)
|
||||
NODE_ENV = development
|
||||
# 测试环境标识
|
||||
NODE_ENV = test
|
||||
|
||||
# 开发环境接口基础地址(对应你配置的 https://adminapi.apimcapital.top/api)
|
||||
VITE_API_BASE_URL = https://adminapi.apimcapital.top/api
|
||||
# 测试环境接口基础地址
|
||||
VITE_API_BASE_URL = https://adminapi.duxiang.wiki/api
|
||||
|
||||
# 请求超时时间(毫秒)
|
||||
VITE_REQUEST_TIMEOUT = 10000
|
||||
|
||||
# 可选:开发环境其他配置(如是否开启调试)
|
||||
# 可选:测试环境其他配置
|
||||
VITE_DEBUG = true
|
||||
|
||||
# 交易mqtt
|
||||
VITE_MQTT_TRANSACTION_HOST=wss://adminapi.apimcapital.top/mqtt
|
||||
VITE_MQTT_TRANSACTION_HOST = wss://adminapi.duxiang.wiki/mqtt
|
||||
|
||||
# exe 下载基础地址
|
||||
VITE_EXE_DOWNLOAD_BASE_URL = https://adminh5.apimcapital.top
|
||||
VITE_EXE_DOWNLOAD_BASE_URL = https://adminh5.duxiang.wiki
|
||||
|
|
|
|||
|
|
@ -399,21 +399,6 @@ const handleTransferTabClick = async (type: string) => {
|
|||
transferType.value = type
|
||||
await resetTransferForm()
|
||||
}
|
||||
/**
|
||||
* @description 切换验证方式
|
||||
* @param type 验证方式
|
||||
*/
|
||||
const handleVerifyParams = (type: string) => {
|
||||
if (type === 'external') {
|
||||
if (verifyForm.value.verifyType === 'email') {
|
||||
return userInfo.email
|
||||
} else {
|
||||
return userInfo.mobile
|
||||
}
|
||||
} else {
|
||||
return transferForm.value.transferInAccount
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 提交转账表单
|
||||
|
|
@ -428,7 +413,7 @@ const handleSubmit = async () => {
|
|||
const params = {
|
||||
type: transferType.value === 'internal' ? '1' : '2',
|
||||
from: String(transferForm.value.transferOutAccount) + '',
|
||||
to: handleVerifyParams(transferType.value) + '',
|
||||
to: transferForm.value.transferInAccount + '',
|
||||
amount: transferForm.value.transferAmount,
|
||||
verify_type: '',
|
||||
verify_code: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue