为什么会出现点击不响应的情况? 客户反馈后我这边也试了一次,确实出现点击不弹框, 多次点击后才弹出来
后续再测试没再出现, 时间大概是: 2025/10/21 16:00:00 左右
<button class="login-btn uv-reset-button" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权登录</button>
// 获取手机号
const getPhoneNumber = (info) => {
if (!info.detail.iv) {
uni.showToast({
title: '您取消了授权,登录失败',
icon: 'none'
});
return false;
}
uni.showLoading({
mask: true,
title: '登录中'
});
uni.login({
});
};

你好,是使用的旧版吗?建议使用新版 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html,再观察下