Эх сурвалжийг харах

修改我的仓库已兑换列表

DELL 3 жил өмнө
parent
commit
0f3b59acf2

+ 3 - 1
packagePrize/prize/index.vue

@@ -238,10 +238,12 @@
 				// this.statusIndex = index
 				// this.statusIndex = index
 				if(index == 0 ){
 				if(index == 0 ){
 					this.statusIndex = 1 //待提货
 					this.statusIndex = 1 //待提货
+					this.pageNum = 1
 					this.getList()
 					this.getList()
 				}
 				}
 				if(index == 1 ){
 				if(index == 1 ){
 					this.statusIndex = 3 //已兑换
 					this.statusIndex = 3 //已兑换
+					this.pageNum = 1
 					this.getListTwo()
 					this.getListTwo()
 				}
 				}
 			},
 			},
@@ -393,7 +395,7 @@
 			if (this.total > this.pageNum * 20) {
 			if (this.total > this.pageNum * 20) {
 				setTimeout(() => {
 				setTimeout(() => {
 					++this.pageNum
 					++this.pageNum
-					this.getList()
+					this.statusIndex == 3?this.getListTwo():this.getList()
 				}, 500)
 				}, 500)
 			} else {
 			} else {
 				uni.$u.toast('已经到底了')
 				uni.$u.toast('已经到底了')