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