1
jhzh
2025-07-19 d37ceed2ad5b94bbfc71a8a4cbdb7b498ddf724d
src/page/kline/index.vue
@@ -9,7 +9,7 @@
            </div>
            <div class="right_title">
              <div class="t_t" style="white-space: nowrap">
                <span>{{ singDetails.name }}</span>
                <span>{{ singDetails.name }}({{ singDetails.gid }})</span>
              </div>
              <div class="b_t">
                <span>{{ singDetails.spell }}</span>
@@ -25,7 +25,7 @@
                </div>
                <div class="right">
                  <span v-if="$store.state.userInfo.userAmt == undefined"
                    >₹0.00</span
                    >¥0.00</span
                  >
                  <span
                    v-if="
@@ -44,7 +44,7 @@
                          (
                            Number($store.state.userInfo.userIndexAmt) / 0.9
                          ).toFixed(2)
                        : "₹" + $store.state.userInfo.userIndexAmt
                        : "¥" + $store.state.userInfo.userIndexAmt
                    }}
                  </span>
                  <span
@@ -55,7 +55,7 @@
                    style="white-space: nowarp"
                  >
                    {{
                      "₹ " +
                      "¥ " +
                      parseFloat(
                        $store.state.userInfo.enableAmt.toFixed(2)
                      ).toLocaleString()
@@ -63,7 +63,7 @@
                  </span>
                </div>
                <div class="sanjiao">
                </div>
              </div>
              <div class="bottom_balance">
@@ -82,7 +82,7 @@
              }}</span> -->
              <span
                :class="singDetails.hcrate > 0 ? 'price green' : 'price red'"
                >{{ singDetails.nowPrice }}</span
                >¥{{ singDetails.nowPrice  }}</span
              >
            </div>
            <div class="bottom_now">
@@ -92,10 +92,8 @@
                    ? '+' : ''
                }}{{ (singDetails.nowPrice - singDetails.preclose_px).toFixed(2) }}</span> -->
                <span v-else>
                  {{
                    (singDetails.nowPrice - singDetails.preclose_px).toFixed(
                      2
                    ) || 0
                  ¥{{
                    (singDetails.nowPrice - singDetails.preclose_px).toFixed(2)
                  }}</span
                >
              </div>
@@ -123,7 +121,7 @@
                  :class="
                    singDetails.hcrate > 0 ? 'number green' : 'number red'
                  "
                  >{{ singDetails.open_px }}</span
                  >¥{{ singDetails.open_px   }}</span
                >
              </div>
              <div class="rights topes">
@@ -135,7 +133,7 @@
                  :class="
                    singDetails.hcrate > 0 ? 'number green' : 'number red'
                  "
                  >{{ singDetails.today_max }}</span
                  >¥{{ singDetails.today_max   }}</span
                >
              </div>
            </div>
@@ -149,10 +147,10 @@
                  :class="
                    singDetails.hcrate > 0 ? 'number green' : 'number red'
                  "
                  >{{ singDetails.preclose_px }}</span
                  >¥{{ singDetails.preclose_px   }}</span
                >
              </div>
              <div class="rights bots">
               <div class="rights bots">
                <span class="titles">{{ $t("hj75") }}</span>
                <!-- <span :class="singDetails.preclose_px < 0 ? 'number green' : 'number red'">{{
                    singDetails.today_min
@@ -161,7 +159,7 @@
                  :class="
                    singDetails.hcrate > 0 ? 'number green' : 'number red'
                  "
                  >{{ singDetails.today_min }}</span
                  >¥{{ singDetails.today_min  }}</span
                >
              </div>
            </div>
@@ -169,7 +167,7 @@
        </div>
      </div>
      <div class="k_line_detail">
        <Kline :type="singDetails.type" />
        <Kline :key="key" :type="singDetails.type" />
      </div>
      <div
        class="priect_top_bottom"
@@ -435,7 +433,7 @@
            <span>{{ $t("hj84") }}</span>
          </div>
          <div class="bottom_buy">
            <span>{{ singDetails.nowPrice }}</span>
            <span>¥{{ singDetails.nowPrice  }}</span>
          </div>
        </div>
        <div class="sell_btn" @click="goBuy(1)">
@@ -443,7 +441,7 @@
            <span>{{ $t("hj85") }}</span>
          </div>
          <div class="bottom_sell">
            <span>{{ singDetails.nowPrice }}</span>
            <span>¥{{ singDetails.nowPrice  }}</span>
          </div>
        </div>
      </div>
@@ -473,6 +471,7 @@
      newsdetailList: [],
      bayType: "",
      timer: null,
      key:0,
    };
  },
  components: {
@@ -487,7 +486,7 @@
    } else {
      this.timer = setInterval(() => {
        this.getSingDetails();
      }, 500);
      }, 2000);
    }
    this.getOpation();
    // this.$Lazyload();
@@ -679,6 +678,7 @@
          spell: this.singDetails.spell,
          if_us: this.kLineDetails.if_us,
          bayType: this.bayType,
          gid: this.singDetails.gid,
        },
      });
      if (navigator.vibrate) {
@@ -931,10 +931,10 @@
    .top_now {
      width: 100%;
      // height: 65%;
      font-size: 0.741rem;
      font-size: 25px;
      display: flex;
      align-items: center;
      font-weight: bold;
      span {
        font-weight: 500;
      }
@@ -954,7 +954,7 @@
  }
  .right_ets {
    max-width: 60%;
    max-width: 70%;
    height: 100%;
    > div {