This commit is contained in:
Alex-larget
2026-03-24 18:45:32 +08:00
parent dcb7961945
commit f3d74ce94a
68 changed files with 2461 additions and 2535 deletions

View File

@@ -1054,7 +1054,17 @@ Page({
this.loadWalletBalance()
} catch (e) {
wx.hideLoading()
wx.showToast({ title: e.message || '提现失败', icon: 'none' })
const resp = e && e.response
if (resp && (resp.needBind || resp.needBindWechat)) {
wx.showModal({
title: resp.needBindWechat ? '请先绑定微信号' : '需要绑定微信',
content: resp.needBindWechat ? '请到「设置」中绑定微信号后再提现,便于到账核对。' : '请先在设置中绑定微信账号后再提现',
confirmText: '去绑定',
success: (r) => { if (r.confirm) wx.navigateTo({ url: '/pages/settings/settings' }) }
})
return
}
wx.showToast({ title: (e && e.message) || '提现失败', icon: 'none' })
}
}
})