Commit a1e1cc87 by zhangxw

bug修改

1 parent cae4f83f
...@@ -243,14 +243,22 @@ Component({ ...@@ -243,14 +243,22 @@ Component({
orderCode: subOrderCodeCopy, orderCode: subOrderCodeCopy,
refundRemark: value refundRemark: value
} }
wx.showLoading() wx.showModal({
api.markAsRefunded(params).then(res => { title: '温馨提示',
wx.hideLoading() content: '请确定将此订单状态标记为已退款',
if (res.code == 0) { complete: (res) => {
wx.$util.showToast('退款成功!') if (res.confirm) {
this.getList() wx.showLoading()
} else { api.markAsRefunded(params).then(res => {
wx.$util.showToast(res.message || '接口异常') 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!