Commit a1e1cc87 by zhangxw

bug修改

1 parent cae4f83f
......@@ -243,14 +243,22 @@ Component({
orderCode: subOrderCodeCopy,
refundRemark: value
}
wx.showLoading()
api.markAsRefunded(params).then(res => {
wx.hideLoading()
if (res.code == 0) {
wx.$util.showToast('退款成功!')
this.getList()
} else {
wx.$util.showToast(res.message || '接口异常')
wx.showModal({
title: '温馨提示',
content: '请确定将此订单状态标记为已退款',
complete: (res) => {
if (res.confirm) {
wx.showLoading()
api.markAsRefunded(params).then(res => {
wx.hideLoading()
if (res.code == 0) {
wx.$util.showToast('退款成功!')
this.getList()
} else {
wx.$util.showToast(res.message || '接口异常')
}
})
}
}
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!