| | |
| | | this.listArr = []; |
| | | this.pageNumVal = 1; |
| | | this.loadings = true; |
| | | this.getStock(e, this.zxactive, 1); |
| | | }, |
| | | zxactive(e) { |
| | | this.finished = false; |
| | |
| | | data = await api.positionzx(opt); |
| | | } |
| | | |
| | | this.loadings = false; |
| | | if (data.status === 0) { |
| | | // if (data.data.list.length < 15) { |
| | | this.finished = true; |
| | | // } |
| | | if (pageNumVal !== 1) { |
| | | this.listArr = [...this.listArr, ...data.data.list]; |
| | | } else { |
| | | this.listArr = data.data.list; |
| | | if (this.active) { |
| | | if (this.active === data.data.stockType) { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | } |
| | | } else { |
| | | if (this.zxactive === data.data.stockType) { |
| | | this.listArr = data.data.list; |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | } |
| | | } |
| | | } |
| | | } else { |
| | | this.finished = true; |