Commit bfaaa271 by daqian

refund/buyer/preview

parent e3a8160d
......@@ -56,8 +56,6 @@ wxService.page({
count
})
});
console.log('selectGoods', skulist)
this.reFundPreview({skuList:skulist})
var refundCreateDto = this.data.refundCreateDto
......@@ -70,12 +68,7 @@ wxService.page({
skuId: item.skuId
}
})
// console.log('refundCreateDto', refundCreateDto)
// this.handelRequestRefund(refundCreateDto)
this.handelRequestRefund(refundCreateDto)
},
handelRequestRefund(params) {
wx.showLoading({
......@@ -206,9 +199,7 @@ wxService.page({
blurNum: function (e) { // 输入数量
var newNum = e.detail.value
var cartList = this.data.cartList
var index = e.currentTarget.dataset.index
var refundNum = cartList[index].count
if (newNum === '' || newNum === '0') {
......@@ -226,13 +217,19 @@ wxService.page({
this.setData({
cartList: cartList
}, () => {
console.log('blurNum', cartList[index], index, newNum, refundNum)
this.getReturnPrice()
this.editOk(cartList[index]) //调用完成
})
},
editOk(cartPro){
this.reFundPreview(cartPro) // 退款预览
let skulist = [];
const {skuId,count} = cartPro;
skulist.push({
skuId,
count
})
this.reFundPreview({skuList:skulist}) // 退款预览
},
getReturnPrice() {
var cartList = this.data.cartList
......@@ -286,8 +283,6 @@ wxService.page({
})
},
reFundPreview(cartPro={}) {
// /refund/buyer/preview
// console.log("cartPro", cartPro)
const params = {
refundCreateDto: {...cartPro}
}
......@@ -300,9 +295,6 @@ wxService.page({
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
} else {
}
}
})
......
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