diff --git a/pages/ucenter/settings/settings.vue b/pages/ucenter/settings/settings.vue
index 01591bf36828946e4cbe13cc4396b467faec7a2f..f9ad26283ea472bd5154b9874b1f8126e4cfcfe1 100644
--- a/pages/ucenter/settings/settings.vue
+++ b/pages/ucenter/settings/settings.vue
@@ -11,8 +11,8 @@
-
-
+
+
@@ -84,28 +84,19 @@
console.log(err);
}
});
- },
- /**
- * 添加生物认证选项
- */
- fingerPrint(){
-
- },
- facial(){
-
},
/**
* 开始生物认证
*/
- startSoterAuthentication(item) {
+ startSoterAuthentication(requestAuthMode,title) {
// 检查是否开启认证
- this.checkIsSoterEnrolledInDevice(item)
+ this.checkIsSoterEnrolledInDevice({name:requestAuthMode,title:title})
.then(() => {
// 开始认证
uni.startSoterAuthentication({
- requestAuthModes: [item.name],
+ requestAuthModes: [requestAuthMode],
challenge: '123456', // 微信端挑战因子
- authContent: `请用${item.title}`,
+ authContent: `请用${title}`,
success: (res) => {
if (res.errCode == 0) {
/**
@@ -116,7 +107,7 @@
* 微信小程序需要再次通过后台验证resultJSON与resultJSONSignature获取最终结果
*/
return uni.showToast({
- title: `${item.title}成功`,
+ title: `${title}成功`,
icon: 'none'
});
}