Commit 3f7aa772 by 高淑倩

检验退款流程

parent ccd09302
...@@ -74,9 +74,7 @@ wxService.page({ ...@@ -74,9 +74,7 @@ wxService.page({
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
this.setData({ this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade)
})
} }
} }
}) })
......
...@@ -50,22 +50,24 @@ wxService.page({ ...@@ -50,22 +50,24 @@ wxService.page({
pics:[] pics:[]
}, },
submitRefund() { submitRefund() {
if (this.data.curType.value == 0) { var selectGoods = this.data.cartList.filter(item => item.checked)
if (selectGoods.length == 0) {
wx.showToast({ wx.showToast({
title: '请选择退款原因', title: '请选择退款商品',
icon: 'none' icon: 'none'
}) })
return false return false
} }
var selectGoods = this.data.cartList.filter(item => item.checked)
if (this.data.curType.value == 0) {
if (selectGoods.length == 0) {
wx.showToast({ wx.showToast({
title: '请选择退款商品', title: '请选择退款原因',
icon: 'none' icon: 'none'
}) })
return false return false
} }
console.log('selectGoods', selectGoods) console.log('selectGoods', selectGoods)
var refundCreateDto = this.data.refundCreateDto var refundCreateDto = this.data.refundCreateDto
......
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