MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / makePhoneCall

Method makePhoneCall

mini_program/common/Tools.js:686–702  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

684 }
685
686 makePhoneCall(e) {
687 let phone = "";
688 if (e.currentTarget) {
689 var dataset = e.currentTarget.dataset;
690 phone = dataset.phone;
691 }else if(this.isObject(e) && e.phone){
692 phone = e.phone
693 }else{
694 phone = e
695 }
696 if (phone.indexOf("tel:") !== -1) {
697 phone = phone.substr(4);
698 }
699 wx.makePhoneCall({
700 phoneNumber: phone
701 })
702 }
703
704 navigateTo(url, params) {
705 if (url.startsWith("tel:")) {

Callers 1

navigateToMethod · 0.95

Calls 1

isObjectMethod · 0.95

Tested by

no test coverage detected