| | |
| | | return |
| | | } |
| | | if(null == basePeople || '' == basePeople){ |
| | | Feng.error("请填写有效的基础报名人数"); |
| | | return |
| | | basePeople = 0; |
| | | } |
| | | if(null == participationIntegral || '' == participationIntegral){ |
| | | Feng.error("请填写有效的参赛可获积分"); |
| | | return |
| | | participationIntegral = 0; |
| | | } |
| | | if(null == winIntegral || '' == winIntegral){ |
| | | Feng.error("请填写有效的胜场可获积分"); |
| | | return |
| | | winIntegral = 0; |
| | | } |
| | | if(null == address || '' == address){ |
| | | Feng.error("请填写有效的比赛地点"); |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | 'intro': intro, |
| | | 'content': content, |
| | | 'stores': JSON.stringify(WorldCupInfo.stores) |
| | | } |
| | | if(null != registrationClosingTime && '' != registrationClosingTime){ |
| | | data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59"); |
| | | } |
| | | |
| | | //提交信息 |
| | |
| | | return |
| | | } |
| | | if(null == basePeople || '' == basePeople){ |
| | | Feng.error("请填写有效的基础报名人数"); |
| | | return |
| | | basePeople = 0; |
| | | } |
| | | if(null == participationIntegral || '' == participationIntegral){ |
| | | Feng.error("请填写有效的参赛可获积分"); |
| | | return |
| | | participationIntegral = 0; |
| | | } |
| | | if(null == winIntegral || '' == winIntegral){ |
| | | Feng.error("请填写有效的胜场可获积分"); |
| | | return |
| | | winIntegral = 0; |
| | | } |
| | | if(null == address || '' == address){ |
| | | Feng.error("请填写有效的比赛地点"); |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | 'intro': intro, |
| | | 'content': content, |
| | | 'stores': JSON.stringify(WorldCupInfo.stores) |
| | | } |
| | | if(null != registrationClosingTime && '' != registrationClosingTime){ |
| | | data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59"); |
| | | } |
| | | |
| | | //提交信息 |
| | |
| | | |
| | | }); |
| | | |
| | | if(null != $('#id').val()){ |
| | | if(null != $('#id').val() && '' != $('#id').val()){ |
| | | WorldCupInfo.stores = JSON.parse($('#storeInfo').val()); |
| | | WorldCupInfo.initStore(); |
| | | let lng = $('#longitude').val(); |