小程序 wx.openCard 接口失败
现在在小程序可以通过 `wx.addCard` 领取电子会员卡到卡包,但在 `wx.addCard` 接口调用成功的回调函数里,调用 `wx.openCard` 方法打开卡套,引导用户完成激活电子会员卡时,在真机调试里能进入接口调用成功的回调函数,但是页面上却会报系统繁忙。
小程序端的代码如下:
wx.addCard({ cardList: [ memberCard ], success: (res) => { // 只有一张会员卡 let card = res.cardList[0] wx.openCard({ cardList: [ { cardId: card.cardId, code: card.code } ], success: function (res) { console.error( 'success' , res); }, fail: function (error) { console.error( 'fail' , error); } }) } }) |
目前在真机上调试,vConsole 里能打印出 success:

但是界面上缺报错:
