Commit 651555b8 by 高淑倩

add: 退款接口

parent 0cdb3cd9
......@@ -68,9 +68,9 @@ wxService.page({
}
console.log('selectGoods', selectGoods)
var refundCreateDto = this.data.refundCreateDto
refundCreateDto.reason = this.data.curType.value // 退款原因
// refundCreateDto.reason = this.data.curType.value // 退款原因
refundCreateDto.reason = this.data.curType.name // 退款原因
refundCreateDto.skuList = selectGoods.map(function (item) {
return {
......@@ -80,17 +80,25 @@ wxService.page({
}
})
console.log('refundCreateDto', refundCreateDto)
// wx.showLoading({
// title: '加载中',
// mask: true
// })
this.handelRequestRefund(refundCreateDto)
},
handelRequestRefund(params) {
wx.showLoading({
title: '加载中',
mask: true
})
wxService.post('/sale/refund/buyer/create', params).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
}
}
})
},
chooseImage: function (event) { // 选择图片
......@@ -243,6 +251,7 @@ wxService.page({
onShow: function () {
const { params } = this.options
let detail = JSON.parse(params)
console.log('detail', detail)
// item.checked
detail.skuVOList.forEach(item => {
item.checked = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment