预约成功后,显示服务顾问的姓名、电话,点击可以直接打电话
This commit is contained in:
parent
7c3f5cdc1b
commit
6ffb751aee
@ -258,6 +258,8 @@
|
||||
//设置选择的服务顾问
|
||||
this.formData.adviserId = this.servicerList[this.servicerIndex].id
|
||||
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){
|
||||
uni.showToast({
|
||||
|
@ -26,6 +26,9 @@
|
||||
<!-- 汽车维修 -->
|
||||
{{info.serviceName || "维修"}}
|
||||
</view>
|
||||
<view class="baseInfo" @click="callPhone(info.adviserMobile)">
|
||||
服务顾问:{{info.adviserName}} 联系电话:{{info.adviserMobile}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -63,6 +66,11 @@
|
||||
uni.redirectTo({
|
||||
url: '/pages/myReservation/myReservation'
|
||||
})
|
||||
},
|
||||
callPhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone //仅为示例
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user