添加申请售后成功提示
This commit is contained in:
parent
a94b70f442
commit
b008e2766e
@ -213,17 +213,17 @@ export default {
|
||||
console.log(item.id);
|
||||
|
||||
// 根据条件判断是否可以售后
|
||||
// request(afterSaleApi.isAllow, "POST", {
|
||||
// order_id: item.id,
|
||||
// }).then((res) => {
|
||||
// if (res.data.is_allow_after_sales) {
|
||||
// this.afterSaleGoods = res.data.allow_items;
|
||||
// // this.selectedAsGood = item.commodity_order_item_list[0].id;
|
||||
// this.$refs.afterSalePopupRef.openAfterSalePopup();
|
||||
// } else {
|
||||
// this.noSalePopup = true
|
||||
// }
|
||||
// });
|
||||
request(afterSaleApi.isAllow, "POST", {
|
||||
order_id: item.id,
|
||||
}).then((res) => {
|
||||
if (res.data.is_allow_after_sales) {
|
||||
this.afterSaleGoods = res.data.allow_items;
|
||||
// this.selectedAsGood = item.commodity_order_item_list[0].id;
|
||||
this.$refs.afterSalePopupRef.openAfterSalePopup();
|
||||
} else {
|
||||
this.noSalePopup = true
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 处理退款提交事件
|
||||
@ -244,7 +244,9 @@ export default {
|
||||
change_goods_id: data.changeServiceId
|
||||
}
|
||||
request(afterSaleApi.afterSaleCreate, "POST", params).then((res) => {
|
||||
this.getOrderList();
|
||||
uni.showToast({ title: "申请售后成功", icon: "sucess" }), setTimeout(() => {
|
||||
this.getOrderList();
|
||||
}, 1000);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user