Commit bfaaa271 by daqian

refund/buyer/preview

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