| | |
| | | // const ENV = process.env.NODE_ENV |
| | | export default { |
| | | // DOMAIN: "https://api.amcfcxn.org/", |
| | | DOMAIN: "https://api.bycarlyle.com/", |
| | | DOMAIN: "https://api.stcarlyle.com/", |
| | | // DOMAIN: "https://api.coinbtcs.com/", |
| | | // baseURL: ENV == 'development'?'https://api.guosen.org/':'https://api.guosen.org/', |
| | | // baseURL: 'http://localhost:8070', |
| | |
| | | // 0311 |
| | | // baseURL: "https://api.durocaspitall.com/", |
| | | // 本地 |
| | | // baseURL: "https://api.bycarlyle.com/", |
| | | baseURL: "http://192.168.10.6:8092/", |
| | | baseURL: "https://api.stcarlyle.com/", |
| | | // baseURL: "http://192.168.10.6:8092/", |
| | | util: { |
| | | image: "/util/image.html" // 图片上传 |
| | | } |
| | |
| | | let pageNumVal = c || this.pageNumVal; |
| | | let opt = { |
| | | pageNum: pageNumVal, |
| | | pageSize: 15 * this.num, |
| | | // pageSize: 15 * this.num, |
| | | pageSize: 15 , |
| | | stockPlate: "", |
| | | keyWords: this.sousuo, |
| | | stockType: stockType, |
| | |
| | | if (data.status === 0) { |
| | | if (pageNumVal !== 1) { |
| | | this.listArr = [...this.listArr, ...data.data.list]; |
| | | this.loadings = false; |
| | | // this.finished = true; |
| | | if (this.listArr.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | } else { |
| | | this.listArr = [] |
| | | if (this.active) { |
| | |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | // this.finished = true; |
| | | if (this.listArr.length % 20) { |
| | | console.log(this.listArr.length%15); |
| | | if (this.listArr.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | } else { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | // this.finished = true; |
| | | if (this.listArr.length % 20) { |
| | | if (this.listArr.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | } |
| | |
| | | if (this.zxactive === data.data.stockType) { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | if (this.listArr.length % 20) { |
| | | // this.finished = true; |
| | | if (this.listArr.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | } |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://wss.bycarlyle.com/websocket-server `, |
| | | path: `wss://ws.stcarlyle.com/websocket-server `, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |
| | |
| | | |
| | | onLoads() { |
| | | console.log("onLoads"); |
| | | // this.pageNumVal++; |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | this.loadings = true; |
| | | // this.finished = true; |
| | | this.pageNumVal++; |
| | | if(this.listArr.length==0){ |
| | | this.num = 1 |
| | | }else{ |