|
|
|
@ -240,9 +240,11 @@ class _ProductSku extends State<ProductSku> {
|
|
|
|
|
onTap: () async { |
|
|
|
|
if(count == 1) |
|
|
|
|
return; |
|
|
|
|
_isTapEd = true; |
|
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
await widget.reduce(widget.miNiDetail, selectSkus); |
|
|
|
|
if((widget?.miNiDetail?.subscribeParam?.isEnableSubscribe ?? false) == false){ |
|
|
|
|
_isTapEd = true; |
|
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
await widget.reduce(widget.miNiDetail, selectSkus); |
|
|
|
|
} |
|
|
|
|
count -= 1; |
|
|
|
|
setState(() {}); |
|
|
|
|
EasyLoading.dismiss(); |
|
|
|
@ -266,13 +268,15 @@ class _ProductSku extends State<ProductSku> {
|
|
|
|
|
), |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () async { |
|
|
|
|
_isTapEd = true; |
|
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
if (count == 1 && realCount == 0) |
|
|
|
|
await widget.addShopCar( |
|
|
|
|
widget.miNiDetail, selectSkus, 2); |
|
|
|
|
else |
|
|
|
|
await widget.add(widget.miNiDetail, selectSkus); |
|
|
|
|
if((widget?.miNiDetail?.subscribeParam?.isEnableSubscribe ?? false) == false){ |
|
|
|
|
_isTapEd = true; |
|
|
|
|
EasyLoading.show(status: S.current.zhengzaijiazai); |
|
|
|
|
if (count == 1 && realCount == 0) |
|
|
|
|
await widget.addShopCar( |
|
|
|
|
widget.miNiDetail, selectSkus, 2); |
|
|
|
|
else |
|
|
|
|
await widget.add(widget.miNiDetail, selectSkus); |
|
|
|
|
} |
|
|
|
|
count += 1; |
|
|
|
|
setState(() {}); |
|
|
|
|
EasyLoading.dismiss(); |
|
|
|
@ -302,7 +306,7 @@ class _ProductSku extends State<ProductSku> {
|
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
// SmartDialog.dismiss(); |
|
|
|
|
if (!_isTapEd) |
|
|
|
|
widget.addShopCar(widget.miNiDetail, selectSkus, 1); |
|
|
|
|
widget.addShopCar(widget.miNiDetail, selectSkus,((widget?.miNiDetail?.subscribeParam?.isEnableSubscribe ?? false) == false) ? 1 : count); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
if (widget.buttonType == 1) |
|
|
|
|