|
|
@ -680,7 +680,7 @@ class _ExchangeOrderPage extends State<ExchangeOrderPage> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
payableAmount().contains(S.of(context).jihuanka)? "现金抵扣集换卡":"现金抵扣积分", |
|
|
|
payableAmount().contains(S.of(context).jihuanka)? "现金抵扣印章":"现金抵扣积分", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14, |
|
|
|
fontSize: 14, |
|
|
|
color: Color(0xFF353535), |
|
|
|
color: Color(0xFF353535), |
|
|
@ -1070,14 +1070,14 @@ class _ExchangeOrderPage extends State<ExchangeOrderPage> { |
|
|
|
String payableAmount() { |
|
|
|
String payableAmount() { |
|
|
|
if (widget.arguments["payType"] == 0) return ""; |
|
|
|
if (widget.arguments["payType"] == 0) return ""; |
|
|
|
if (widget.arguments["payType"] == 1) { |
|
|
|
if (widget.arguments["payType"] == 1) { |
|
|
|
return "${(double.parse(widget.arguments["oneBean"] ?? "0") * buyNum).toInt()}集换卡"; |
|
|
|
return "${(double.parse(widget.arguments["oneBean"] ?? "0") * buyNum).toInt()}印章"; |
|
|
|
} else if (widget.arguments["payType"] == 2) { |
|
|
|
} else if (widget.arguments["payType"] == 2) { |
|
|
|
return "${(double.parse(widget.arguments["onePrice"]) * buyNum).toInt()}积分"; |
|
|
|
return "${(double.parse(widget.arguments["onePrice"]) * buyNum).toInt()}积分"; |
|
|
|
} else if (widget.arguments["payType"] == 3) { |
|
|
|
} else if (widget.arguments["payType"] == 3) { |
|
|
|
return "${(double.parse(widget.arguments["price"]) * buyNum).toInt()}积分" + " + ${AppUtils.calculateDouble(double.tryParse(widget.arguments["money"]) * buyNum) ?? 0}元"; |
|
|
|
return "${(double.parse(widget.arguments["price"]) * buyNum).toInt()}积分" + " + ${AppUtils.calculateDouble(double.tryParse(widget.arguments["money"]) * buyNum) ?? 0}元"; |
|
|
|
} else if (widget.arguments["payType"] == 4) { |
|
|
|
} else if (widget.arguments["payType"] == 4) { |
|
|
|
if ((widget.arguments["oneBean"] ?? "0") != "0") { |
|
|
|
if ((widget.arguments["oneBean"] ?? "0") != "0") { |
|
|
|
return "${AppUtils.calculateDouble(double.parse(widget.arguments["oneBean"] ?? "0") * buyNum)}集换卡"; |
|
|
|
return "${AppUtils.calculateDouble(double.parse(widget.arguments["oneBean"] ?? "0") * buyNum)}印章"; |
|
|
|
} else if (widget.arguments["onePrice"] != "0") { |
|
|
|
} else if (widget.arguments["onePrice"] != "0") { |
|
|
|
return "${AppUtils.calculateDouble(double.parse(widget.arguments["onePrice"]) * buyNum)}积分"; |
|
|
|
return "${AppUtils.calculateDouble(double.parse(widget.arguments["onePrice"]) * buyNum)}积分"; |
|
|
|
} else if ((widget.arguments["price"] != null || widget.arguments["price"] != "0") && (widget.arguments["money"] != null || widget.arguments["money"] != "0.00")) { |
|
|
|
} else if ((widget.arguments["price"] != null || widget.arguments["price"] != "0") && (widget.arguments["money"] != null || widget.arguments["money"] != "0.00")) { |
|
|
@ -1093,7 +1093,7 @@ class _ExchangeOrderPage extends State<ExchangeOrderPage> { |
|
|
|
String handleNeedPay() { |
|
|
|
String handleNeedPay() { |
|
|
|
if (widget.arguments["payType"] == 0) return ""; |
|
|
|
if (widget.arguments["payType"] == 0) return ""; |
|
|
|
if (widget.arguments["payType"] == 1) { |
|
|
|
if (widget.arguments["payType"] == 1) { |
|
|
|
return "${(double.parse(widget.arguments["oneBean"]) * buyNum).toInt()}集换卡"; |
|
|
|
return "${(double.parse(widget.arguments["oneBean"]) * buyNum).toInt()}印章"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (widget.arguments["payType"] == 2) { |
|
|
|
if (widget.arguments["payType"] == 2) { |
|
|
|
return S.of(context).jifen_( |
|
|
|
return S.of(context).jifen_( |
|
|
|