Browse Source

修改币币页面的k线时间

master
liaoxinyu 1 year ago
parent
commit
827b0fc00e
  1. 6
      pages/exchange/time-sharing.vue

6
pages/exchange/time-sharing.vue

@ -62,8 +62,9 @@ export default {
</script> </script>
<script module="highstock" lang="renderjs"> <script module="highstock" lang="renderjs">
import highstock from "highcharts/highstock"; import highstock from "highcharts/highstock";
import date from "@/utils/class/date.js";
export default { export default {
// parseTime(item.ts, false, "{h}:{i}:{s}")
computed: { computed: {
list() { list() {
return this.chartTradList.map((item) => { return this.chartTradList.map((item) => {
@ -81,6 +82,7 @@ export default {
}; };
}, },
methods: { methods: {
parseTime: date.parseTime,
changeConfig(config){ changeConfig(config){
this.task(config) this.task(config)
}, },
@ -104,7 +106,7 @@ export default {
intiChart($box) { intiChart($box) {
highstock.setOptions({ highstock.setOptions({
global: { global: {
timezoneOffset: -8 * 60, timezoneOffset: 4 * 60,
}, },
}); });

Loading…
Cancel
Save