| | |
| | | handleWordType(entrust.order_price_type) }}</span> |
| | | <span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'"> / </span> |
| | | <span :class="entrust.offset == 'open' ? 'text-green' : 'text-red'">{{ handleWordOffset(entrust.offset) |
| | | }}</span> |
| | | <span>{{ entrust.name }}</span> |
| | | }}</span> |
| | | <span>{{ strToArr(entrust.name, '/')[0] }}</span> |
| | | </div> |
| | | <div class="text" @click.stop="goDetail(entrust.order_no)"> |
| | | <span v-if="state == 'submitted'" @click.stop="cancelSingle(entrust.order_no)">{{ $t('撤单') }}</span> |
| | |
| | | <div class="flex info"> |
| | | <div class="data-item "> |
| | | <div class="title">{{ $t('时间') }}</div> |
| | | <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length) : |
| | | <div class="text">{{ entrust.create_time ? entrust.create_time.substring(5, entrust.create_time.length) |
| | | : |
| | | '--' }}</div> |
| | | </div> |
| | | <div class="data-item right-text"> |
| | |
| | | <div class="text">{{ entrust.price }}</div> |
| | | </div> |
| | | <div class="data-item right-text"> |
| | | <div class="title">{{ $t('成交量') }}({{ entrust.symbol }})</div> |
| | | <div class="title">{{ $t('成交量') }}({{ strToArr(entrust.name, '/')[0] }})</div> |
| | | <div class="text">{{ (entrust.volume / entrust.price).toFixed(6) }}</div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import { Circle } from 'vant' |
| | | import { strToArr } from '@/utils/utis.js' |
| | | export default { |
| | | name: 'history-item', // 订单委托项 |
| | | components: { |
| | |
| | | watch: { |
| | | }, |
| | | methods: { |
| | | strToArr, |
| | | handleWordType(type) { |
| | | return type === 'limit' ? this.$t('限价') : this.$t('市价'); |
| | | }, |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | <style lang="scss" scoped> |
| | | .history-item { |
| | | border-bottom: 1px solid $inp-b; |
| | | |