瀏覽代碼

[指纹识别修改]

tags/广东版3.2.1
meo 6 年之前
父節點
當前提交
5fb27fd7d7
共有 1 個檔案被更改,包括 10 行新增5 行删除
  1. +10
    -5
      pages/scanPay/scanPay.js

+ 10
- 5
pages/scanPay/scanPay.js 查看文件

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


Loading…
取消
儲存