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();
}