Commit 2c4aeb299c8b26450a66e1f091f9a6d11815a7ba

Authored by wdn127929
1 parent d49a70d6

付费优惠券取消0元限制,可输入0,就是免费券

... ... @@ -1523,11 +1523,15 @@ class _CouponEidtPayPageState extends State<CouponEidtPayPage> {
Utils.showToast('请输入券名称');
return;
}
if (_priceControl.text.trim().length == 0 ||
_priceControl.text.trim() == '0') {
Utils.showToast('请输入销售价,且必须大于0');
if (_priceControl.text.trim().length == 0) {
Utils.showToast('请输入销售价');
return;
}
// if (_priceControl.text.trim().length == 0 ||
// _priceControl.text.trim() == '0') {
// Utils.showToast('请输入销售价,且必须大于0');
// return;
// }
// if (!Utils.isInteger(
// _priceControl.text.trim())) {
// Utils.showToast('销售价请输入数字');
... ...