From 0a2ca0006953f5110620e64bb5eaffd331d2b741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Fri, 14 Apr 2023 14:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3h5=E4=B8=8D=E8=A7=A6=E5=8F=91?= =?UTF-8?q?swiper=E7=9A=84change=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/get/index.vue | 7 +++++++ src/pages/order/order.vue | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/pages/get/index.vue b/src/pages/get/index.vue index b42fdb6..f3febba 100644 --- a/src/pages/get/index.vue +++ b/src/pages/get/index.vue @@ -131,7 +131,14 @@ export default { this.switchTab(this.tabIndex); } if (this.getTabIndex != this.tabIndex) { + // #ifdef H5 + setTimeout(() => { + this.tabIndex = this.getTabIndex; + }, 10); + // #endif + // #ifndef H5 this.tabIndex = this.getTabIndex; + // #endif } }, onReady() {}, diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue index 76860c3..ef5b704 100644 --- a/src/pages/order/order.vue +++ b/src/pages/order/order.vue @@ -119,7 +119,14 @@ export default { this.switchTab(this.tabIndex); } if (this.orderTabIndex != this.tabIndex) { + // #ifdef H5 + setTimeout(() => { + this.tabIndex = this.orderTabIndex; + }, 10); + // #endif + // #ifndef H5 this.tabIndex = this.orderTabIndex; + // #endif } }, onReady() {},