| | |
| | | |
| | | <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ (item.gid || item.stockGid) == "nse" ? "NSE" : "BSE" }} |
| | | {{ (item.gid || item.stockGid).toUpperCase() }} |
| | | </div> |
| | | </van-col> |
| | | |
| | |
| | | // api.positionzx; |
| | | let data; |
| | | if (a !== "") { |
| | | if (a == "IN") { |
| | | if (a == "JP") { |
| | | //印股 |
| | | opt.stockType = "JP"; |
| | | data = await api.getStockByType(opt); |
| | | } else { |
| | | //大宗 |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://wss.amcfcxn.org/websocket-server`, |
| | | path: `wss://wss.yanshiz.com/websocket-server `, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |