Commit 651555b8 by 高淑倩

add: 退款接口

parent 0cdb3cd9
...@@ -68,9 +68,9 @@ wxService.page({ ...@@ -68,9 +68,9 @@ wxService.page({
} }
console.log('selectGoods', selectGoods) console.log('selectGoods', selectGoods)
var refundCreateDto = this.data.refundCreateDto 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) { refundCreateDto.skuList = selectGoods.map(function (item) {
return { return {
...@@ -80,17 +80,25 @@ wxService.page({ ...@@ -80,17 +80,25 @@ wxService.page({
} }
}) })
console.log('refundCreateDto', refundCreateDto) console.log('refundCreateDto', refundCreateDto)
// wx.showLoading({ this.handelRequestRefund(refundCreateDto)
// title: '加载中',
// mask: true
// })
},
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) { // 选择图片 chooseImage: function (event) { // 选择图片
...@@ -243,6 +251,7 @@ wxService.page({ ...@@ -243,6 +251,7 @@ wxService.page({
onShow: function () { onShow: function () {
const { params } = this.options const { params } = this.options
let detail = JSON.parse(params) let detail = JSON.parse(params)
console.log('detail', detail)
// item.checked // item.checked
detail.skuVOList.forEach(item => { detail.skuVOList.forEach(item => {
item.checked = false 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