-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Labels
questionThis is a question, not a bugThis is a question, not a bug
Description
tdesign-miniprogram 版本
1.5.1
重现链接
No response
重现步骤
wx.scanCode({
onlyFromCamera: true,// 只能使用相机扫码
scanType: ['qrCode'], // 只接受二维码
}).then( res => {
console.log('二维码', res.result)
Message.success({
context: this,
offset: [90, 32],
duration: -1,
content: '扫码成功'
});
}).catch(res => {
if (res.errMsg === 'scanCode:fail cancel') {
Message.warning({
context: this,
offset: [90, 32],
content: '用户取消扫码',
});
} else {
Message.error({
context: this,
offset: [90, 32],
content: '二维码无效,扫码失败!',
});
}
})期望结果
扫码结束后,提示信息能正常显示
实际结果
提示消息会突然消失,或者消失的很快,并未等到时间结束
基础库版本
3.5.3
补充说明
复现步骤,快速两次取消扫码即可触发
Metadata
Metadata
Assignees
Labels
questionThis is a question, not a bugThis is a question, not a bug