预约成功后,显示服务顾问的姓名、电话,点击可以直接打电话

This commit is contained in:
xiaofajia 2024-11-06 16:36:55 +08:00
parent 7c3f5cdc1b
commit 6ffb751aee
2 changed files with 10 additions and 0 deletions

View File

@ -258,6 +258,8 @@
// //
this.formData.adviserId = this.servicerList[this.servicerIndex].id this.formData.adviserId = this.servicerList[this.servicerIndex].id
this.formData.adviserName = this.servicerList[this.servicerIndex].nickname this.formData.adviserName = this.servicerList[this.servicerIndex].nickname
this.info.adviserName = this.servicerList[this.servicerIndex].nickname
this.info.adviserMobile = this.servicerList[this.servicerIndex].mobile
} }
if(""==this.chooseTime){ if(""==this.chooseTime){
uni.showToast({ uni.showToast({

View File

@ -26,6 +26,9 @@
<!-- 汽车维修 --> <!-- 汽车维修 -->
{{info.serviceName || "维修"}} {{info.serviceName || "维修"}}
</view> </view>
<view class="baseInfo" @click="callPhone(info.adviserMobile)">
服务顾问{{info.adviserName}}&nbsp;&nbsp;联系电话{{info.adviserMobile}}
</view>
</view> </view>
</view> </view>
@ -63,6 +66,11 @@
uni.redirectTo({ uni.redirectTo({
url: '/pages/myReservation/myReservation' url: '/pages/myReservation/myReservation'
}) })
},
callPhone(phone){
uni.makePhoneCall({
phoneNumber: phone //
});
} }
} }
} }