123
dcc
2024-06-28 25b2ba1cf86bc3439e7ad2acf2cd4a9ea7e4b0ed
src/page/perpetualContract/index.vue
@@ -1,9 +1,11 @@
<template>
  <div :key="symbol" class="pb-108 no_touch">
    <!-- 头部区 -->
    <ContractHeader
      :symbol="symbol"
     :newname="newname"
      :range="range"
      :selectIndex="selectIndex"
      :balance="userInfo.balance"
@@ -62,6 +64,7 @@
          :init-futrue="initFutrue"
          @ordered="onOrdered"
          @changeValueBack="changeValueBack"
        @iszyzs="oniszyzs"
        >
        </PerpetualOpen>
        <div class="line"></div>
@@ -78,6 +81,7 @@
          :futrue-histroy="futrueHistroy"
          @tab="onTab"
          @recall="onRecall"
        @iszyzs="oniszyzs"
        >
        </PerpetualOrder>
      </div>
@@ -158,6 +162,7 @@
      });
    }
    return {
      quote: {},
      initTimer: null,
      keyIndex: 0,
@@ -168,6 +173,7 @@
      balance: 0,
      symbol: "",
      price: "",
     newname:'',
      range: "",
      stop_price_profit: "",
      stop_price_loss: "",
@@ -215,6 +221,10 @@
      this.closeSocket();
      this.init(symbol);
    },
   oniszyzs(){
      debugger
      this.iszyzs = true
   },
    onRecall() {
      // 撤单or 平仓 evt
      this.clearTimer();
@@ -297,6 +307,7 @@
        const cur = data[0];
        this.price = cur.close;
        this.range = cur.change_ratio + "";
      this.newname = cur.name
        this.quote = cur;
        this.updateKey++;
      }
@@ -591,6 +602,7 @@
</script>
<style lang="scss" scoped>
//.list-enter-active, .list-leave-active {
//  transition: all .5s;
//  transform: translateY(30px)