lxf
2025-04-28 0c7a7f7c8efb75d677517df70da482c4f18f6d3d
style: 买入卖出页面,显示功能按钮修改
1 files modified
17 ■■■■ changed files
src/page/trading/buy.vue 17 ●●●● patch | view | raw | blame | history
src/page/trading/buy.vue
@@ -1,4 +1,5 @@
<template>
  <!-- 挂单 买入 卖出 -->
  <div class="buy_page">
    <div class="content">
      <div class="top_cny">
@@ -27,7 +28,7 @@
              </div>
            </div>
            <div class="rights">
              <div class="ese"  v-if="KLine.type == 'HJ'">
              <div class="ese" v-if="KLine.type == 'HJ'">
                <div
                  class="mc"
                  @click="handleTradingClick(0)"
@@ -259,8 +260,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,
@@ -512,7 +513,7 @@
      }
      this.buying = true;
      let opts = {
        stockId: this.code,
        stockId: this.id,
        buyNum: this.num,
        lever: this.selectLever,
        targetPrice: this.nums
@@ -531,7 +532,13 @@
      if (this.checkedZs) {
        opts.stopTarget = this.zhisun;
      }
      let data = await api.guadan(opts);
      let data;
      if (this.KLine.type === "HJ") {
        opts.name = this.KLine.name;
        data = await api.hjyyAddOrder(opts);
      } else {
        data = await api.guadan(opts);
      }
      this.buying = false;
      if (data.status === 0) {
        this.$store.commit("elAlertShow", {