|
@@ -9,6 +9,7 @@
|
|
</route>
|
|
</route>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
|
+import { getConfigByCode } from '@/api/common'
|
|
import { withdrawAdd } from '@/api/wallet'
|
|
import { withdrawAdd } from '@/api/wallet'
|
|
import { t } from '@/locale'
|
|
import { t } from '@/locale'
|
|
import { formatNumber } from '@/utils'
|
|
import { formatNumber } from '@/utils'
|
|
@@ -51,7 +52,18 @@ async function submit() {
|
|
const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
|
|
const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
|
|
console.log(res)
|
|
console.log(res)
|
|
}
|
|
}
|
|
|
|
+const withdrawRate = ref<any>()
|
|
|
|
+async function getConfig() {
|
|
|
|
+ try {
|
|
|
|
+ const res = await getConfigByCode({ code: 'withdraw_rate' })
|
|
|
|
+ withdrawRate.value = res.data.valueInfo
|
|
|
|
+ }
|
|
|
|
+ catch {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
|
|
+ getConfig()
|
|
queryParams.value = getPageParams(options)
|
|
queryParams.value = getPageParams(options)
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
@@ -143,9 +155,9 @@ onLoad((options) => {
|
|
<br>
|
|
<br>
|
|
{{ $t('wallet.withdraw.notes.3') }}
|
|
{{ $t('wallet.withdraw.notes.3') }}
|
|
<br>
|
|
<br>
|
|
- {{ $t('wallet.withdraw.notes.4') }}
|
|
|
|
|
|
+ {{ $t('wallet.withdraw.notes.4', ['300', '20,000']) }}
|
|
<br>
|
|
<br>
|
|
- {{ $t('wallet.withdraw.notes.5') }}
|
|
|
|
|
|
+ {{ $t('wallet.withdraw.notes.5', [withdrawRate]) }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|