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 = '添加车辆信息'