diff --git a/pages/market/clue/index.vue b/pages/market/clue/index.vue index febdaed..010ad8e 100644 --- a/pages/market/clue/index.vue +++ b/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 })