Browse Source

[指纹识别修改]

tags/广东版3.2.1
meo 6 years ago
parent
commit
5fb27fd7d7
1 changed files with 10 additions and 5 deletions
  1. +10
    -5
      pages/scanPay/scanPay.js

+ 10
- 5
pages/scanPay/scanPay.js View File

@@ -43,7 +43,7 @@ Page({
that.gotoPay() that.gotoPay()
}, },
fail: (err) => { fail: (err) => {
} }
}) })
} }
@@ -52,11 +52,11 @@ Page({
checkAuthMode: AUTH_MODE, checkAuthMode: AUTH_MODE,
success: (res) => { success: (res) => {
console.log(res) console.log(res)
if (parseInt(res.isEnrolled) <= 0) {
if (res.isEnrolled) {
startSoterAuthentication();
}else{
that.gotoPay(); that.gotoPay();
return
} }
startSoterAuthentication();
}, },
fail: (err) => { fail: (err) => {
console.error(err) console.error(err)
@@ -71,7 +71,7 @@ Page({
}else if(res.supportMode == ['fingerPrint']){ }else if(res.supportMode == ['fingerPrint']){
checkIsEnrolled() checkIsEnrolled()
}else if(res.supportMode = ['fingerPrint', 'facial'] ){ }else if(res.supportMode = ['fingerPrint', 'facial'] ){
that.gotoPay();
checkIsEnrolled()
} }
}, },
fail: (err) => { fail: (err) => {
@@ -93,6 +93,7 @@ Page({
}) })
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {
wx.hideLoading();
that.setData({ that.setData({
showModel: false showModel: false
}) })
@@ -102,6 +103,7 @@ Page({
} }
}) })
.catch(err => { .catch(err => {
wx.hideLoading()
wx.showModal({ wx.showModal({
title: "抱歉", title: "抱歉",
content: err.message, content: err.message,
@@ -133,6 +135,9 @@ Page({
}) })
that.getList('notenogth'); that.getList('notenogth');
} else if (that.data.inputValue != "" && Number(that.data.remainingAmount) >= Number(that.data.inputValue)) { } else if (that.data.inputValue != "" && Number(that.data.remainingAmount) >= Number(that.data.inputValue)) {
wx.showLoading({
title: '付款中',
})
that.gotoPayMoney(); that.gotoPayMoney();
} }
}, },


Loading…
Cancel
Save