| | |
| | | <template> |
| | | <div class="my_order"> |
| | | <tab-head :title="$t('订单')"></tab-head> |
| | | <van-tabs v-model="active" title-inactive-color="#898a8e"> |
| | | <van-tab |
| | | :title="$t('hj2')" |
| | |
| | | </div> |
| | | |
| | | <div class="jiaoyi-action flex-between" v-if="actIndex == index"> |
| | | <div class="action-item flex-center"> |
| | | <div class="action-item flex-center" @click="goBuy(i, 1)"> |
| | | <img src="@/assets/img/mr.png" /> |
| | | <div class="action-item-text">{{ $t("gm") }}</div> |
| | | </div> |
| | | <div class="action-item flex-center"> |
| | | <div class="action-item flex-center" @click="goBuy(i, 0)"> |
| | | <img src="@/assets/img/mc.png" /> |
| | | <div class="action-item-text">{{ $t("hj78") }}</div> |
| | | </div> |
| | | <div class="action-item flex-center"> |
| | | <div class="action-item flex-center" @click="toDetails(i)"> |
| | | <img src="@/assets/img/pc.png" /> |
| | | <div class="action-item-text">{{ $t("平仓") }}</div> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import tabHead from "@/components/tabHead.vue"; |
| | | import * as api from "@/axios/api"; |
| | | export default { |
| | | components: { |
| | | tabHead |
| | | }, |
| | | data() { |
| | | return { |
| | | active: "0", |
| | |
| | | if (!this.Operation) return; |
| | | this.actObj = i; |
| | | this.actIndex = index; |
| | | }, |
| | | goBuy(i, index) { |
| | | // console.log("ddddd", i); |
| | | // return; |
| | | this.$router.push({ |
| | | path: "/TradingBuy", |
| | | query: { |
| | | t: index, |
| | | code: i.stockCode, |
| | | m: i.now_price, |
| | | id: i.stockId, |
| | | name: i.stockName, |
| | | spell: i.stockSpell, |
| | | bayType: i.stockGid, |
| | | gid: i.stockGidJb |
| | | } |
| | | }); |
| | | }, |
| | | // 平仓跳转详情 |
| | | toDetails(i) { |
| | | if (!i.positionSn) return; |
| | | this.$router.push({ |
| | | path: "/Stockdetail", |
| | | query: { codes: i.positionSn } |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | |
| | | padding: 0.175rem 0.3rem 0; |
| | | color: #898a8e; |
| | | width: 54%; |
| | | line-height: .4rem; |
| | | line-height: 0.4rem; |
| | | } |
| | | .moli_orderTitle { |
| | | padding: 0.3rem 0.3rem 0; |