feat(金币兑换页): 更改提示文本
This commit is contained in:
parent
c6593ca536
commit
ecd647eaf3
@ -120,7 +120,6 @@ const fetchBankBalance = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查用户exchange角色
|
|
||||||
// 检查用户exchange角色
|
// 检查用户exchange角色
|
||||||
const checkUserRole = async () => {
|
const checkUserRole = async () => {
|
||||||
isLoadingRole.value = true
|
isLoadingRole.value = true
|
||||||
@ -181,9 +180,7 @@ const exchangeCoins = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 显示确认对话框
|
// 显示确认对话框
|
||||||
const confirmExchange = confirm(
|
const confirmExchange = confirm(`Do you want to exchange coins for $${selectedCoinData.price}?`)
|
||||||
`Do you want to exchange ${selectedCoinData.amount} coins for $${selectedCoinData.price}?`
|
|
||||||
)
|
|
||||||
|
|
||||||
if (confirmExchange) {
|
if (confirmExchange) {
|
||||||
try {
|
try {
|
||||||
@ -195,9 +192,7 @@ const exchangeCoins = async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (response.status === true || response.errorCode === 0) {
|
if (response.status === true || response.errorCode === 0) {
|
||||||
showSuccess(
|
showSuccess(`Successfully exchanged coins for $${selectedCoinData.price}`)
|
||||||
`Successfully exchanged ${selectedCoinData.amount} coins for $${selectedCoinData.price}`
|
|
||||||
)
|
|
||||||
|
|
||||||
// 刷新银行余额
|
// 刷新银行余额
|
||||||
await fetchBankBalance()
|
await fetchBankBalance()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user