From 0c7a7f7c8efb75d677517df70da482c4f18f6d3d Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 28 Apr 2025 14:39:22 +0800
Subject: [PATCH] style: 买入卖出页面,显示功能按钮修改
---
src/page/trading/buy.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index 55ba827..04964d3 100644
--- a/src/page/trading/buy.vue
+++ b/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", {
--
Gitblit v1.9.3