| | |
| | | } |
| | | }); |
| | | |
| | | $.ajax({ |
| | | url: baseUrl + "/license/getLicenseDays", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | let days = res.data |
| | | if (days <= 30) { |
| | | $("#licenseShow").show() |
| | | $("#licenseDays").html(days) |
| | | } |
| | | }else { |
| | | top.location.href = baseUrl + "/login"; |
| | | } |
| | | } |
| | | }); |
| | | // $.ajax({ |
| | | // url: baseUrl + "/license/getLicenseDays", |
| | | // headers: {'token': localStorage.getItem('token')}, |
| | | // method: 'POST', |
| | | // success: function (res) { |
| | | // if (res.code == 200) { |
| | | // let days = res.data |
| | | // if (days <= 30) { |
| | | // $("#licenseShow").show() |
| | | // $("#licenseDays").html(days) |
| | | // } |
| | | // }else { |
| | | // top.location.href = baseUrl + "/login"; |
| | | // } |
| | | // } |
| | | // }); |
| | | |
| | | // 默认加载主页 |
| | | index.loadHome({ |