| | |
| | | <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> |
| | | |
| | |
| | | range: "", |
| | | stop_price_profit: "", |
| | | stop_price_loss: "", |
| | | newzuj:0, |
| | | initClose: {}, |
| | | asks: initArr, // 卖单 |
| | | bids: initArr, // 买单 |
| | |
| | | } else { |
| | | this.init(symbol); |
| | | } |
| | | // this.handleQoutes() |
| | | }, |
| | | methods: { |
| | | ...mapActions("home", [SET_COIN_LIST]), |
| | |
| | | }, |
| | | fetchDeepData(symbol) { |
| | | console.log("sd"); |
| | | this.newzuj += 1 |
| | | _getDeepData(symbol).then((data) => { |
| | | // 获取深度 |
| | | console.log(data); |
| | |
| | | //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) { |