diff --git a/app.js b/app.js index 539fc8d..64fd4cf 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,7 @@ App({ evn: 0, // 0: 开发版本;1:测试版本;2:生产版本 tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], - version: '1.4.1', + version: '1.5.0', xAppId: '503258978847953926', userInfo: null, //----------------------------------------------globalData-------------------------------------- diff --git a/pages/settlement/withdrawal/index.js b/pages/settlement/withdrawal/index.js index c982c4c..272c2d8 100644 --- a/pages/settlement/withdrawal/index.js +++ b/pages/settlement/withdrawal/index.js @@ -120,21 +120,27 @@ Page({ util.showToast('请选择一张银行卡') return } - wx.showLoading({ title: '加载中', mask: true }) - paymentOrder({ factoryPermittedBankId: this.data.chooseBankCard.cardId, ids: this.data.checkIds }).then(res => { - wx.hideLoading() - if(res.data && res.data.markedWords){ - Dialog.alert({ title: '温馨提示', message: res.data.markedWords }).then(() => { - wx.navigateBack() - }) - } else { - Dialog.alert({ title: '温馨提示', message: '提现申请已经提交,请等待提现结果。' }).then(() => { - wx.navigateBack() + var that = this + wx.requestSubscribeMessage({ + tmplIds: ['9nSUAoD3kMF0O3BE-YMHQB7US_IKMmjr-DKPMQ4gvsE'], + complete(res) { + wx.showLoading({ title: '加载中', mask: true }) + paymentOrder({ factoryPermittedBankId: that.data.chooseBankCard.cardId, ids: that.data.checkIds }).then(res => { + wx.hideLoading() + if(res.data && res.data.markedWords){ + Dialog.alert({ title: '温馨提示', message: res.data.markedWords }).then(() => { + wx.navigateBack() + }) + } else { + Dialog.alert({ title: '温馨提示', message: '提现申请已经提交,请等待提现结果。' }).then(() => { + wx.navigateBack() + }) + } + }).catch(err => { + wx.hideLoading() + util.showToast(err) }) } - }).catch(err => { - wx.hideLoading() - util.showToast(err) }) }, checkList: function(e){