| | |
| | | </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)" |
| | |
| | | <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> |
| | |
| | | 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); |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isSell: false, |
| | | tradingArr: [this.$t("hj84"), this.$t("hj85")], |
| | | tabsCurrentIndex: 0, |
| | | priceTabs: [this.$t("hj108"), this.$t("hj109")], |