1
admin
2026-01-13 95e138158db3e61e0be67691a4142f20c561634c
src/page/trading/buy.vue
@@ -28,7 +28,7 @@
                <span>{{ $t("hj98") }}</span>
              </div>
            </div>
            <div class="rights">
            <!-- <div class="rights">
              <div class="ese">
                <div class="mc" @click="handleTradingClick(0)" :class="tabsCurrentIndex === 0 ? 'actives' : ''">
                  <span>Short</span>
@@ -38,7 +38,7 @@
                  <span>Long</span>
                </div>
              </div>
            </div>
            </div> -->
          </div>
        </div>
      </div>
@@ -73,7 +73,7 @@
            </div>
          </div>
          <div class="num">
            <span>{{ $t("交易数量") }}({{ $t('hj117') }})</span>
            <span>{{ $t("hj100") }}</span>
          </div>
          <div class="tr_es flexJy">
            <div class="top_input">
@@ -89,16 +89,16 @@
              </div>
            </div>
          </div>
          <div class="tr_rs gg" @click="showGg = true">
          <!-- <div class="tr_rs gg" @click="showGg = true">
            <div class="top_bzz">
              <span>{{ $t("hj101") }}</span>
              <span>{{ selectCycle }}</span>
            </div>
          </div>
          </div> -->
          <div class="tr_rs">
            <div class="top_bzz" style="padding-bottom: 0.2rem">
              <span style="text-align: left"> {{ $t("交易总额") }}() </span>
              <span style="text-align: right"> {{ $t("hj103") }}() </span>
              <span style="text-align: left"> {{ $t("交易总额") }} </span>
              <span style="text-align: right"> {{ $t("hj103") }} </span>
            </div>
            <div class="bottom_bzz">
@@ -117,7 +117,7 @@
          </div>
          <div class="tr_rs">
            <div class="top_bzz" style="padding-bottom: 0.2rem">
              <span style="text-align: left"> {{ $t("hj44") }}() </span>
              <span style="text-align: left"> {{ $t("hj44") }} </span>
              <span style="text-align: right"> </span>
            </div>
@@ -237,8 +237,8 @@
    return {
      tradingArr: [this.$t("hj84"), this.$t("hj85")],
      tabsCurrentIndex: 0,
      // priceTabs: [this.$t("hj108"), this.$t("hj109")],
      priceTabs: [this.$t("hj108")],
      priceTabs: [this.$t("hj108"), this.$t("hj109")],
      // priceTabs: [this.$t("hj108")],
      priceTabsCurrentIndex: 0,
      num: 1,
      nums: 1,
@@ -394,7 +394,7 @@
        ? (this.num = Number(Number(this.num) + 1))
        : (this.num = Number(Number(this.num) + 1));
      console.log(this.num, numbs);
      // console.log(this.num, numbs);
      if (this.num >= numbs) {
        this.num = numbs;
      }
@@ -501,7 +501,7 @@
        lever: this.selectLever,
        targetPrice: this.nums
      };
      console.log(this.selectLever, "this.selectLever ");
      // console.log(this.selectLever, "this.selectLever ");
      if (this.tabsCurrentIndex == 0) {
        opts.buyType = 1;