|
|
@@ -123,7 +123,7 @@ export default function CartPage() {
|
|
|
<View className="goods-title skeleton" />
|
|
|
<View className="goods-specs skeleton" />
|
|
|
<View className="goods-price skeleton" />
|
|
|
- <View className="goods-stepper skeleton" />
|
|
|
+ <View className="cart-quantity-controls skeleton" />
|
|
|
</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
@@ -493,32 +493,6 @@ export default function CartPage() {
|
|
|
</Button>
|
|
|
</View>
|
|
|
|
|
|
- {/* <View className="goods-stepper">
|
|
|
- <Button
|
|
|
- size="sm"
|
|
|
- variant="ghost"
|
|
|
- className="stepper-btn minus"
|
|
|
- onClick={(e) => {
|
|
|
- e.stopPropagation(); // 阻止事件冒泡
|
|
|
- updateQuantity(item.id, Math.max(1, item.quantity - 1));
|
|
|
- }}
|
|
|
- disabled={item.quantity <= 1}
|
|
|
- >
|
|
|
- <View className="i-heroicons-minus-20-solid w-3 h-3" />
|
|
|
- </Button>
|
|
|
- <Text className="stepper-value">{item.quantity}</Text>
|
|
|
- <Button
|
|
|
- size="sm"
|
|
|
- variant="ghost"
|
|
|
- className="stepper-btn plus"
|
|
|
- onClick={(e) => {
|
|
|
- e.stopPropagation(); // 阻止事件冒泡
|
|
|
- updateQuantity(item.id, item.quantity + 1);
|
|
|
- }}
|
|
|
- >
|
|
|
- <View className="i-heroicons-plus-20-solid w-3 h-3" />
|
|
|
- </Button>
|
|
|
- </View> */}
|
|
|
|
|
|
</View>
|
|
|
</View>
|