下单退款相关更新
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
*/
|
||||
async function getOrderDetail () {
|
||||
let res = await getHistoryOrder({orderId: options.id})
|
||||
console.log(res)
|
||||
console.log("订单详情===",res)
|
||||
if(res.userId){
|
||||
shopUserDetail({userId:res.userId}).then(res=>{
|
||||
if(res){
|
||||
@@ -125,13 +125,12 @@
|
||||
info: value,
|
||||
placeNum: key
|
||||
}))
|
||||
console.log("goodsList===",orderDetail.goodsList);
|
||||
orderDetail.info = res
|
||||
console.log("orderDetail===",orderDetail);
|
||||
}
|
||||
|
||||
function onSeatFeeTuicai(seatFee) {
|
||||
seatFee={...seatFee,num:seatFee.num,productName:seatFee.productName}
|
||||
console.log(seatFee);
|
||||
tuicai.show = true
|
||||
tuicai.isSeatFee = seatFee
|
||||
tuicai.selGoods = seatFee
|
||||
@@ -143,7 +142,6 @@
|
||||
}
|
||||
|
||||
async function onSeatFeeTuiKuan(seatFee) {
|
||||
console.log(seatFee,'调试1');
|
||||
const canTuikuan=await hasTuiKuan()
|
||||
if(!canTuikuan){
|
||||
return
|
||||
@@ -177,10 +175,8 @@
|
||||
tuicai.selGoods = goods
|
||||
}
|
||||
async function tuicaiConfirm(e) {
|
||||
console.log(e)
|
||||
const res = await refundOrder(e)
|
||||
tuicai.show = false
|
||||
console.log(res)
|
||||
if(res){
|
||||
go.back()
|
||||
}else{
|
||||
@@ -216,9 +212,9 @@
|
||||
if(!canTuikuan){
|
||||
return
|
||||
}
|
||||
console.log(goods,'debug');
|
||||
if (Array.isArray(goods)) {
|
||||
go.to('PAGES_ORDER_TUIKUAN', {
|
||||
orderInfo: JSON.stringify(orderDetail.info),
|
||||
goodsList:JSON.stringify(goods)
|
||||
|
||||
})
|
||||
@@ -229,11 +225,10 @@
|
||||
goods.unitPrice = goods.unitPrice
|
||||
goods.userCouponId = goods.userCouponId ? goods.userCouponId:''
|
||||
go.to('PAGES_ORDER_TUIKUAN', {
|
||||
orderInfo: JSON.stringify(orderDetail.info),
|
||||
goodsList:JSON.stringify([goods])
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +275,6 @@
|
||||
function watchEmit() {
|
||||
uni.$off('orderDetail:update')
|
||||
uni.$once('orderDetail:update', (newval) => {
|
||||
console.log(newval);
|
||||
getOrderDetail()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user