lxf
2025-04-28 a3ae2f2efa0f1f90908fb29fe6362429ac34509d
feat:  挂单页面 添加卖出不展示买长买短按钮
1 files modified
12 ■■■■ changed files
src/page/trading/buy.vue 12 ●●●● patch | view | raw | blame | history
src/page/trading/buy.vue
@@ -28,7 +28,7 @@
              </div>
            </div>
            <div class="rights">
              <div class="ese" v-if="KLine.type == 'HJ'">
              <div class="ese" v-if="!isSell && KLine.type == 'HJ'">
                <div
                  class="mc"
                  @click="handleTradingClick(0)"
@@ -205,7 +205,10 @@
      <div class="btn_buy" @click="gdOrSetBuy()">
        <!-- <div :class="tabsCurrentIndex == 0 ? 'maichu' : ''">#3b82f6 -->
        <div class="maichu" style="background-color:#3b82f6">
          <span>{{ tabsCurrentIndex == 0 ? $t("hj84") : $t("gm") }}</span>
          <span v-if="isSell">{{ $t("hj78") }}</span>
          <span v-else>{{
            tabsCurrentIndex == 0 ? $t("hj84") : $t("gm")
          }}</span>
        </div>
      </div>
    </div>
@@ -229,8 +232,12 @@
  created() {
    if (this.$route.query.t) {
      this.tabsCurrentIndex = Number(this.$route.query.t);
      if (this.tabsCurrentIndex === 0) {
        this.isSell = true;
      }
      console.log(this.tabsCurrentIndex);
    }
    ss;
    if (this.$route.query.m) {
      this.nowPrice = Number(this.$route.query.m);
      this.profitTarget = Number(this.$route.query.m);
@@ -258,6 +265,7 @@
  },
  data() {
    return {
      isSell: false,
      tradingArr: [this.$t("hj84"), this.$t("hj85")],
      tabsCurrentIndex: 0,
      priceTabs: [this.$t("hj108"), this.$t("hj109")],