| | |
| | | |
| | | <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ (item.gid || item.stockGid) == "nse" ? "NSE" : "BSE" }} |
| | | {{ (item.gid || item.stockGid) == "NSE" ? "NSE" : "BSE" }} |
| | | </div> |
| | | </van-col> |
| | | |
| | |
| | | if (pageNumVal !== 1) { |
| | | this.listArr = [...this.listArr, ...data.data.list]; |
| | | } else { |
| | | console.log(this.active,'this.active'); |
| | | if (this.active) { |
| | | if (this.active === data.data.stockType) { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | // this.finished = true; |
| | | if (!this.listArr.length || (this.listArr.length && this.listArr.length % 20)) { |
| | | if (this.listArr.length % 20) { |
| | | this.finished = true; |
| | | } |
| | | } else { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | // this.finished = true; |
| | | if (!this.listArr.length || (this.listArr.length && this.listArr.length % 20)) { |
| | | if (this.listArr.length % 20) { |
| | | this.finished = true; |
| | | } |
| | | } |
| | |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | if (!this.listArr.length || (this.listArr.length && this.listArr.length % 20)) { |
| | | if (this.listArr.length % 20) { |
| | | this.finished = true; |
| | | } |
| | | } |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://ws.is4vc.com/websocket-server`, |
| | | path: `wss://ws.durocaspitall.com/websasdfasdfocket-serasdfsver`, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |
| | | this.Trade.init(); |
| | | }, |
| | | getTradeMessage({ data }) { |