|
|
|
@ -8,7 +8,7 @@ import 'package:huixiang/view_widget/custom_image.dart';
|
|
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
|
|
|
|
|
|
|
class ShopGoods extends StatefulWidget { |
|
|
|
|
final Function(String id) queryMiNiDetail; |
|
|
|
|
final Function(String id,int count) queryMiNiDetail; |
|
|
|
|
final Function(ShoppingCartSkuItemListBean shoppingCartSkuItemListBean) add; |
|
|
|
|
final Function(ShoppingCartSkuItemListBean shoppingCartSkuItemListBean) |
|
|
|
|
reduce; |
|
|
|
@ -131,7 +131,7 @@ class _ShopGoods extends State<ShopGoods> {
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
if (!widget.isShopCart) |
|
|
|
|
if (!widget.isShopCart && (widget.productListBean?.attrStyle??0) == 1) |
|
|
|
|
Stack( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
@ -150,7 +150,7 @@ class _ShopGoods extends State<ShopGoods> {
|
|
|
|
|
widget.productListBean != null |
|
|
|
|
? widget.productListBean.id |
|
|
|
|
: widget.shoppingCartSkuItemListBean |
|
|
|
|
.productId, |
|
|
|
|
.productId,0 |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
@ -173,7 +173,7 @@ class _ShopGoods extends State<ShopGoods> {
|
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
if (widget.isShopCart) |
|
|
|
|
if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
widget.reduce(widget.shoppingCartSkuItemListBean); |
|
|
|
@ -184,7 +184,7 @@ class _ShopGoods extends State<ShopGoods> {
|
|
|
|
|
height: 22, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if (widget.isShopCart) |
|
|
|
|
if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) |
|
|
|
|
Container( |
|
|
|
|
width: 30, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
@ -197,7 +197,7 @@ class _ShopGoods extends State<ShopGoods> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if (widget.isShopCart) |
|
|
|
|
if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
widget.add(widget.shoppingCartSkuItemListBean); |
|
|
|
|