jhzh
2024-08-12 3252eb2d24b8c2ff7490d842227466bb8b6e0014
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, // 买单
@@ -374,6 +375,7 @@
         } else {
            this.init(symbol);
         }
         // this.handleQoutes()
      },
      methods: {
         ...mapActions("home", [SET_COIN_LIST]),
@@ -602,6 +604,7 @@
         },
         fetchDeepData(symbol) {
            console.log("sd");
            this.newzuj += 1
            _getDeepData(symbol).then((data) => {
               // 获取深度
               console.log(data);
@@ -706,7 +709,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) {