|
|
@@ -19,6 +19,7 @@ Page({ |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad: function(options) { |
|
|
|
console.log(options.remainingAmount) |
|
|
|
let that = this; |
|
|
|
that.setData({ |
|
|
|
merChant: JSON.parse(options.merChant), |
|
|
@@ -48,7 +49,9 @@ Page({ |
|
|
|
.then(res => { |
|
|
|
console.log(res); |
|
|
|
if(res.code==200){ |
|
|
|
that.startAuth(); |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/paySuccess/paySuccess', |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
@@ -65,11 +68,6 @@ Page({ |
|
|
|
showCancel: false |
|
|
|
}) |
|
|
|
} else if (that.data.inputValue != "" && Number(that.data.remainingAmount) < Number(that.data.inputValue)) { |
|
|
|
// wx.showModal({ |
|
|
|
// title: '抱歉', |
|
|
|
// content: '余额不足', |
|
|
|
// showCancel: false |
|
|
|
// }) |
|
|
|
that.setData({ |
|
|
|
showModel: true |
|
|
|
}) |
|
|
@@ -85,9 +83,7 @@ Page({ |
|
|
|
challenge: 'test', |
|
|
|
authContent: '请验证已有的指纹以继续', |
|
|
|
success: (res) => { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/paySuccess/paySuccess', |
|
|
|
}) |
|
|
|
that.gotoPayMoney(); |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
|
|
|
|