From ad029e6f7543aff69ec6aa010ac342806c1db063 Mon Sep 17 00:00:00 2001 From: nyoung <12190070+nyoungo@user.noreply.gitee.com> Date: Fri, 23 Aug 2024 18:57:15 +0800 Subject: [PATCH] 1 --- pages/my/carlist.vue | 5 ++++- pages/my/my.vue | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/my/carlist.vue b/pages/my/carlist.vue index 44f6078..c06c209 100644 --- a/pages/my/carlist.vue +++ b/pages/my/carlist.vue @@ -138,7 +138,10 @@ tabBar, VNavigationBar }, - onLoad() { + onLoad(option) { + if(option.id){ + this.gindex = option.id + } this.getthree() this.getlist() }, diff --git a/pages/my/my.vue b/pages/my/my.vue index 100b392..6c3311a 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -40,7 +40,7 @@ 添加车辆,查看更多救援信息 - 去还车 + 去还车 @@ -329,6 +329,11 @@ uni.navigateTo({ url: '/pages/rescue/historylist?id=4' }) + }, + goHuanche(){ + uni.navigateTo({ + url: '/pages/my/carlist?id=3' + }) }, gogogog() { uni.navigateTo({