| | |
| | | <template> |
| | | <!-- 挂单 买入 卖出 --> |
| | | <div class="buy_page"> |
| | | <div class="content"> |
| | | <div class="top_cny"> |
| | |
| | | </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)" |
| | |
| | | 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, |
| | |
| | | } |
| | | this.buying = true; |
| | | let opts = { |
| | | stockId: this.code, |
| | | stockId: this.id, |
| | | buyNum: this.num, |
| | | lever: this.selectLever, |
| | | targetPrice: this.nums |
| | |
| | | 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", { |