Browse Source

接口数据返回体改变

gcz 3 years ago
parent
commit
8f8e877614
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/center/invoice/invoice.vue

+ 2 - 2
pages/center/invoice/invoice.vue

@@ -100,11 +100,11 @@ export default {
 			// 完成:   orderStatu = 4-完成
 			this.$u.api.getOrderList(param)
 			.then(res=>{
-				for(let item of res.data.rows){
+				for(let item of res.data.pageInfo.rows){
 					this.orderList[orderType.index].push(item);
 				}
 				console.log('this.list[orderType.index]',this.list[orderType.index]);
-				this.list[this.current].total = res.data.total;
+				this.list[this.current].total = res.data.pageInfo.total;
 				this.list[orderType.index].pageNum++;
 				if(this.orderList[this.current].length>=this.list[this.current].total){
 					this.loadStatus.splice(this.list[orderType.index].index,1,"nomore");