|
@@ -166,14 +166,15 @@ const manage = () => {
|
|
|
|
|
|
|
|
// 多选框变化
|
|
// 多选框变化
|
|
|
const checkboxChange = (event) => {
|
|
const checkboxChange = (event) => {
|
|
|
- const values = event.detail.value;
|
|
|
|
|
|
|
+ console.log(event);
|
|
|
|
|
+ const values = event;
|
|
|
|
|
|
|
|
collectProductList.value.forEach(item => {
|
|
collectProductList.value.forEach(item => {
|
|
|
item.checked = values.includes(item.id.toString());
|
|
item.checked = values.includes(item.id.toString());
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
selectValue.value = values.toString();
|
|
selectValue.value = values.toString();
|
|
|
- isAllSelect.value = calculatedProducts.value.length === values.length;
|
|
|
|
|
|
|
+ isAllSelect.value = collectProductList.value.length === values.length;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 全选变化
|
|
// 全选变化
|
|
@@ -267,7 +268,7 @@ const delCollection = (id, index) => {
|
|
|
// 取消收藏多个
|
|
// 取消收藏多个
|
|
|
const delCollectionAll = () => {
|
|
const delCollectionAll = () => {
|
|
|
if (!selectValue.value || selectValue.value.length === 0) {
|
|
if (!selectValue.value || selectValue.value.length === 0) {
|
|
|
- uni.showToast({ title: '请选择商品',icon:none });
|
|
|
|
|
|
|
+ uni.showToast({ title: '请选择商品',icon:'none' });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
del({ ids: selectValue.value });
|
|
del({ ids: selectValue.value });
|