Browse Source

feat(market): 添加拨打电话功能并记录通话

- 增加了拨打电话前的号码非空校验
- 添加了拨打电话时的通过记录功能
- 优化了拨打电话流程,提高了用户体验
master
liutong 12 months ago
parent
commit
e93713070c
  1. 25
      pages/market/clue/index.vue

25
pages/market/clue/index.vue

@ -319,8 +319,31 @@ export default {
},
//
dialTel(item) {
async dialTel(item) {
let tel = item.student_phone
if (!tel) {
uni.showToast({
title: '电话号码为空',
icon: 'none'
});
return;
}
let param = {
sales_id: item.id//线id
}
let res = await marketApi.setCallUp(param)//
if (res.code != 1) {
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
uni.makePhoneCall({
phoneNumber: tel
})

Loading…
Cancel
Save