From 35f712713460f93108f3c8c98efaaf2ab72e48ed Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Sun, 2 Aug 2026 11:17:59 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5590=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E8=BF=9B=E5=85=A5=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5=E6=97=B6=EF=BC=8C=E5=BA=94?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E5=85=A8=E9=83=A8=E5=88=86=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=9C=A8=E9=BB=98=E8=AE=A4=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5=E6=98=AF=E5=BE=85?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=88=86=E7=B1=BB=EF=BC=8C3=E4=B8=AA?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AE=A2=E5=8D=95=E5=88=86=E7=B1=BB=E9=83=BD?= =?UTF-8?q?=E6=98=AF=E5=90=8C=E6=A0=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/MyOrder/index.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 0981754..e513295 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -867,7 +867,7 @@ export default { this.orderTypeTabChange({ ...currentOrderTypeTab, index: this.orderTypeTabList[this.orderTypeTabIndex] ? this.orderTypeTabIndex : 0 - }) + }, { resetFilters: false }) }, onShareAppMessage() { uni.updateShareMenu({ @@ -884,6 +884,12 @@ export default { getPageQuery() { return (this.$yroute && this.$yroute.query) || {} }, + resetFilterConditions({ resetType = false } = {}) { + this.keyword = '' + if (resetType) { + this.type = 0 + } + }, getDefaultTabListByOrderType(orderType = this.orderType) { if (orderType === 'travel') { return [ @@ -1793,15 +1799,20 @@ export default { query.type = this.type this.changeType() }, - orderTypeTabChange(item) { + orderTypeTabChange(item, options = {}) { + const { resetFilters = true } = options this.orderTypeTabIndex = item.index this.orderType = item.orderType const query = this.getPageQuery() query.tabIndex = this.orderTypeTabIndex this.updateTabListByOrderType() - if (this.type > this.tabList.length - 1) { + if (resetFilters) { + this.type = 0 + this.resetFilterConditions() + } else if (this.type > this.tabList.length - 1) { this.type = 0 } + query.type = this.type this.changeType(this.type) }, updateTabListByOrderType() {