1
李凌
2026-01-21 e01cee0f0c5c5c2eb2d8595eadb3c7a9df2a37fc
src/views/cryptos/financialManagement/machineBuy.vue
@@ -69,6 +69,7 @@
import assetsHead from '@/components/Transform/assets-head/index.vue';
import dayjs from 'dayjs'
import { _getBalance } from "@/service/user.api.js";
import { showToast } from "vant";
export default {
  name: "MachineBuy",
  components: {
@@ -99,16 +100,16 @@
    },
    handleBuy() {
      if (!this.data.test && !this.form.amount) {
        this.$toast(this.$t('请输入金额'))
        showToast(this.$t('请输入金额'))
        return
      } else if (this.data.test && this.form.amount == '') {
        this.form.amount = 0
      }
      if (this.form.amount * 1 < this.data.investment_min) {
        this.$toast(this.$t('最低金额') + ':' + this.data.investment_min)
        showToast(this.$t('最低金额') + ':' + this.data.investment_min)
        return
      } else if (this.form.amount * 1 > this.data.investment_max) {
        this.$toast(this.$t('最大数量') + ':' + this.data.investment_max)
        showToast(this.$t('最大数量') + ':' + this.data.investment_max)
        return
      }