| | |
| | | '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") : registrationClosingTime), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | if (res.code==200){ |
| | | Feng.success("添加成功!"); |
| | | WorldCupInfo.close(); |
| | | window.parent.WorldCup.refresh(); |
| | | window.parent.WorldCup.search(); |
| | | }else{ |
| | | Feng.error(res.msg); |
| | | } |
| | |
| | | '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") : registrationClosingTime), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | if (res.code==200){ |
| | | Feng.success("编辑成功!"); |
| | | WorldCupInfo.close(); |
| | | window.parent.WorldCup.refresh(); |
| | | window.parent.WorldCup.search(); |
| | | }else{ |
| | | Feng.error(res.msg); |
| | | } |
| | |
| | | |
| | | }); |
| | | |
| | | if(null != $('#id').val()){ |
| | | if(null != $('#id').val() && '' != $('#id').val()){ |
| | | WorldCupInfo.stores = JSON.parse($('#storeInfo').val()); |
| | | WorldCupInfo.initStore(); |
| | | let lng = $('#longitude').val(); |
| | |
| | | |
| | | WorldCupInfo.initStore = function (){ |
| | | let html = ''; |
| | | let page = $('#page').val(); |
| | | for (let i = 0; i < WorldCupInfo.stores.length; i++) { |
| | | let item = WorldCupInfo.stores[i]; |
| | | html += '<tr><td>' + item.province + '</td><td>' + (typeof item.operator == "undefined" ? "" : item.operator) + '</td><td>' + item.name + '</td><td><button style="height: 30px;\n' + |
| | | ' line-height: 30px;\n' + |
| | | ' font-size: 14px;\n' + |
| | | ' width: 50px" onclick="WorldCupInfo.delStore(' + item.id + ')">删除</button></td></tr>' |
| | | html += '<tr><td>' + item.province + '</td><td>' + (typeof item.operator == "undefined" ? "" : item.operator) + '</td><td>' + item.name + '</td>'; |
| | | if("info" != page){ |
| | | html += '<td><button style="height: 30px;\n' + |
| | | ' line-height: 30px;\n' + |
| | | ' font-size: 14px;\n' + |
| | | ' width: 50px" onclick="WorldCupInfo.delStore(' + item.id + ')">删除</button></td></tr>' |
| | | }else{ |
| | | html += '</tr>'; |
| | | } |
| | | } |
| | | $('#stores tbody').html(html); |
| | | } |