授权确认优化
This commit is contained in:
@@ -138,6 +138,17 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
// 刷新账户余额与明细:重置分页从头加载,确保能看到最新产生的记录
|
||||
refreshBalanceData() {
|
||||
this.setData({
|
||||
list: [],
|
||||
page: 1,
|
||||
loadMoreStatus: 0
|
||||
});
|
||||
this.loadAccountInfo();
|
||||
this.loadList();
|
||||
},
|
||||
|
||||
// 提现弹窗
|
||||
onWithdraw() {
|
||||
this.setData({ showWithdrawDialog: true });
|
||||
@@ -256,18 +267,12 @@ Page({
|
||||
withdrawAmount: '',
|
||||
withdrawName: ''
|
||||
});
|
||||
//提现申请已受理:立即刷新余额与明细(重置分页从头加载),不依赖弹窗交互
|
||||
this.refreshBalanceData();
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
showCancel: false,
|
||||
content: res.msg,
|
||||
success: (re) => {
|
||||
if (re.confirm) {
|
||||
//提现之后,刷新数据
|
||||
this.loadAccountInfo();
|
||||
this.loadList();
|
||||
console.log('用户点击确定');
|
||||
}
|
||||
}
|
||||
content: res.msg
|
||||
});
|
||||
} else {
|
||||
wx.showToast({ title: res.msg, icon: 'none' });
|
||||
|
||||
Reference in New Issue
Block a user