From e93713070cbbc9c4ec0a49d6f3fe446101299eb3 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Wed, 16 Apr 2025 09:43:56 +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/index.vue | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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 })