|
|
@@ -1,174 +1,176 @@
|
|
|
<template>
|
|
|
<!-- 期货交易 -->
|
|
|
- <div class="trade">
|
|
|
- <div class="left">
|
|
|
- <a-row>
|
|
|
- <a-col class="label">
|
|
|
- 合约:
|
|
|
- </a-col>
|
|
|
- <a-col>
|
|
|
- <a-select class="inlineFormSelect" default-value="1" style="width: 207px">
|
|
|
- <a-select-option value="1">
|
|
|
- 一口价
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 一口价2
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row>
|
|
|
- <a-col class="label">
|
|
|
- 代码:
|
|
|
- </a-col>
|
|
|
- <a-col>
|
|
|
- CU2012
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row>
|
|
|
- <a-col class="label">
|
|
|
- 价格:
|
|
|
- </a-col>
|
|
|
- <a-col>
|
|
|
- <a-input default-value="3247.2" class="commonInput" style="width: 140px;">
|
|
|
- <div slot="addonBefore"><a-icon type="minus" /></div>
|
|
|
- <div slot="addonAfter"><a-icon type="plus" /></div>
|
|
|
- </a-input>
|
|
|
- <a-select class="shortSelect" default-value="1" style="width: 60px; margin-left: 7px;">
|
|
|
- <a-select-option value="1">
|
|
|
- 最新
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row>
|
|
|
- <a-col class="label">
|
|
|
- 数量:
|
|
|
- </a-col>
|
|
|
- <a-col>
|
|
|
- <a-input default-value="3247.2" class="commonInput" style="width: 140px;">
|
|
|
- <div slot="addonBefore"><a-icon type="minus" /></div>
|
|
|
- <div slot="addonAfter"><a-icon type="plus" /></div>
|
|
|
- </a-input>
|
|
|
- <a-button class="resetBtn">复位</a-button>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="btnBlock">
|
|
|
- <a-col :span="24">
|
|
|
- <a-button class="numAndOperBtn red">
|
|
|
- <p>54353</p>
|
|
|
- <p>买入</p>
|
|
|
- </a-button>
|
|
|
- <a-button class="numAndOperBtn green">
|
|
|
- <p>54353</p>
|
|
|
- <p>卖出</p>
|
|
|
- </a-button>
|
|
|
- <a-button class="numAndOperBtn yellow">
|
|
|
- <p>先开先平</p>
|
|
|
- <p>平仓</p>
|
|
|
- </a-button>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="btns">
|
|
|
- <a-col :span="24">
|
|
|
- <div class="avaliable">
|
|
|
- <div><span>可买<=</span><span class="white">0</span></div>
|
|
|
- <div><span>可买<=</span><span class="white">0</span></div>
|
|
|
+ <div class="trade">
|
|
|
+ <div class="left">
|
|
|
+ <a-row>
|
|
|
+ <a-col class="label">合约:</a-col>
|
|
|
+ <a-col>
|
|
|
+ <a-select class="inlineFormSelect" default-value="1" style="width: 207px">
|
|
|
+ <a-select-option value="1">一口价</a-select-option>
|
|
|
+ <a-select-option value="2">一口价2</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row>
|
|
|
+ <a-col class="label">代码:</a-col>
|
|
|
+ <a-col>CU2012</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row>
|
|
|
+ <a-col class="label">价格:</a-col>
|
|
|
+ <a-col>
|
|
|
+ <a-input default-value="3247.2" class="commonInput" style="width: 140px;">
|
|
|
+ <div slot="addonBefore">
|
|
|
+ <a-icon type="minus" />
|
|
|
+ </div>
|
|
|
+ <div slot="addonAfter">
|
|
|
+ <a-icon type="plus" />
|
|
|
+ </div>
|
|
|
+ </a-input>
|
|
|
+ <a-select
|
|
|
+ class="shortSelect"
|
|
|
+ default-value="1"
|
|
|
+ style="width: 60px; margin-left: 7px;"
|
|
|
+ >
|
|
|
+ <a-select-option value="1">最新</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row>
|
|
|
+ <a-col class="label">数量:</a-col>
|
|
|
+ <a-col>
|
|
|
+ <a-input default-value="3247.2" class="commonInput" style="width: 140px;">
|
|
|
+ <div slot="addonBefore">
|
|
|
+ <a-icon type="minus" />
|
|
|
+ </div>
|
|
|
+ <div slot="addonAfter">
|
|
|
+ <a-icon type="plus" />
|
|
|
+ </div>
|
|
|
+ </a-input>
|
|
|
+ <a-button class="resetBtn">复位</a-button>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="btnBlock">
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-button class="numAndOperBtn red">
|
|
|
+ <p>54353</p>
|
|
|
+ <p>买入</p>
|
|
|
+ </a-button>
|
|
|
+ <a-button class="numAndOperBtn green">
|
|
|
+ <p>54353</p>
|
|
|
+ <p>卖出</p>
|
|
|
+ </a-button>
|
|
|
+ <a-button class="numAndOperBtn yellow">
|
|
|
+ <p>先开先平</p>
|
|
|
+ <p>平仓</p>
|
|
|
+ </a-button>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="btns">
|
|
|
+ <a-col :span="24">
|
|
|
+ <div class="avaliable">
|
|
|
+ <div>
|
|
|
+ <span>可买<=</span>
|
|
|
+ <span class="white">0</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <span>可买<=</span>
|
|
|
+ <span class="white">0</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <div class="rightBar">
|
|
|
+ <div class="topFive">
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">5</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">32.3K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">4</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">24.5K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">3</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">40.2K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">2</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">23.3K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">1</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">54.0K</a-col>
|
|
|
+ </a-row>
|
|
|
</div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div class="right">
|
|
|
- <div class="rightBar">
|
|
|
- <div class="topFive">
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">5</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">32.3K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">4</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">24.5K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">3</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">40.2K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">2</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">23.3K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">1</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">54.0K</a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div class="bottomFive">
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">1</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">32.3K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">2</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">24.5K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">3</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">40.2K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">4</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">23.3K</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="line">
|
|
|
- <a-col class="firstCol">
|
|
|
- <div class="no">5</div>
|
|
|
- <div class="num">355.000</div>
|
|
|
- </a-col>
|
|
|
- <a-col class="lastCol">54.0K</a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div class="newLine">
|
|
|
- <div class="lineBlock">
|
|
|
- <div>最新</div>
|
|
|
- <div class="red">546546</div>
|
|
|
+ <div class="bottomFive">
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">1</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">32.3K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">2</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">24.5K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">3</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">40.2K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">4</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">23.3K</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="line">
|
|
|
+ <a-col class="firstCol">
|
|
|
+ <div class="no">5</div>
|
|
|
+ <div class="num">355.000</div>
|
|
|
+ </a-col>
|
|
|
+ <a-col class="lastCol">54.0K</a-col>
|
|
|
+ </a-row>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="newLine">
|
|
|
- <div class="lineBlock">
|
|
|
- <div>涨幅</div>
|
|
|
- <div class="red">0.76%</div>
|
|
|
+ <div class="newLine">
|
|
|
+ <div class="lineBlock">
|
|
|
+ <div>最新</div>
|
|
|
+ <div class="red">546546</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="newLine">
|
|
|
+ <div class="lineBlock">
|
|
|
+ <div>涨幅</div>
|
|
|
+ <div class="red">0.76%</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { defineComponent } from 'vue';
|
|
|
@@ -178,12 +180,12 @@ export default defineComponent({
|
|
|
components: {},
|
|
|
setup() {
|
|
|
const form = {
|
|
|
- type: '1'
|
|
|
+ type: '1',
|
|
|
};
|
|
|
const price = '';
|
|
|
return {
|
|
|
form,
|
|
|
- price
|
|
|
+ price,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
@@ -193,7 +195,7 @@ export default defineComponent({
|
|
|
.trade {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: #1D2F3F;
|
|
|
+ background: @m-black22;
|
|
|
.inlineflex;
|
|
|
overflow: hidden;
|
|
|
.left {
|
|
|
@@ -228,8 +230,8 @@ export default defineComponent({
|
|
|
margin-top: -5px;
|
|
|
.avaliable {
|
|
|
.inlineflex;
|
|
|
- color: #7A8A94;
|
|
|
- div+div {
|
|
|
+ color: @m-grey1;
|
|
|
+ div + div {
|
|
|
margin-left: 33px;
|
|
|
}
|
|
|
}
|
|
|
@@ -257,40 +259,40 @@ export default defineComponent({
|
|
|
line-height: 28px;
|
|
|
}
|
|
|
}
|
|
|
- .numAndOperBtn+.numAndOperBtn {
|
|
|
+ .numAndOperBtn + .numAndOperBtn {
|
|
|
margin-left: 5px;
|
|
|
}
|
|
|
.red {
|
|
|
- color: #FF2B2F;
|
|
|
- background: #2C1B1B;
|
|
|
- border: 1px solid #FF2B2B;
|
|
|
- p:first-child{
|
|
|
- border-bottom: 1px dashed #691010
|
|
|
+ color: @m-red3;
|
|
|
+ background: @m-red4;
|
|
|
+ border: 1px solid @m-red1;
|
|
|
+ p:first-child {
|
|
|
+ border-bottom: 1px dashed @m-red5;
|
|
|
}
|
|
|
p:last-child {
|
|
|
- color: #FF2B2F;
|
|
|
+ color: @m-red3;
|
|
|
}
|
|
|
}
|
|
|
.green {
|
|
|
- background: #173025;
|
|
|
- border: 1px solid #1EE18C;
|
|
|
+ background: @m-black23;
|
|
|
+ border: 1px solid @m-green4;
|
|
|
p:first-child {
|
|
|
- border-bottom: 1px dashed #1EE18C;
|
|
|
- color: #1EE18C;
|
|
|
+ border-bottom: 1px dashed @m-green4;
|
|
|
+ color: @m-green4;
|
|
|
}
|
|
|
- p:last-child {
|
|
|
- color: #1EE18C;
|
|
|
+ p:last-child {
|
|
|
+ color: @m-green4;
|
|
|
}
|
|
|
}
|
|
|
- .yellow {
|
|
|
- background: #422B0D;
|
|
|
- border: 1px solid #FFAE00;
|
|
|
+ .yellow {
|
|
|
+ background: @m-red6;
|
|
|
+ border: 1px solid @m-yellow2;
|
|
|
p:first-child {
|
|
|
- border-bottom: 1px dashed #653F0D;
|
|
|
- color: #FFAE00;
|
|
|
+ border-bottom: 1px dashed @m-yellow3;
|
|
|
+ color: @m-yellow2;
|
|
|
}
|
|
|
- p:last-child {
|
|
|
- color: #FFAE00;
|
|
|
+ p:last-child {
|
|
|
+ color: @m-yellow2;
|
|
|
}
|
|
|
}
|
|
|
.ant-btn.resetBtn {
|
|
|
@@ -299,11 +301,11 @@ export default defineComponent({
|
|
|
height: 30px;
|
|
|
line-height: 28px;
|
|
|
padding: 0;
|
|
|
- color: #0C95FF;
|
|
|
+ color: @m-blue10;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
- background: #0E2F4C;
|
|
|
- border: 1px solid #0C95FF;
|
|
|
+ background: @m-blue22;
|
|
|
+ border: 1px solid @m-blue10;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
}
|
|
|
@@ -316,8 +318,8 @@ export default defineComponent({
|
|
|
flex-direction: column;
|
|
|
.rightBar {
|
|
|
height: 292px;
|
|
|
- background: #15202B;
|
|
|
- border: 2px solid #15202B;
|
|
|
+ background: @m-grey21;
|
|
|
+ border: 2px solid @m-grey21;
|
|
|
.rounded-corners(5px);
|
|
|
}
|
|
|
}
|
|
|
@@ -334,7 +336,7 @@ export default defineComponent({
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
line-height: 14px;
|
|
|
- background: #FFAE00;
|
|
|
+ background: @m-yellow2;
|
|
|
.rounded-corners(2px);
|
|
|
text-align: center;
|
|
|
font-size: 12px;
|
|
|
@@ -345,7 +347,7 @@ export default defineComponent({
|
|
|
.num {
|
|
|
margin-left: 9px;
|
|
|
font-size: 12px;
|
|
|
- color: #F52B2B;
|
|
|
+ color: @m-red7;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
@@ -364,12 +366,11 @@ export default defineComponent({
|
|
|
width: 100%;
|
|
|
height: 124px;
|
|
|
padding: 4px 6px;
|
|
|
- background: #422B0D;
|
|
|
+ background: @m-red6;
|
|
|
.rounded-corners(5px, 5px, 0, 0);
|
|
|
-
|
|
|
}
|
|
|
.bottomFive:extend(.topFive) {
|
|
|
- background: #0E2F4C;
|
|
|
+ background: @m-blue22;
|
|
|
.rounded-corners(0);
|
|
|
}
|
|
|
.newLine {
|
|
|
@@ -387,7 +388,7 @@ export default defineComponent({
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
.red {
|
|
|
- color: #F12A2D;
|
|
|
+ color: @m-red8;
|
|
|
}
|
|
|
}
|
|
|
}
|