@@ -223,12 +223,18 @@ const toCheckAll = () => {
m.ischeck = isAll.value;
if (m.cartDetails && m.cartDetails.length > 0) {
m.cartDetails = setCheck(m.cartDetails, isAll.value);
- m.cartDetails.forEach((res, index) => {
- ids.value.push(res.id);
- });
+ if (isAll.value) {
+ m.cartDetails.forEach((res, index) => {
+ ids.value.push(res.id);
+ });
+ } else {
+ ids.value = [];
+ }
}
});
}
+
+ console.log(ids.value);
};
const setCheck = (data, val) => {
@@ -335,7 +341,14 @@ const doBatchDel = () => {
// const filteredData = removeCheckedItems(data);
// console.log(filteredData);
// data.value = filteredData;
- deleteChooseGoods(ids.value);
+ deleteChooseGoods({ goodsIds: ids.value.join(',') });
+ setTimeout(() => {
+ shoppingCart(page).then((res) => {
+ console.log(res.data.records);
+ data.value = res.data.records;
+ addIsCheckProperty(data);
+ });
+ }, 500);
})
.catch(() => {});
}
diff --git a/sub-operation-service/src/views/userCenter/userOrders.vue b/sub-operation-service/src/views/userCenter/userOrders.vue
index 4f45dbc..fe9a1e9 100644
--- a/sub-operation-service/src/views/userCenter/userOrders.vue
+++ b/sub-operation-service/src/views/userCenter/userOrders.vue
@@ -49,11 +49,8 @@
{{ g.productName || '--' }}
-
- 已拒绝退款:该产品不支持退货/退款
+
+ 已拒绝退款:{{ o.refundFailReason }}