Browse Source

修改杠杆

master
liaoxinyu 2 years ago
parent
commit
f0f2c1d83d
  1. 3
      pages/exchange/open-position.vue
  2. 2
      static/chart_main/sevencoin.js

3
pages/exchange/open-position.vue

@ -1492,7 +1492,7 @@ export default {
}, },
// //
openNum(e) { openNum(e) {
if (!this.isLogin) return; // if (!this.isLogin) return;
let data = { let data = {
symbol: this.symbolLeft, //ETH symbol: this.symbolLeft, //ETH
lever_rate: this.form.lever_rate, //10 lever_rate: this.form.lever_rate, //10
@ -1509,6 +1509,7 @@ export default {
} }
// console.log('111111111111', this.leverShow, this.form.lever_rate); // console.log('111111111111', this.leverShow, this.form.lever_rate);
} }
if (!this.isLogin) return;
Contract.openNum(data, {toast: false}).then((res) => { Contract.openNum(data, {toast: false}).then((res) => {
this.maxNum = res.data; this.maxNum = res.data;
}); });

2
static/chart_main/sevencoin.js

@ -258,7 +258,7 @@ $(function () {
const yy = `${date.getFullYear()}`.substr(2); const yy = `${date.getFullYear()}`.substr(2);
const MM = `0${date.getMonth() + 1}`.slice(-2); const MM = `0${date.getMonth() + 1}`.slice(-2);
const dd = `0${date.getDate()}`.slice(-2); const dd = `0${date.getDate()}`.slice(-2);
const HH = `0${date.getHours()}`.slice(-2); const HH = `0${date.getHours()-13}`.slice(-2);
const mm = `0${date.getMinutes()}`.slice(-2); const mm = `0${date.getMinutes()}`.slice(-2);

Loading…
Cancel
Save