|
|
@@ -2,20 +2,30 @@
|
|
|
<div class="app-quote-forex" v-if="quote?.marketid != 99201">
|
|
|
<ul class="top">
|
|
|
<template v-for="(item, index) in sellList" :key="index">
|
|
|
- <li :class="active === 'sell_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Sell, index)">
|
|
|
+ <li v-if="quote?.trademode != 10"
|
|
|
+ :class="active === 'sell_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Sell, index)" >
|
|
|
<span>{{ item.label }}</span>
|
|
|
<span :class="item.color">{{ handleNumberValue(item.price.toFixed(quote?.decimalplace)) }}</span>
|
|
|
<span>{{ handleNumberValue(item.qty) }}</span>
|
|
|
</li>
|
|
|
+ <li v-else :class="active === 'sell_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Sell, index)">
|
|
|
+ <span style="font-size: 20px;">{{ item.label }}</span>
|
|
|
+ <span style="font-size: 20px;" :class="item.color">{{ handleNumberValue(item.price.toFixed(quote?.decimalplace)) }}</span>
|
|
|
+ </li>
|
|
|
</template>
|
|
|
</ul>
|
|
|
<ul class="bottom" v-if="quote">
|
|
|
<template v-for="(item, index) in buyList" :key="index">
|
|
|
- <li :class="active === 'buy_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Buy, index)">
|
|
|
+ <li v-if="quote?.trademode != 10"
|
|
|
+ :class="active === 'buy_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Buy, index)">
|
|
|
<span>{{ item.label }}</span>
|
|
|
<span :class="item.color">{{ handleNumberValue(item.price.toFixed(quote?.decimalplace)) }}</span>
|
|
|
<span>{{ handleNumberValue(item.qty) }}</span>
|
|
|
</li>
|
|
|
+ <li v-else :class="active === 'buy_' + index ? 'is-active' : ''" @click="onPriceClick(BuyOrSell.Buy, index)">
|
|
|
+ <span style="font-size: 20px;">{{ item.label }}</span>
|
|
|
+ <span style="font-size: 20px;" :class="item.color">{{ handleNumberValue(item.price.toFixed(quote?.decimalplace)) }}</span>
|
|
|
+ </li>
|
|
|
</template>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -48,7 +58,7 @@ const buyList = computed(() => {
|
|
|
if (item) {
|
|
|
const result = [
|
|
|
{
|
|
|
- label: '买一',
|
|
|
+ label: '买价',
|
|
|
price: item.ask,
|
|
|
qty: item.askvolume,
|
|
|
color: item.askColor,
|
|
|
@@ -103,7 +113,7 @@ const sellList = computed(() => {
|
|
|
if (item) {
|
|
|
const result = [
|
|
|
{
|
|
|
- label: '卖一',
|
|
|
+ label: '卖价',
|
|
|
price: item.bid,
|
|
|
qty: item.bidvolume,
|
|
|
color: item.bidColor,
|