|
|
@@ -55,13 +55,15 @@ Page({ |
|
|
|
let that = this; |
|
|
|
const startSoterAuthentication = () => { |
|
|
|
wx.startSoterAuthentication({ |
|
|
|
requestAuthModes: [AUTH_MODE], |
|
|
|
requestAuthModes: ["fingerPrint"], |
|
|
|
challenge: 'test', |
|
|
|
authContent: '请验证已有的指纹以继续', |
|
|
|
success: (res) => { |
|
|
|
console.log(res) |
|
|
|
that.gotoPay() |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
console.log(err); |
|
|
|
wx.hideLoading(); |
|
|
|
that.setData({ |
|
|
|
showModel: false, |
|
|
@@ -69,6 +71,10 @@ Page({ |
|
|
|
ids: "", |
|
|
|
remainingAmount: that.data.remainingAmounts |
|
|
|
}) |
|
|
|
if(err.errCode==90008||err.errCode == 90009){ |
|
|
|
}else{ |
|
|
|
that.gotoPay(); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@@ -94,9 +100,9 @@ Page({ |
|
|
|
if (res.supportMode == []) { |
|
|
|
that.gotoPay(); |
|
|
|
} else if (res.supportMode == ['fingerPrint']) { |
|
|
|
checkIsEnrolled() |
|
|
|
checkIsEnrolled(); |
|
|
|
} else if (res.supportMode = ['fingerPrint', 'facial']) { |
|
|
|
checkIsEnrolled() |
|
|
|
checkIsEnrolled(); |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|