| | |
| | | <div class="tradeRecord"> |
| | | <van-loading color="#1194F7" class="loading-box" v-if="isLoading" /> |
| | | <div class="content"> |
| | | |
| | | <van-tabs v-model:active="active" class="w-full px-2 box-border" sticky @click="changeType"> |
| | | <van-tabs v-model:active="active" class="w-full px-2 box-border" sticky @click="changeType"> |
| | | <van-tab :title="$t('当前委托')" class="text-30"> |
| | | <!-- <div class="all-select flex justify-end"> |
| | | <div class="select-box flex" @click.stop="isAll = !isAll"> |
| | |
| | | |
| | | export default { |
| | | props: { |
| | | invalidState: { |
| | | type: [String, Number], |
| | | default: null |
| | | } |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters('user', ['userInfo']), |
| | |
| | | } |
| | | // this.getCoins() |
| | | this.symbol = this.$route.query.symbol |
| | | // 如果传入了 invalidState 字段,直接展示历史委托页面 |
| | | if (this.invalidState) { |
| | | this.active = 1 |
| | | this.type = 'hisorders' |
| | | } else { |
| | | this.active = this.$route.query.selectIndex !== undefined ? +this.$route.query.selectIndex : 0 |
| | | } |
| | | this.active = this.$route.query.selectIndex !== undefined ? +this.$route.query.selectIndex : 0 |
| | | this.getOrderList(this.type) |
| | | // this.getCoinPrce(this.symbol) |
| | | }, |