生物识别有三个接口
1、wx.checkIsSupportSoterAuthentication 用来获取本机支持的生物识别方式(人脸、指纹、声纹)
2、wx.startSoterAuthentication...FAIL() {
console.log("用户点击取消")
}
show("提示", txt, true,SUCC,FAIL);
},
//进行指纹识别...show("提示", "异常", fail);
}
})
}
})
/**
* 显示提示信息
* tit 提示的标题
* msg 提示的内容
* q 是否有取消按钮...(布尔值)
* succ 用户点击确定的回调(非必须)
* fail 用户点击取消的回调(非必须)
*
*/
function show(tit,msg,q,succ,fail){
wx.showModal...res.cancel) {
if (fail) {
fail();
}
}
}
})
}
tip:
1、如有遇到新问题,可以在下方留言或者加QQ