本人小白一枚,微信小程序关于点击号码拨电话,用的循环写的,所以号码不只是一个,view class =“contains”wx:for =“{{contactsList}}”      view class =“call”        view class =“call-q”            view class =“call-hd”              image src =“/../ images / account.png”style =“width:32rpx; height:32rpx;” / image              文本联系人/文本            /视图            view class =“call-bd”              文本 {{item.name}} /文本            /视图        /视图      /视图    view class =“call”      view class =“call-q”          view class =“call-hd”            image src =“/../ images / phone.png”style =“width:32rpx; height:32rpx;” / image            文本手机号/文本          /视图          view class =“call-bd”bindtap =“phoneCall”data-phone =“{{item.phoneNumber}}”            文本 {{item.phoneNumber}} /文本          /视图      /视图    /视图/视图页({  数据:{    contactsList:[      {        名称:“校园110”,        phoneNumber:“123456”,      },    ]  },  phoneCall:function(e){    的console.log(e)中    wx.makePhoneCall({      phoneNumber:e.currentTarget.dataset.phone,      成功:function(){        的console.log( “成功拨打电话”)      },    })  },小程序小程序可以在日期内添加多个号码,用了一个小循环

TAG标签: 微信小程序微信申诉电话

http://www.xiaochengxub.com/read-104746.html