| | |
| | | <div class="assets-item flex-center" style="align-items: end;"> |
| | | <div class="all-size">{{ $t("平仓盈亏") }}</div> |
| | | <div class="big-size"> |
| | | {{ moneyData.symbol }}{{ moneyData.cumulativeProfitAndLoss }} |
| | | {{ moneyData.symbol }}<span v-if="moneyData.isZf==1">-</span>{{ moneyData.cumulativeProfitAndLoss }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div style="margin-left: .25rem;font-size: .4rem;" :style="`color:${i.profitAndLose > 0 |
| | | ? 'green' |
| | | : i.profitAndLose < 0 |
| | | : i.isZf < 0 |
| | | ? 'red' |
| | | : '' |
| | | }` |
| | |
| | | <div> |
| | | {{ i.stockName }} |
| | | </div> |
| | | <div > |
| | | <div v-if="i.status!=2" @click="cdclick(i.id)" class="mo_all_sells"> |
| | | {{ $t("hj126") }} |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | clearInterval(teimss2); |
| | | }, |
| | | methods: { |
| | | async cdclick(id){ |
| | | let data = await api.revocationOrder({"id":id}); |
| | | if (data.status === 0) { |
| | | Notify({ type: "success", message: data.msg }); |
| | | this.getorderList() |
| | | } |
| | | }, |
| | | // 获取 挂单 数据 |
| | | async getorderList() { |
| | | let data = await api.getorderList(); |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .mo_all_sells{ |
| | | padding: 10px 20px; |
| | | background: linear-gradient(90deg, #585fb4, #48529e); |
| | | border-radius: 25px; |
| | | text-align: center; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .mo_all_sell{ |
| | | padding: 20px 10px; |
| | | background: linear-gradient(90deg, #585fb4, #48529e); |