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-header :leftClick="() => {}" :left-arrow="false">
<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>
</view>
<view
@ -92,7 +93,7 @@
<sale :buyList="buyList" :sellList="sellList" :query="query"/>
</van-tab>
<van-tab :title="$t('exchange.d3')">
<latest-transaction :tradeList="tradeList" />
<latest-transaction :tradeList="tradeList.slice(0, 10)" />
</van-tab>
<!--<van-tab :title="$t('exchange.e7')">-->
<!-- <coin-info :query="query" />-->
@ -283,6 +284,7 @@ export default {
let list = [];
this.marketList.forEach((parentItem) => {
parentItem.marketInfoList.forEach((item) => {
item.price = parseFloat(Number(item.price).toFixed(8))
list.push(item);
});
});
@ -498,6 +500,9 @@ export default {
}
});
},
torouter(){
this._router.replace("/pages/base/index");
}
},
onUnload() {
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("contract.f5"), value: 0}
],
shixian: [
{label: this.$t("contract.d7"), value: 2},
{label: this.$t("contract.h8"), value: 1},
// shixian: [
// {label: this.$t("contract.d7"), value: 2},
// {label: this.$t("contract.h8"), value: 1},
],
// ],
canvasShow: false,
myCanvas: '',
detail: '',
@ -1070,7 +1070,13 @@ export default {
// #ifdef APP-PLUS
return plus.os.name
// #endif
}
},
shixian() {
return [
{ label: this.$t("contract.d7"), value: 2 },
{ label: this.$t("contract.h8"), value: 1 },
];
}
},
watch: {
maxNum(n) {

2
static/chart_main/sevencoin.js

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

Loading…
Cancel
Save