|
|
@@ -9,27 +9,27 @@
|
|
|
</dt>
|
|
|
<dd @click="onSellClick(1)">
|
|
|
<span>卖一</span>
|
|
|
- <span>{{ handleNumberValue(quote?.ask) }}</span>
|
|
|
+ <span :class="quote?.askColor">{{ handleNumberValue(quote?.ask) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.askvolume) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onSellClick(2)">
|
|
|
<span>卖二</span>
|
|
|
- <span>{{ handleNumberValue(quote?.ask2) }}</span>
|
|
|
+ <span :class="quote?.ask2Color">{{ handleNumberValue(quote?.ask2) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.askvolume2) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onSellClick(3)">
|
|
|
<span>卖三</span>
|
|
|
- <span>{{ handleNumberValue(quote?.ask3) }}</span>
|
|
|
+ <span :class="quote?.ask3Color">{{ handleNumberValue(quote?.ask3) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.askvolume3) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onSellClick(4)">
|
|
|
<span>卖四</span>
|
|
|
- <span>{{ handleNumberValue(quote?.ask4) }}</span>
|
|
|
+ <span :class="quote?.ask4Color">{{ handleNumberValue(quote?.ask4) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.askvolume4) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onSellClick(5)">
|
|
|
<span>卖五</span>
|
|
|
- <span>{{ handleNumberValue(quote?.ask5) }}</span>
|
|
|
+ <span :class="quote?.ask5Color">{{ handleNumberValue(quote?.ask5) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.askvolume5) }}</span>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
@@ -42,27 +42,27 @@
|
|
|
</dt>
|
|
|
<dd @click="onBuyClick(1)">
|
|
|
<span>买一</span>
|
|
|
- <span>{{ handleNumberValue(quote?.bid) }}</span>
|
|
|
+ <span :class="quote?.bidColor">{{ handleNumberValue(quote?.bid) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.bidvolume) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onBuyClick(2)">
|
|
|
<span>买二</span>
|
|
|
- <span>{{ handleNumberValue(quote?.bid2) }}</span>
|
|
|
+ <span :class="quote?.bid2Color">{{ handleNumberValue(quote?.bid2) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.bidvolume2) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onBuyClick(3)">
|
|
|
<span>买三</span>
|
|
|
- <span>{{ handleNumberValue(quote?.bid3) }}</span>
|
|
|
+ <span :class="quote?.bid3Color">{{ handleNumberValue(quote?.bid3) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.bidvolume3) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onBuyClick(4)">
|
|
|
<span>买四</span>
|
|
|
- <span>{{ handleNumberValue(quote?.bid4) }}</span>
|
|
|
+ <span :class="quote?.bid4Color">{{ handleNumberValue(quote?.bid4) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.bidvolume4) }}</span>
|
|
|
</dd>
|
|
|
<dd @click="onBuyClick(5)">
|
|
|
<span>买五</span>
|
|
|
- <span>{{ handleNumberValue(quote?.bid5) }}</span>
|
|
|
+ <span :class="quote?.bid5Color">{{ handleNumberValue(quote?.bid5) }}</span>
|
|
|
<span>{{ handleNumberValue(quote?.bidvolume5) }}</span>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
@@ -111,4 +111,6 @@ const navigateTo = (buyorsell: BuyOrSell) => {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less">@import './index.less';</style>
|
|
|
+<style lang="less">
|
|
|
+@import './index.less';
|
|
|
+</style>
|