| @@ -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(); | ||||
| } | } | ||||
| }, | }, | ||||