拨打固定电话手机自动跳到手机号
发布于 5 年前 作者 tsun 10765 次浏览 来自 问答

页面上有一个拨打手机,一个拨打固定电话的,拨打固定电话手机号会自动跳到手机号,页面打印数据是正常,都换成手机号就没有问题,这个是安卓手机出现,点击多次就会出现。

3 回复

代码块发出来 分析分析

   <view class=“content mt30”>

      <view class=“content-left”>

        <image src="/images/nav/call.png"></image>

      </view>

      <view class=“content-right2” catchtap=“callphone”>

        <text>{{phone}}</text>

        <text class=“mobile-text”>[一键拨号]</text>

      </view>

    </view>

    <view class=“content mt30”>

      <view class=“content-left”>

        <image src="/images/nav/phone.png"></image>

      </view>

      <view class=“content-right2” catchtap=“callmobile”>

        <text>{{mobile}}</text>

        <text class=“phone-text”>[一键拨号]</text>

      </view>

    </view>

callphone:function(){

    var that = this;

    console.log(‘电话’ + that.data.phone)

    wx.makePhoneCall({

      phoneNumber: that.data.phone

    })

  },

  callmobile: function () {

    var that = this;

    console.log(‘手机’ + that.data.mobile)

    wx.makePhoneCall({

      phoneNumber: JSON.stringify(that.data.mobile)

    })

  },

是oppo吗?我遇见过类似的,点A区域,效果却是点到了B区域

回到顶部