| | |
| | | } |
| | | // 兑换方式 |
| | | let exchangeMethod = $(':radio[name="exchangeMethod"]:checked').val(); |
| | | if (distributionMethod === '' || distributionMethod === undefined || distributionMethod === null){ |
| | | if (exchangeMethod === '' || exchangeMethod === undefined || exchangeMethod === null){ |
| | | return Feng.error('兑换方式不能为空'); |
| | | } |
| | | if (distributionMethod === '1'){ |
| | | if (exchangeMethod === '1'){ |
| | | if (requiredPoints === undefined || requiredPoints === '' || requiredPoints === null){ |
| | | return Feng.error('所需积分不能为空'); |
| | | } |
| | | } |
| | | if (distributionMethod === '2'){ |
| | | if (exchangeMethod === '2'){ |
| | | if (requiredPoints === undefined || requiredPoints === '' || requiredPoints === null){ |
| | | return Feng.error('所需积分不能为空'); |
| | | } |
| | |
| | | return Feng.error('所需现金不能为空'); |
| | | } |
| | | } |
| | | if (distributionMethod === '3'){ |
| | | if (exchangeMethod === '3'){ |
| | | if (requiredCash === undefined || requiredCash === '' || requiredCash === null){ |
| | | return Feng.error('所需现金不能为空'); |
| | | } |