|
|
@@ -100,7 +100,10 @@ class _GoodsDetailsFooterContainerState extends State<_GoodsDetailsFooterContain |
|
|
|
|
|
|
|
/// 分享 |
|
|
|
void _shareOnClick(GoodsDetailsFooterModel model) async { |
|
|
|
if (EmptyUtil.isEmpty(model?.share_value)) return; |
|
|
|
if (EmptyUtil.isEmpty(model?.share_value)) { |
|
|
|
Fluttertoast.showToast(msg: '商品信息正在加载中,请稍后再试~'); |
|
|
|
return; |
|
|
|
} |
|
|
|
Map<String, dynamic> result = await TurnChainUtil.getShareTurnChain(context, _user, model?.good_id, model.provider, model.convertArgs.toJson()); |
|
|
|
if (!EmptyUtil.isEmpty(result)) { |
|
|
|
model.shareUrlArgs.buyUrl = result['open_app_url']; |
|
|
@@ -110,7 +113,10 @@ class _GoodsDetailsFooterContainerState extends State<_GoodsDetailsFooterContain |
|
|
|
|
|
|
|
/// 自购省 |
|
|
|
void _saveMoneyOnClick(GoodsDetailsFooterModel model) async { |
|
|
|
if (EmptyUtil.isEmpty(model?.self_buy_value)) return; |
|
|
|
if (EmptyUtil.isEmpty(model?.self_buy_value)) { |
|
|
|
Fluttertoast.showToast(msg: '商品信息正在加载中,请稍后再试~'); |
|
|
|
return; |
|
|
|
} |
|
|
|
await TurnChainUtil.openReceiveCoupon(context, _user, model?.good_id, model?.provider, model?.convertArgs?.toJson(), isFree: widget?.isFree); |
|
|
|
} |
|
|
|
|
|
|
|