修复兑换记录不显示问题
This commit is contained in:
@@ -88,6 +88,7 @@
|
|||||||
tabClick(item) {
|
tabClick(item) {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
this.tabIndex = item.type;
|
this.tabIndex = item.type;
|
||||||
|
this.query.page=1;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
@@ -100,7 +101,7 @@
|
|||||||
this.isLoading=true
|
this.isLoading=true
|
||||||
this.$Request.getT(url, this.query).then(res => {
|
this.$Request.getT(url, this.query).then(res => {
|
||||||
this.isLoading=false
|
this.isLoading=false
|
||||||
this.isEnd=this.query.page>=res.data.totalPage
|
this.isEnd=this.query.page>=( this.tabIndex == 1?res.data.totalPage:res.page.totalPage)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (this.tabIndex == 1) {
|
if (this.tabIndex == 1) {
|
||||||
this.list = [...this.list, ...res.data.records]
|
this.list = [...this.list, ...res.data.records]
|
||||||
|
|||||||
Reference in New Issue
Block a user