forked from gxwebsoft/mp-10550
refactor(components): 重构优惠券组件样式和结构
- 更新 CouponCard 组件样式,优化主题颜色和布局 - 调整 CouponList 组件样式,使用原生样式替代自定义样式 - 修改 orderConfirm 页面中的地址栏样式 - 更新 QuantitySelector 组件样式,统一数量选择器样式 - 删除 Questions 组件代码
This commit is contained in:
@@ -59,11 +59,11 @@ const QuantitySelector: React.FC<QuantitySelectorProps> = ({
|
||||
>
|
||||
<Minus size={size === 'small' ? 12 : size === 'large' ? 16 : 14} />
|
||||
</Button>
|
||||
|
||||
|
||||
<View className="quantity-selector__input">
|
||||
<Text className="quantity-selector__value">{value}</Text>
|
||||
</View>
|
||||
|
||||
|
||||
<Button
|
||||
className={`quantity-selector__btn quantity-selector__btn--plus ${!canIncrease ? 'quantity-selector__btn--disabled' : ''}`}
|
||||
size="small"
|
||||
@@ -73,10 +73,10 @@ const QuantitySelector: React.FC<QuantitySelectorProps> = ({
|
||||
<Plus size={size === 'small' ? 12 : size === 'large' ? 16 : 14} />
|
||||
</Button>
|
||||
</View>
|
||||
|
||||
|
||||
{showStock && stock !== undefined && (
|
||||
<View className="quantity-selector__stock">
|
||||
<Text className="quantity-selector__stock-text">
|
||||
<Text className="text-sm">
|
||||
库存 {stock} 件
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user