Browse Source

修改合约新增值

master
liaoxinyu 12 months ago
parent
commit
8c3c00069d
  1. 7
      pages/base/home.vue
  2. 20
      pages/exchange/contract-history.vue
  3. 4
      static/chart_main/sevencoin.js

7
pages/base/home.vue

@ -104,7 +104,7 @@
</div>
</div>
<view class="index_partners__3BIDL" style="background: linear-gradient(90deg, #1fa2ff, #12d8fa, #a6ffcb);color: #000;margin-bottom: 30px;">
<view class="index_partners__3BIDL" style="margin-bottom: 30px;">
<view class="rfm-marquee-container">
<view class="rfm-marquee">
<view class="rfm-initial-child-container">
@ -2609,7 +2609,10 @@ export default {
overflow: hidden;
padding: 16px 0;
margin-bottom: 10px;
background: #fff;
// background: #fff;
color: #fff;
background: #1e2834;
.rfm-marquee-container{
overflow-x: hidden;
display: flex;

20
pages/exchange/contract-history.vue

@ -27,9 +27,9 @@
<div class="p-x-md p-y-xs">
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.a6')}}</div>
<div class="color-light">{{cals(item.side,item.order_type)}}</div>
<div class="color-light" :class="item.order_type==1?'backgroundcol2':'backgroundcol1'">{{cals(item.side,item.order_type)}}</div>
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="row d-flex m-y-mini justify-between" v-if="0">
<div class="label fn-sm">{{$t('contract.a7')}}/{{$t('contract.a8')}}</div>
<div class="color-light">{{item.traded_amount}}/{{item.amount}}</div>
</div>
@ -49,6 +49,10 @@
<div class="label fn-sm">{{$t('contract.c7')}}</div>
<div class="color-light" :class="item.profit>0?'increace1':item.profit<0?'decreace1':''">{{item.profit*1||'--'}}</div>
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.c7')}}</div>
<div class="color-light" :class="item.profit>0?'increace1':item.profit<0?'decreace1':''">{{item.profitRate||'--'}}</div>
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.b3')}}</div>
<div class="color-light">{{ status(item.status) }}</div>
@ -410,4 +414,16 @@ export default {
.decreace1{
color: #ea3131 !important;
}
.backgroundcol1{
width: 50px;
border-radius: 4px;
text-align: center;
background-image: linear-gradient(to right, #D31027, #EA384D);
}
.backgroundcol2{
width: 50px;
border-radius: 4px;
text-align: center;
background-image: linear-gradient(to right, #2fad66, #9de686);
}
</style>

4
static/chart_main/sevencoin.js

@ -20,8 +20,8 @@ $(function () {
let dark = {
'volumePaneSize': "small",//large, medium, small, tiny
"paneProperties.background": "#2b2b37",
"paneProperties.vertGridProperties.color": "#49495F",
"paneProperties.horzGridProperties.color": "#49495F",
"paneProperties.vertGridProperties.color": "#2b2b37",
"paneProperties.horzGridProperties.color": "#2b2b37",
"scalesProperties.backgroundColor": "#2b2b37",
"scalesProperties.textColor": "#fff",
"scalesProperties.lineColor": "#49495F",

Loading…
Cancel
Save