10.10综合交易所原始源码_移动端
1
7 days ago 4f9044ae2a9f2db03bbb916bc5f6dfd12916361d
src/views/trade/components/OptionsContract.vue
@@ -456,6 +456,7 @@
    },
    fetchOrderListCur(symbol) {
      if (!this.userInfo || !this.userInfo.token) return
      symbol = ''
      const params = { symbol, type: 'orders', page_no: 1 }
      _contractApplyOrderList(params).then(data => { this.orderCur = data || [] })
      this.clearTimer()
@@ -465,6 +466,8 @@
    },
    fetchOrderListHold(symbol) {
      if (!this.userInfo || !this.userInfo.token) return
      symbol = ''
      const symbolType = this.type || 'cryptos'
      const obj = { symbol, type: 'orders', page_no: 1, symbolType }
      contractOrder(obj).then(data => {
@@ -480,11 +483,13 @@
    fetchFutrueHoldList(symbol) {
      if (!this.userInfo || !this.userInfo.token) return
      const symbolType = this.type || 'cryptos'
      symbol = ''
      _futrueOrderList(symbol, 'orders', 1, symbolType).then(data => {
        this.futrueHold = (data || []).sort(this.sortData)
      })
      this.clearTimer()
      this.timer = setInterval(() => {
        symbol = ''
        _futrueOrderList(symbol, 'orders', 1, symbolType).then(data => {
          this.futrueHold = (data || []).sort(this.sortData)
        })
@@ -492,6 +497,7 @@
    },
    fetchFutrueHistory(symbol) {
      const symbolType = this.type || 'cryptos'
      symbol = ''
      _futrueOrderList(symbol, 'hisorders', 1, symbolType).then(data => {
        this.futrueHistroy = data || []
      })