|
|
@@ -13,16 +13,17 @@
|
|
|
<SwipeItem v-for="(list, i) in goodsGroup" :key="i">
|
|
|
<ul>
|
|
|
<template v-for="(item, n) in list" :key="n">
|
|
|
- <li :class="item.refgoodscode === goodsCode ? 'is-active' : ''" @click="onTabChange(item.refgoodscode)">
|
|
|
+ <li :class="[item.lastColor, item.refgoodscode === goodsCode ? 'is-active' : '']"
|
|
|
+ @click="onTabChange(item.refgoodscode)">
|
|
|
<div>
|
|
|
- <b>{{ item.goodsname }}</b>
|
|
|
+ <b style="color: #444;">{{ item.goodsname }}</b>
|
|
|
</div>
|
|
|
- <div :class="item.lastColor">
|
|
|
+ <div>
|
|
|
<b>{{ item.last }}</b>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span :class="item.lastColor">{{ item.rise }}</span>
|
|
|
- <span :class="item.lastColor">{{ item.change }}</span>
|
|
|
+ <span>{{ item.rise }}</span>
|
|
|
+ <span>{{ item.change }}</span>
|
|
|
</div>
|
|
|
</li>
|
|
|
</template>
|
|
|
@@ -45,7 +46,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, defineAsyncComponent, computed, nextTick, watch, watchEffect } from 'vue'
|
|
|
+import { shallowRef, defineAsyncComponent, computed, nextTick, watch, watchEffect } from 'vue'
|
|
|
import { Cell, CellGroup, PullRefresh, Swipe, SwipeItem } from 'vant'
|
|
|
import { formatDate, parsePercent, handleNumberValue, formatDecimal } from '@/filters'
|
|
|
import { queryQuoteGoodsList } from '@/services/api/swap'
|