From 9343ebfb2dca8552ca87049cbf596cfc8707e4a5 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Wed, 16 Apr 2025 09:48:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(market):=20=E6=B7=BB=E5=8A=A0=E6=8B=A8?= =?UTF-8?q?=E6=89=93=E7=94=B5=E8=AF=9D=E5=8A=9F=E8=83=BD=E5=B9=B6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=80=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在拨打电话前增加号码非空校验- 添加通过记录到服务器 - 处理通话记录失败的错误提示 --- pages/market/clue/add_clues.vue | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue index 241b285..d02fffa 100644 --- a/pages/market/clue/add_clues.vue +++ b/pages/market/clue/add_clues.vue @@ -779,8 +779,29 @@ 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 })