E应用拨打普通电话

axml代码:

<view class="row phone" onTap="getPhone">13157107192</view>

js代码:

// 拨打电话
    getPhone(){
      dd.showCallMenu({
          phoneNumber: '13157107192', // 期望拨打的电话号码
          code: '+86', // 国家代号,中国是+86
          showDingCall: false, // 是否显示钉钉电话
          success:function(res){
            console.log('成功')
          },
          fail:function(err){
            console.log('失败')
          }
      });
    }

猜你喜欢

转载自blog.csdn.net/tt18473481961/article/details/85340658
今日推荐