|
|
@@ -11,7 +11,7 @@
|
|
|
</div>
|
|
|
<echart-time class="chart-content__main" :quote-data="selectedRow" v-if="activeCycleType === -1"></echart-time>
|
|
|
<echart-kline class="chart-content__main" :quote-data="selectedRow" :cycle-type="activeCycleType" v-else></echart-kline>
|
|
|
- <!-- <component :is="componentId" v-if="componentId" :series-data="chartData" :quote-data="selectedRow"></component> -->
|
|
|
+ <!-- <component :is="componentId" v-if="componentId" :quote-data="selectedRow"></component> -->
|
|
|
<div class="chart-content__footer"></div>
|
|
|
</div>
|
|
|
<div class="chart-slider">
|
|
|
@@ -24,22 +24,22 @@
|
|
|
<div class="content content--right">{{ selectedRow.goodsname }}</div>
|
|
|
</div>
|
|
|
<div class="chart-tips__last">
|
|
|
- <div :class="['content content--left', priceColor]">{{ selectedRow.last }}</div>
|
|
|
+ <div :class="['content content--left', handleQuotePriceColor(selectedRow.last, selectedRow.presettle)]">{{ selectedRow.last }}</div>
|
|
|
<div class="content content--right">
|
|
|
- <span :class="priceColor">{{ quoteChange(selectedRow) }}</span>
|
|
|
- <span :class="priceColor">{{ quoteAmplitude(selectedRow) }}</span>
|
|
|
+ <span :class="handleQuotePriceColor(selectedRow.last, selectedRow.presettle)">{{ quoteChange(selectedRow) }}</span>
|
|
|
+ <span :class="handleQuotePriceColor(selectedRow.last, selectedRow.presettle)">{{ quoteAmplitude(selectedRow) }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chart-tips__volume">
|
|
|
<a-row>
|
|
|
<a-col :span="8">卖一</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.ask }}</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.askvolume }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.ask, selectedRow.presettle)" :span="8">{{ selectedRow.ask }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.askvolume, selectedRow.presettle)" :span="8">{{ selectedRow.askvolume }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="8">买一</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.bid }}</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.bidvolume }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.bid, selectedRow.presettle)" :span="8">{{ selectedRow.bid }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.bidvolume, selectedRow.presettle)" :span="8">{{ selectedRow.bidvolume }}</a-col>
|
|
|
</a-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -53,39 +53,39 @@
|
|
|
<div class="chart-tips__info">
|
|
|
<a-row>
|
|
|
<a-col :span="4">最新</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.last }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.last, selectedRow.presettle)" :span="8">{{ selectedRow.last }}</a-col>
|
|
|
<a-col :span="4">均价</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.averageprice }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.averageprice, selectedRow.presettle)" :span="8">{{ selectedRow.averageprice }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">涨跌</a-col>
|
|
|
- <a-col :span="8">{{ quoteChange(selectedRow) }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.last, selectedRow.presettle)" :span="8">{{ quoteChange(selectedRow) }}</a-col>
|
|
|
<a-col :span="4">今开</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.opened }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.opened, selectedRow.presettle)" :span="8">{{ selectedRow.opened }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">涨幅</a-col>
|
|
|
- <a-col :span="8">{{ quoteAmplitude(selectedRow) }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.last, selectedRow.presettle)" :span="8">{{ quoteAmplitude(selectedRow) }}</a-col>
|
|
|
<a-col :span="4">最高</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.highest }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.highest, selectedRow.presettle)" :span="8">{{ selectedRow.highest }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">总量</a-col>
|
|
|
<a-col :span="8">{{ selectedRow.totalvolume }}</a-col>
|
|
|
<a-col :span="4">最低</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.lowest }}</a-col>
|
|
|
+ <a-col :class="handleQuotePriceColor(selectedRow.lowest, selectedRow.presettle)" :span="8">{{ selectedRow.lowest }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">金额</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.totalturnover }}</a-col>
|
|
|
+ <a-col :span="8" style="color: #0d96ff">{{ selectedRow.totalturnover }}</a-col>
|
|
|
<a-col :span="4">量比</a-col>
|
|
|
<a-col :span="8">{{ '--' }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">涨停</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.limitup }}</a-col>
|
|
|
+ <a-col class="red1" :span="8">{{ selectedRow.limitup }}</a-col>
|
|
|
<a-col :span="4">跌停</a-col>
|
|
|
- <a-col :span="8">{{ selectedRow.limitdown }}</a-col>
|
|
|
+ <a-col class="green" :span="8">{{ selectedRow.limitdown }}</a-col>
|
|
|
</a-row>
|
|
|
<a-row>
|
|
|
<a-col :span="4">外盘</a-col>
|
|
|
@@ -149,10 +149,6 @@ export default defineComponent({
|
|
|
}
|
|
|
const { goodscode } = props.selectedRow;
|
|
|
|
|
|
- const priceColor = computed(() => {
|
|
|
- return handleQuotePriceColor(props.selectedRow.last, props.selectedRow.presettle);
|
|
|
- });
|
|
|
-
|
|
|
// 周期类型
|
|
|
const chartType = [
|
|
|
{ name: '分时', type: -1 },
|
|
|
@@ -183,7 +179,7 @@ export default defineComponent({
|
|
|
selectCycleType,
|
|
|
quoteChange,
|
|
|
quoteAmplitude,
|
|
|
- priceColor,
|
|
|
+ handleQuotePriceColor,
|
|
|
};
|
|
|
},
|
|
|
});
|