From 572b9017cf48e68012d1fb0727817bdefa9b4ce6 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 6 Dec 2024 14:04:09 +0800 Subject: [PATCH] 1 --- pages-order/addOrder/addOrder.vue | 5 +++++ pages/myCar/addCarUser.vue | 3 +++ 2 files changed, 8 insertions(+) diff --git a/pages-order/addOrder/addOrder.vue b/pages-order/addOrder/addOrder.vue index 68616ba..55f915e 100644 --- a/pages-order/addOrder/addOrder.vue +++ b/pages-order/addOrder/addOrder.vue @@ -714,6 +714,11 @@ export default { uni.navigateTo({ url: '/pages/myCar/addCarUser?userInfo='+JSON.stringify(this.userInfo) }) + }else{ + //没查出来 + uni.navigateTo({ + url: '/pages/myCar/addCarUser?phoneNum='+this.phone + }) } }) }else{ diff --git a/pages/myCar/addCarUser.vue b/pages/myCar/addCarUser.vue index ef47e20..784bcb0 100644 --- a/pages/myCar/addCarUser.vue +++ b/pages/myCar/addCarUser.vue @@ -211,6 +211,9 @@ export default { this.userInfo.sex = thisUserInfoObj.sex this.userInfo.phoneNumber = thisUserInfoObj.phoneNumber } + if(data && data.hasOwnProperty("phoneNum")){ + this.userInfo.phoneNumber = data.phoneNum + } this.bo1 = false; this.bo2 = true; this.pageTitle = '添加车辆信息'