Browse Source

修改合约平仓弹出框组件问题、点击k线没有显示数据、实时成交只显示10条、点击返回时直接返回到首页

master
liaoxinyu 1 month ago
parent
commit
d11544ef98
  1. 9
      pages/exchange/index.vue
  2. 16
      pages/exchange/open-position.vue
  3. 2
      static/chart_main/sevencoin.js

9
pages/exchange/index.vue

@ -2,7 +2,8 @@
<v-page> <v-page>
<v-header :leftClick="() => {}" :left-arrow="false"> <v-header :leftClick="() => {}" :left-arrow="false">
<template #left> <template #left>
<view @click="$back(-1)"> <!-- <view @click="$back(-1)"> -->
<view @click="torouter">
<i class="van-icon van-icon-arrow-left van-nav-bar__arrow"></i> <i class="van-icon van-icon-arrow-left van-nav-bar__arrow"></i>
</view> </view>
<view <view
@ -92,7 +93,7 @@
<sale :buyList="buyList" :sellList="sellList" :query="query"/> <sale :buyList="buyList" :sellList="sellList" :query="query"/>
</van-tab> </van-tab>
<van-tab :title="$t('exchange.d3')"> <van-tab :title="$t('exchange.d3')">
<latest-transaction :tradeList="tradeList" /> <latest-transaction :tradeList="tradeList.slice(0, 10)" />
</van-tab> </van-tab>
<!--<van-tab :title="$t('exchange.e7')">--> <!--<van-tab :title="$t('exchange.e7')">-->
<!-- <coin-info :query="query" />--> <!-- <coin-info :query="query" />-->
@ -283,6 +284,7 @@ export default {
let list = []; let list = [];
this.marketList.forEach((parentItem) => { this.marketList.forEach((parentItem) => {
parentItem.marketInfoList.forEach((item) => { parentItem.marketInfoList.forEach((item) => {
item.price = parseFloat(Number(item.price).toFixed(8))
list.push(item); list.push(item);
}); });
}); });
@ -498,6 +500,9 @@ export default {
} }
}); });
}, },
torouter(){
this._router.replace("/pages/base/index");
}
}, },
onUnload() { onUnload() {
this.isShow = false; this.isShow = false;

16
pages/exchange/open-position.vue

@ -994,11 +994,11 @@ export default {
// {label: this.$t("exchange.d6") + this.$t("contract.g5"), value: 0} // {label: this.$t("exchange.d6") + this.$t("contract.g5"), value: 0}
{label: this.$t("contract.f5"), value: 0} {label: this.$t("contract.f5"), value: 0}
], ],
shixian: [ // shixian: [
{label: this.$t("contract.d7"), value: 2}, // {label: this.$t("contract.d7"), value: 2},
{label: this.$t("contract.h8"), value: 1}, // {label: this.$t("contract.h8"), value: 1},
], // ],
canvasShow: false, canvasShow: false,
myCanvas: '', myCanvas: '',
detail: '', detail: '',
@ -1070,7 +1070,13 @@ export default {
// #ifdef APP-PLUS // #ifdef APP-PLUS
return plus.os.name return plus.os.name
// #endif // #endif
} },
shixian() {
return [
{ label: this.$t("contract.d7"), value: 2 },
{ label: this.$t("contract.h8"), value: 1 },
];
}
}, },
watch: { watch: {
maxNum(n) { maxNum(n) {

2
static/chart_main/sevencoin.js

@ -271,7 +271,7 @@ $(function () {
} }
return dateStr return dateStr
} }
aadjustToEasternTime(date) { adjustToEasternTime(date) {
let timestamp; let timestamp;
// 判断日期是否在夏令时 // 判断日期是否在夏令时

Loading…
Cancel
Save