预约成功后,显示服务顾问的姓名、电话,点击可以直接打电话
This commit is contained in:
parent
7c3f5cdc1b
commit
6ffb751aee
@ -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({
|
||||||
|
@ -26,6 +26,9 @@
|
|||||||
<!-- 汽车维修 -->
|
<!-- 汽车维修 -->
|
||||||
{{info.serviceName || "维修"}}
|
{{info.serviceName || "维修"}}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="baseInfo" @click="callPhone(info.adviserMobile)">
|
||||||
|
服务顾问:{{info.adviserName}} 联系电话:{{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 //仅为示例
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user