|
|
@ -19,12 +19,12 @@ |
|
|
|
|
|
|
|
|
<tbody class="sell-orders" v-if="symbol!='gitpusdt'"> |
|
|
<tbody class="sell-orders" v-if="symbol!='gitpusdt'"> |
|
|
<div class="order-item" v-for="item in sellList" :key="item.id"> |
|
|
<div class="order-item" v-for="item in sellList" :key="item.id"> |
|
|
<el-progress class="progress" type="line" :stroke-width="39" :percentage="getValue(item.amount)" :show-text="false" color="rgba(216,43,43,0.15)"> |
|
|
<el-progress class="progress" type="line" :stroke-width="39" :percentage="getValue(item.amount)" :show-text="false" color="rgba(216,43,43,0.15)" define-back-color="#121212"> |
|
|
</el-progress> |
|
|
</el-progress> |
|
|
<!-- 卖单 使用弹性盒子倒序排列 --> |
|
|
<!-- 卖单 使用弹性盒子倒序排列 --> |
|
|
<tr style="display:block;" class="tb-cells" @click.stop="handleOrder(item.price)"> |
|
|
<tr style="display:block;" class="tb-cells" @click.stop="handleOrder(item.price)"> |
|
|
<td class="w-33 red" title="pick this price to sell">{{ item.price|omitTo(priceDecimals) }}</td> |
|
|
<td class="w-33 red" title="pick this price to sell">{{ item.price|omitTo(priceDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.amount|omitTo(qtyDecimals) }}</td> |
|
|
<td class="w-33 text-center">{{ item.amount|omitTo(qtyDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.price|multiple(item.amount, priceDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.price|multiple(item.amount, priceDecimals) }}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</div> |
|
|
</div> |
|
|
@ -61,12 +61,12 @@ |
|
|
<tbody class="buy-orders" :style="[{'height':symbol!='gitpusdt'?'':'470px!important'}]"> |
|
|
<tbody class="buy-orders" :style="[{'height':symbol!='gitpusdt'?'':'470px!important'}]"> |
|
|
<!-- 买单 反序数值 --> |
|
|
<!-- 买单 反序数值 --> |
|
|
<div class="order-item" v-for="item in reversed" :key="item.id"> |
|
|
<div class="order-item" v-for="item in reversed" :key="item.id"> |
|
|
<el-progress class="progress" type="line" :stroke-width="39" :percentage="getValue(item.amount)" :show-text="false" color="rgba(37, 188, 103, 0.15)"> |
|
|
<el-progress class="progress" type="line" :stroke-width="39" :percentage="getValue(item.amount)" :show-text="false" color="rgba(37, 188, 103, 0.15)" define-back-color="#121212"> |
|
|
</el-progress> |
|
|
</el-progress> |
|
|
<!-- 卖单 使用弹性盒子倒序排列 --> |
|
|
<!-- 卖单 使用弹性盒子倒序排列 --> |
|
|
<tr style="display:block;" class="tb-cells" @click.stop="handleOrder(item.price)"> |
|
|
<tr style="display:block;" class="tb-cells" @click.stop="handleOrder(item.price)"> |
|
|
<td class="w-33 green" title="pick this price to buy">{{ item.price|omitTo(priceDecimals) }}</td> |
|
|
<td class="w-33 green" title="pick this price to buy">{{ item.price|omitTo(priceDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.amount|omitTo(qtyDecimals) }}</td> |
|
|
<td class="w-33 text-center">{{ item.amount|omitTo(qtyDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.price|multiple(item.amount, priceDecimals) }}</td> |
|
|
<td class="w-33 text-right">{{ item.price|multiple(item.amount, priceDecimals) }}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</div> |
|
|
</div> |
|
|
@ -310,6 +310,7 @@ export default { |
|
|
left: 0; |
|
|
left: 0; |
|
|
top: 0; |
|
|
top: 0; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
|
|
|
width: 100%; |
|
|
z-index: 100; |
|
|
z-index: 100; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|