小程序
小游戏
企业微信
微信支付
扫描小程序码分享
貌似tabbar无法设置点击事件,也就无法拨打电话。
模拟tabbar每次切换页面时会闪动,不好,
请问这个怎么解决????
1 个回答
onLoad 里面调用
wx.makePhoneCall({
phoneNumber: '1234567890',
})
onShow 里面调用
wx.reLaunch({
url: '/pages/index/index',
会闪过一个白页面 但是感觉还好
内容中可能包含密钥、AppSecret等私密参数,泄漏会有安全风险,请检查内容并确认。
onLoad 里面调用
wx.makePhoneCall({
phoneNumber: '1234567890',
})
onShow 里面调用
wx.reLaunch({
url: '/pages/index/index',
})
会闪过一个白页面 但是感觉还好