From 40ba46b887bd8eec7216c63e85b34e096df31420 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Fri, 11 Jul 2025 11:03:30 +0800
Subject: [PATCH] 交易页面
---
src/components/Transform/contract-futrue/index.vue | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/components/Transform/contract-futrue/index.vue b/src/components/Transform/contract-futrue/index.vue
index f1c482a..7e776a5 100644
--- a/src/components/Transform/contract-futrue/index.vue
+++ b/src/components/Transform/contract-futrue/index.vue
@@ -2,19 +2,19 @@
<div>
<div class="contact-futrue">
<div class="font-24 text-grey mb-24">{{ $t('交割时间') }}</div>
- <ul class="flex flex-wrap w-full">
+ <ul class="flex flex-wrap w-full" v-if="initFutrue.para?.length" >
<!-- v-if="initFutrue.para" -->
<!-- initFutrue: {{ initFutrue.para }} -->
- <li v-for="(item, index) in initFutrue.para" v-if="initFutrue.para" :key="item.uuid"
+ <li v-for="(item, index) in initFutrue.para" :key="index"
class="h-92 flex items-center mb-22" @click="onSelect(item, index)">
- <p class="w-95 h-full flex justify-center items-center font-22 flex-1"
+ <p class="w-280 h-full flex justify-center items-center font-22 flex-1"
:class="active === item.para_id ? 'bg-light-blue text-white' : 'delivery_left_tab_background textColor'"
>{{ item.time_num +
item.time_unit.substr(0, 1) }}</p>
- <p class="w-125 h-full flex justify-center items-center font-22 flex-1"
+ <!-- <p class="w-140 h-full flex justify-center items-center font-22 flex-1"
:class="active === item.para_id ? 'bg-dark-blue text-white' : 'delivery_tab_background textColor'"
>{{
- item.profit_ratio }}%</p>
+ item.profit_ratio }}%</p> -->
</li>
</ul>
</div>
@@ -46,17 +46,17 @@
created() {
console.log('this.initFutrue', this.initFutrue)
// this._initParam();
- if (this.initFutrue.para.length > 0) {
+ if (this.initFutrue?.para.length > 0) {
this.active = this.initFutrue.para[0].para_id || ''
this.$emit('paraId', { id: this.active, index: 0 })
}
},
watch: {
- '$route.query.symbol'(newVal, oldVal) {
- if (newVal !== oldVal) {
- this._initParam();
- }
- }
+ // '$route.query.symbol'(newVal, oldVal) {
+ // if (newVal !== oldVal) {
+ // this._initParam();
+ // }
+ // }
},
methods: {
onSelect(item, index) { // 选中
--
Gitblit v1.9.3