Browse Source

no message

feature/v1.4
xpz2018 4 years ago
parent
commit
43b8ac1535
2 changed files with 20 additions and 14 deletions
  1. 2
      app.js
  2. 32
      pages/settlement/withdrawal/index.js

2
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--------------------------------------

32
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){

Loading…
Cancel
Save