jhzh
2024-08-22 c55af1ea5bd790dec3b5e99d7a8073e86c1b09aa
src/page/trade/index.vue
@@ -13,7 +13,7 @@
               <trade-deep-data :selectValue="selectValue" @getList="getList" :showType="showType" :symbol="symbol"
                  v-if="symbol" :price="price" class="w-290 mr-30" />
            </keep-alive>
            <trade-order-area :symbol="symbol" :init-open="initOpena" :newname="newname" :init-close="initClose"
            <trade-order-area :key="newzuj" :symbol="symbol" :init-open="initOpena" :newname="newname" :init-close="initClose"
               :price="price" @ordered="onOrdereda" />
         </div>
@@ -258,6 +258,7 @@
            range: "",
            stop_price_profit: "",
            stop_price_loss: "",
            newzuj:0,
            initClose: {},
            asks: initArr, // 卖单
            bids: initArr, // 买单
@@ -369,11 +370,15 @@
            this.curTab = "fetchOrderListHold";
         }
         this.symbol = symbol;
         // if(this.symbol == 'ORBITAL'){
         //    this.symbol = 'mother'
         // }
         if (this.typeindex == 0) {
            this.inita(symbol);
         } else {
            this.init(symbol);
         }
         // this.handleQoutes()
      },
      methods: {
         ...mapActions("home", [SET_COIN_LIST]),
@@ -602,6 +607,7 @@
         },
         fetchDeepData(symbol) {
            console.log("sd");
            this.newzuj += 1
            _getDeepData(symbol).then((data) => {
               // 获取深度
               console.log(data);
@@ -706,7 +712,7 @@
               //console.log('开仓数据')
               Axios.tradeBuyToken({}).then((res) => {
                  this.initOpena = res.data;
                  console.log(this.initOpen.volume, res.data.volume, type);
                  console.log(this.initOpena.volume, res.data.volume, type,111111);
               });
            }
            if (type === "close" || !type) {
@@ -726,7 +732,8 @@
            if (type === "open" || type === "long" || type === "short" || !type) {
               let initFunTimer = null;
               let initFun = () => {
                  _initOpen(symbol)
                  _initOpen(symbol.toLowerCase())
                     .then((data) => {
                        this.initOpen = data;
                        clearTimeout(initFunTimer);