🐞 fix(购物页面): 修复购物页面无法选中的问题
This commit is contained in:
parent
9cd2f5579d
commit
d0c8d945ff
@ -69,7 +69,7 @@ const Counter = ({ minNum = 0, maxNum = 10000, step = 1, digits = 0, defaultNum
|
||||
}
|
||||
num_res = num_res < minNum ? minNum : num_res
|
||||
setValue(num_res)
|
||||
onClickBtn?.(parseFloat(num_res))
|
||||
onClickBtn?.(parseFloat(String(num_res)))
|
||||
}
|
||||
|
||||
// 检查数据
|
||||
|
||||
@ -285,14 +285,14 @@ const ShoppingCartItem: FC<PropsType> = (props) => {
|
||||
}
|
||||
}, [itemData, multipleSelection, colorStore])
|
||||
// 更新当前客户的多选项
|
||||
const updatePurchaserMultipleSelection = (purchaserId, payload, operationType: OperationType, goodsId: number) => {
|
||||
const updatePurchaserMultipleSelection = (purchaserId: number, payload: Goods, operationType: OperationType, goodsId: number) => {
|
||||
if (operationType === 'add') {
|
||||
dispatch({
|
||||
type: ShoppingDispatchType.UPDATE_CHANGED_CHECKBOX,
|
||||
data: {
|
||||
purchaserId,
|
||||
multipleSelection: {
|
||||
...colorStore?.[purchaserId].multipleSelection,
|
||||
...colorStore?.[purchaserId]?.multipleSelection,
|
||||
[goodsId]: payload,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user