Commit 2c4aeb299c8b26450a66e1f091f9a6d11815a7ba

Authored by wdn127929
1 parent d49a70d6

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

@@ -1523,11 +1523,15 @@ class _CouponEidtPayPageState extends State<CouponEidtPayPage> { @@ -1523,11 +1523,15 @@ class _CouponEidtPayPageState extends State<CouponEidtPayPage> {
1523 Utils.showToast('请输入券名称'); 1523 Utils.showToast('请输入券名称');
1524 return; 1524 return;
1525 } 1525 }
1526 - if (_priceControl.text.trim().length == 0 ||  
1527 - _priceControl.text.trim() == '0') {  
1528 - Utils.showToast('请输入销售价,且必须大于0'); 1526 + if (_priceControl.text.trim().length == 0) {
  1527 + Utils.showToast('请输入销售价');
1529 return; 1528 return;
1530 } 1529 }
  1530 + // if (_priceControl.text.trim().length == 0 ||
  1531 + // _priceControl.text.trim() == '0') {
  1532 + // Utils.showToast('请输入销售价,且必须大于0');
  1533 + // return;
  1534 + // }
1531 // if (!Utils.isInteger( 1535 // if (!Utils.isInteger(
1532 // _priceControl.text.trim())) { 1536 // _priceControl.text.trim())) {
1533 // Utils.showToast('销售价请输入数字'); 1537 // Utils.showToast('销售价请输入数字');