From 264ae424801ec3d1a1d6046121ecf3884deea069 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Tue, 15 Jul 2025 11:36:04 +0800
Subject: [PATCH] Merge branch 'dev6.19' of http://124.156.157.155:8060/r/composite_h5-main into dev6.19
---
src/components/Transform/list-quotation/index.vue | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/components/Transform/list-quotation/index.vue b/src/components/Transform/list-quotation/index.vue
index 3f0a2e4..6472474 100644
--- a/src/components/Transform/list-quotation/index.vue
+++ b/src/components/Transform/list-quotation/index.vue
@@ -20,13 +20,13 @@
<div class="flex items-end justify-between" style="margin: 14px 0;">
<div class="block text-22 font-medium" >{{$t('Market')}}</div>
<div class="relative text-13" @click="toggleDropdown">
- <div class="flex px-20 justify-between rounded-full bg-black text-white min-w-100 box-border">
+ <div class="flex px-20 justify-between rounded-full bg-black text-white min-w-140 box-border">
<div class="block">{{ $t(topTitle) }}</div>
<van-icon name="play" style="align-content:center;transform: rotate(90deg);"/>
</div>
- <div class="px-16 py-20 bg-black text-white flex flex-col absolute min-w-100 box-border top-25 rounded-11 leading-28" style="z-index:999;margin-top: 0.8rem;" v-show="isTopShow">
- <div @click="changeType('币币交易', 1)">{{ $t('币币交易') }}</div>
- <div @click="changeType('外汇交割', 2)">{{ $t('外汇交割') }}</div>
+ <div class="px-16 py-20 bg-black text-white flex flex-col absolute min-w-140 box-border top-25 rounded-11 leading-28" style="z-index:999;margin-top: 0.8rem;" v-show="isTopShow">
+ <div @click="changeType('货币兑换', 2)">{{ $t('货币兑换') }}</div>
+ <div @click="changeType('外汇交易', 1)">{{ $t('外汇交易') }}</div>
<!-- <div>期貨</div>
<div>收藏</div> -->
</div>
@@ -41,31 +41,31 @@
<li class="flex items-center left">
<img
:src="item.symbol ? `${HOST_URL}/symbol/${item.symbol_data}.png` : handleImage('../../../assets/loading-default.png')"
- alt="logo" class="w-72 h-72 rounded-full mr-16" />
+ alt="logo" class="w-72 h-72 mr-16" />
<p class="flex flex-col">
<span class="flex items-end font-32 flex items-center">
- <span class="textColor font-600 font-30">{{ item.symbol_data && item.symbol_data.toUpperCase() || '--'
+ <span class="textColor font-600 font-30">{{ item.name || '--'
}}</span>
- <span class="font-24 text-grey" style="position: relative; top: 1px">
+ <!-- <span class="font-24 text-grey" style="position: relative; top: 1px">
/USDT
- </span>
+ </span> -->
<!-- <span class="font-24 text-grey" style="position: relative; top: 1px">
{{ item.name && item.name.replace(item.symbol.toUpperCase(), '') || '--' }}</span> -->
</span>
- <span class="font-24 text-grey text-left">{{ $t('成交量') + ' ' + (item.amount * 1).toFixed(2) }}</span>
+ <span class="font-24 text-grey text-left">{{ (item.amount * 1).toFixed(2) }}</span>
</p>
</li>
<li class="flex flex-col items-end mid">
<p class="textColor font-32 font-600">{{ item.close || '--' }}</p>
- <p class="font-24 text-grey">{{ currency.currency_symbol }}
+ <!-- <p class="font-24 text-grey">{{ currency.currency_symbol }}
{{ item.close && item.symbol_data.toUpperCase() == 'SHIB' ? (item.close * currency.rate).toFixed(8) : (item.close *
- currency.rate).toFixed(2) || '--' }}</p>
+ currency.rate).toFixed(2) || '--' }}</p> -->
</li>
<li class="right flex items-center justify-end">
- <p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio_str > 0 || item.change_ratio > 0">
- +{{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ <p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio > 0">
+ {{ (item.change_ratio === 0 ? 0 : item.change_ratio) }}%</p>
<p class="w-153 font-31 h-71 bg-red text-white border-0 text-center btn" v-else>
- {{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ {{ (item.change_ratio === 0 ? 0 : item.change_ratio) }}%</p>
</li>
</ul>
</van-cell>
@@ -75,7 +75,7 @@
<ul class="flex justify-between w-full items-center" @click="onItemClick(item)">
<li class="flex items-center left">
<img :src="`${HOST_URL}/symbol/${item.symbol_data}.png`" alt="logo"
- class="w-72 h-72 rounded-full mr-16" />
+ class="w-72 h-72 mr-16" />
<p class="flex flex-col">
<span class="flex items-end font-32 flex items-center">
<span class="textColor font-600 font-30">{{ item.symbol_data && item.symbol_data.toUpperCase() || '--'
@@ -91,8 +91,8 @@
</li>
<li class="flex flex-col items-end mid">
<p class="textColor font-32 font-600">{{ item.close }}</p>
- <p class="font-24 text-grey">{{ currency.currency_symbol }} {{ item.close && item.symbol_data.toUpperCase() == 'SHIB' ? (item.close * currency.rate).toFixed(8) : (item.close *
- currency.rate).toFixed(2) || '--' }}</p>
+ <!-- <p class="font-24 text-grey">{{ currency.currency_symbol }} {{ item.close && item.symbol_data.toUpperCase() == 'SHIB' ? (item.close * currency.rate).toFixed(8) : (item.close *
+ currency.rate).toFixed(2) || '--' }}</p> -->
</li>
<li class="right flex items-center justify-end text-right">
<div v-if="active == 3" class="textColor w-182 font-700 font-24">
@@ -100,9 +100,9 @@
</div>
<template v-else>
<p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio_str > 0 || item.change_ratio > 0">
- +{{ item.change_ratio || item.change_ratio_str }}%</p>
+ +{{ item.change_ratio_str }}%</p>
<p class="w-153 font-31 h-71 bg-red text-white border-0 text-center btn" v-else>
- {{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ {{ (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
</template>
</li>
</ul>
@@ -133,8 +133,8 @@
HOST_URL,
active: 0,
isTopShow: false,
- topTitle: '币币交易',
- topValue: 1,
+ topTitle: this.$t('货币兑换'),
+ topValue: 2,
type: 'left' //left 从左往右 right 从有王座
}
},
--
Gitblit v1.9.3