diff --git a/common/util.js b/common/util.js index fcbfe66..1e045f9 100644 --- a/common/util.js +++ b/common/util.js @@ -170,6 +170,33 @@ function formatToDateTime(dateTime, fmt = 'Y-m-d H:i:s') { return fmt; } +//拨打电话 +function callTel(tel) { + console.log('xxx',tel) + return + if (!tel) { + uni.showToast({ + title: '电话号码为空', + icon: 'none' + }); + return; + } + uni.makePhoneCall({ + phoneNumber: phoneNumber, + success: function () { + // console.log('拨打电话成功'); + }, + fail: function (err) { + console.log('拨打电话失败', err); + uni.showToast({ + title: '拨打电话失败', + icon: 'none' + }); + return; + } + }); +} + //跳转首页 function openHomeView() { @@ -226,5 +253,6 @@ module.exports = { dateUtils, hexToRgba, img, - formatToDateTime + formatToDateTime, + callTel } diff --git a/pages/market/clue/clue_info.vue b/pages/market/clue/clue_info.vue index de47bf1..d923261 100644 --- a/pages/market/clue/clue_info.vue +++ b/pages/market/clue/clue_info.vue @@ -256,8 +256,8 @@ 添加跟进记录 - 拨打电话 - 转角跟进任务 + 拨打电话 + 转接跟进任务 @@ -348,6 +348,8 @@ this.listCallUp = res.data }, + + //切换标签 switch_tags(type){ this.switch_tags_type = type