From 2634017fb35eee72a989dee2e35fdf6f46be32fe Mon Sep 17 00:00:00 2001 From: misworga831 Date: Mon, 16 Oct 2023 18:33:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=94=AE=E5=90=8E?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/afterSales/afterSales.vue | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pages/order/afterSales/afterSales.vue b/pages/order/afterSales/afterSales.vue index f229e4b..6916648 100644 --- a/pages/order/afterSales/afterSales.vue +++ b/pages/order/afterSales/afterSales.vue @@ -12,11 +12,11 @@ @@ -239,13 +239,13 @@ export default { pageSize: 10, }, status: "loadmore", - orderSn: "", // 搜索订单sn + keywords: "", // 搜索订单sn }; }, onLoad(options) { this.orderList = []; this.params.pageNumber = 1; - if (options.orderSn) this.params.orderSn = options.orderSn; + if (options.orderSn) this.params.keywords = options.orderSn; this.searchOrderList(this.current); }, onPullDownRefresh() { @@ -261,6 +261,14 @@ export default { this.orderList = []; this.searchOrderList(current); }, + // 清空 + clear(current){ + this.params.pageNumber = 1; + this.logParams.pageNumber = 1; + this.params.keywords = '' + this.orderList = []; + this.searchOrderList(current); + }, /** * 切换tab页时,初始化数据 */ @@ -282,7 +290,7 @@ export default { */ searchOrderList(index) { if (index == 0) { - this.orderSn ? (this.params.orderSn = this.orderSn) : ""; + this.keywords ? (this.params.keywords = this.keywords) : ""; this.getOrderList(); } else { this.logParams = { @@ -294,7 +302,7 @@ export default { if (index === 1) { this.logParams.serviceStatus = "APPLY"; } - this.orderSn ? (this.logParams.orderSn = this.orderSn) : ""; + this.keywords ? (this.logParams.keywords = this.keywords) : ""; this.orderList = []; this.getAfterSaleLogList(); }