Commit 664e0160 authored by 张牧越's avatar 张牧越

bugfix

parent 9f51547a
...@@ -93,18 +93,11 @@ function getHeaderInfo() { ...@@ -93,18 +93,11 @@ function getHeaderInfo() {
type: "get", type: "get",
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
<<<<<<< static/js/public.js
if(data.status == 500){
window.location="/LoginDirect.aspx";
return
}
=======
if (data.status == 500) { if (data.status == 500) {
window.location = "/LoginDirect.aspx"; window.location = "/LoginDirect.aspx";
return return
} }
>>>>>>> static/js/public.js
$("#op_name").html(data.data[0].op_name); $("#op_name").html(data.data[0].op_name);
$("#area").html(data.data[0].area); $("#area").html(data.data[0].area);
$("#op_avatar").attr('src', data.data[0].op_avatar); $("#op_avatar").attr('src', data.data[0].op_avatar);
......
...@@ -509,7 +509,7 @@ var getRightdata = { ...@@ -509,7 +509,7 @@ var getRightdata = {
} }
} }
function getMonthDay(year, month) { function getMonthDay(year, month) {
let days = new Date(year, month + 1, 0).getDate() let days = new Date(year, month, 0).getDate()
return days return days
} }
var getBottomData = { var getBottomData = {
...@@ -556,7 +556,7 @@ var getBottomData = { ...@@ -556,7 +556,7 @@ var getBottomData = {
var lastDay = getMonthDay(year, month) var lastDay = getMonthDay(year, month)
console.log(year, month) console.log(year, month)
$("#bhg-date .begin").html(year + '-' + month + '-' + '01'); $("#bhg-date .begin").html(year + '-' + month + '-' + '01');
$("#bhg-date .end").html(year + '-' + month + '-' + lastDay); $("#bhg-date .end").html(year + '-' + month + '-' + Number(lastDay));
this.getUnusual(); this.getUnusual();
}, },
getUnusual: function () { getUnusual: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment