Show member payment support contact on failures

This commit is contained in:
Glore Zeng 2026-11-02 13:03:16 +08:00
parent 48793491c3
commit b6b1cc37ce

View File

@ -305,8 +305,8 @@ wepy.page({
try {
const result = await this.paymentAPI().post('/order/virtual/' + encodeURIComponent(orderNo) + '/confirm', {})
if (result.state === 'FULFILLED') {this.getPageData();wx.removeStorageSync(this.pendingStorageKey());wx.showToast({title:'会员权益已到账',icon:'success'})}
else {wx.showModal({title:'会员订单',content:'支付结果仍在确认中,请勿重复购买;如已扣款请联系客服核对。',showCancel:false})}
} catch (e) {wx.showModal({title:'会员订单',content:e.message || '查询失败,请稍后重试',showCancel:false})}
else {wx.showModal({title:'会员订单',content:'支付结果仍在确认中,请勿重复购买。\n如需帮助,请添加福恋小天使微信号:ploves_004,联系客服人工处理。',showCancel:false})}
} catch (e) {wx.showModal({title:'会员订单',content:(e.message || '查询失败,请稍后重试') + '\n如需帮助,请添加福恋小天使微信号:ploves_004,联系客服人工处理。',showCancel:false})}
},
paymentAPI() {
const unwrap = r => { if (r.code !== 0) throw new Error(r.message || '请求失败'); return r.data }
@ -407,7 +407,7 @@ wepy.page({
this.getPageData()
wx.removeStorageSync(this.pendingStorageKey())
wx.showToast({title:'会员权益已到账',icon:'success'})
} catch (e) {wx.showModal({title:'会员支付',content:e.message || '支付暂不可用,请稍后查询订单',showCancel:false})}
} catch (e) {wx.showModal({title:'会员支付',content:(e.message || '支付暂不可用,请稍后查询订单') + '\n如已扣款,请先查询订单,勿重复购买。\n如需帮助,请添加福恋小天使微信号:ploves_004,联系客服人工处理。',showCancel:false})}
finally {this.purchasing = false;wx.hideLoading()}
},
payChoice(e) {