diff --git a/src/components/CommonFooter.vue b/src/components/CommonFooter.vue index 70630b3..2d39458 100644 --- a/src/components/CommonFooter.vue +++ b/src/components/CommonFooter.vue @@ -257,10 +257,10 @@ diff --git a/src/views/exchange/index.vue b/src/views/exchange/index.vue index f432104..86c98f8 100644 --- a/src/views/exchange/index.vue +++ b/src/views/exchange/index.vue @@ -78,7 +78,7 @@ - + @@ -180,7 +180,8 @@ export default { currentTab: "opens", // orders显示的tab price_cny:0, - currentIcon: '' + currentIcon: '', + page: 1 } }, @@ -286,7 +287,12 @@ export default { currentTab() { // tab切换时自动更新 this.getOrders(); - } + }, + page() { + if (this.currentTab == "histories") { // 历史委托 + this.getHistories(); + } + } }, methods: { @@ -460,6 +466,7 @@ export default { if (this.isLogin) { Order.getHistoryEntrust({ symbol: this.marketInfo.pair_name, + page:this.page }) .then(data => { this.ordersHistory = data; diff --git a/src/views/exchange/order-list.vue b/src/views/exchange/order-list.vue index 72fc89e..0734ae6 100644 --- a/src/views/exchange/order-list.vue +++ b/src/views/exchange/order-list.vue @@ -182,6 +182,11 @@ {{ $t("common.notData") }} +
+ + +
@@ -254,8 +259,11 @@ export default { }) .catch(err => {}); } - - } + }, + changePagination(idx) { + console.log(idx); + this.$emit("Pagination", idx); + } }, created() { console.log(this.ordersHistory);