open-type=getPhoneNumber 的安卓下授权后无法进入回调
在ios上,用户点击按钮,可以正常回调,但是在安卓端就无法进入回调,希望安卓端能正常进入回调 补充了代码片段因业务需要,在页面的onHide事件中我隐藏了按钮,查看日志发现,在弹出授权的时候,App和页面的onHide事件都执行过,这种情况下用户授权获取手机号后后,页面回调不会执行,如果我去掉pageShow的相关控制逻辑,则页面回调能正常执行 [代码]<[代码][代码]view[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{pageShow}}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]open-type[代码][代码]=[代码][代码]"getPhoneNumber"[代码] [代码]bindgetphonenumber[代码][代码]=[代码][代码]"bindGetPhoneNumber"[代码][代码]>login</[代码][代码]button[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码][代码] [代码]const app = getApp()[代码] [代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]pageShow:[代码][代码]true[代码][代码] [代码][代码]},[代码][代码] [代码][代码]bindGetPhoneNumber: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]wx.showLoading();[代码][代码] [代码][代码]setTimeout([代码][代码]function[代码][代码](){[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]},2000)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码][代码]() {[代码][代码] [代码] [代码] [代码][代码]},[代码][代码] [代码][代码]onShow:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]pageShow:[代码][代码]true[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onHide:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]pageShow:[代码][代码]false[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]})[代码]