diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index 3ec8e389..ce36c5b9 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -859,12 +859,8 @@ class _StoreOrderPage extends State // EasyLoading.dismiss(); if (baseDate != null && baseDate.isSuccess) { this.shopCarGoods = await queryShopCar(); - if ((miNiDetail.subscribeParam.isEnableSubscribe ?? false) == true){ - if(count > 1 && miNiDetail.attrList != null && miNiDetail.attrStyle != 0){ - Navigator.of(context).pop(); - } + if ((miNiDetail.subscribeParam.isEnableSubscribe ?? false) == true) toDownOrder(); - } setState(() {}); } else { SmartDialog.showToast(baseDate?.msg, alignment: Alignment.center); diff --git a/lib/store/store_view/product_sku.dart b/lib/store/store_view/product_sku.dart index 80ca1561..98599e00 100644 --- a/lib/store/store_view/product_sku.dart +++ b/lib/store/store_view/product_sku.dart @@ -240,9 +240,11 @@ class _ProductSku extends State { 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 { ), 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 { 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)