| | |
| | | <div class="mt-3">{{ swapValue ? $t('交易账户') : $t('资金账户') }}</div> |
| | | </div> |
| | | |
| | | <img src="@/assets/imgs/my/交换.png" class="swap" @click="onSwap"> |
| | | <!-- <img src="@/assets/imgs/my/交换.png" class="swap" @click="onSwap"> --> |
| | | <img src="@/assets/image/assets-center/convert-round.png" class="swap" @click="onSwap"> |
| | | </div> |
| | | |
| | | <div class="mt-10 transfer_label">{{ $t('资产') }}</div> |
| | |
| | | moneyRevise: moneyRevise.value, |
| | | }).then(res => { |
| | | showToast({ |
| | | message: t('划转成功'), |
| | | message: t('操作成功'), |
| | | forbidClick: true, |
| | | duration: 2000 |
| | | }) |
| | |
| | | |
| | | const getassets = () => { // 获取资产 |
| | | _getassets().then(res => { |
| | | swapValue.value ? maxMoneyRevise.value = res.capital : maxMoneyRevise.value = res.contract // 根据上下是否颠倒来判断取的哪个值 |
| | | swapValue.value ? maxMoneyRevise.value = res.capitalUSDT : maxMoneyRevise.value = res.contract // 根据上下是否颠倒来判断取的哪个值 |
| | | }) |
| | | } |
| | | getassets() |
| | |
| | | <style lang="scss" scoped> |
| | | .transfer { |
| | | padding: 0rem 1.2rem 2rem 1.2rem; |
| | | color: $text_color; |
| | | |
| | | :deep(.van-cell) { |
| | | background: none; |
| | |
| | | |
| | | :deep(.van-cell::after) { |
| | | display: none; |
| | | } |
| | | |
| | | :deep(.van-field__control) { |
| | | color: $text_color; |
| | | } |
| | | |
| | | :deep(.van-dropdown-menu__bar) { |
| | |
| | | } |
| | | |
| | | .card { |
| | | background: $input_background; |
| | | background: $input_background1; |
| | | padding: 2rem 1.2rem; |
| | | border-radius: 0.5rem; |
| | | font-size: 16px; |
| | |
| | | .hint { |
| | | font-size: 12px; |
| | | margin-bottom: 150px; |
| | | color: $text_color2; |
| | | |
| | | span { |
| | | color: $text_color5; |
| | | color: $text_color2; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | .transfer_label { |
| | | font-size: 16px; |
| | | color: $text_color2; |
| | | |
| | | } |
| | | } |