Browse Source

修改股票页面的布局,股票页面显示的名字不对

master
liaoxinyu 1 week ago
parent
commit
f577ea13f5
  1. 9
      src/views/exchangeStock/book-trades.vue
  2. 11
      src/views/exchangeStock/index.vue

9
src/views/exchangeStock/book-trades.vue

@ -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;

11
src/views/exchangeStock/index.vue

@ -49,7 +49,8 @@
trigger="click" trigger="click"
> >
<div slot="reference"> <div slot="reference">
{{ activeContract.pair_name }} <!-- {{ activeContract.pair_name }} -->
{{ activeContract.coin_name }}
<el-button size="mini"> <el-button size="mini">
<i class="el-icon-arrow-down"></i> <i class="el-icon-arrow-down"></i>
</el-button> </el-button>
@ -60,7 +61,7 @@
> >
<template v-for="parent in marketList"> <template v-for="parent in marketList">
<div class="px-3 text-primary" :key="parent.coin_name"> <div class="px-3 text-primary" :key="parent.coin_name">
{{ parent.coin_name }} <!-- {{ parent.coin_name }} -->
</div> </div>
<table class="table" :key="parent.coin_name + 1"> <table class="table" :key="parent.coin_name + 1">
<thead> <thead>
@ -81,7 +82,8 @@
@click="ispopover1(item.symbol)" @click="ispopover1(item.symbol)"
> >
<td class="w-10/24"> <td class="w-10/24">
{{ item.symbol }}/{{ parent.coin_name }} <!-- {{ item.symbol }}/{{ parent.coin_name }} -->
{{ item.coin_name }}
</td> </td>
<td <td
class="w-7/24 " class="w-7/24 "
@ -686,6 +688,9 @@
Market.getstockMarketList().then(data => { Market.getstockMarketList().then(data => {
this.marketList = data; this.marketList = data;
// if (!this.symbol) { // symbol
// this.symbol = _.nth(data).marketInfoList[0].symbol;
// }
}).catch(err => {}); }).catch(err => {});
// this.update(); // this.update();
}, },

Loading…
Cancel
Save