Commit b14bac32 by doszhang

dos

parent cc99d7bb
...@@ -105,21 +105,23 @@ $(document).ready(function () { ...@@ -105,21 +105,23 @@ $(document).ready(function () {
var month = myDate.getMonth() + 1; var month = myDate.getMonth() + 1;
var day = myDate.getDate(); var day = myDate.getDate();
if(month > yue)
if (month >= yue && day >= ri) { {
$('.n-l').text(count_year); $('.n-l').text(count_year - 1);
}
else if(month == yue)
} else { {
if(day >= ri)
if (count_year == 0) { {
$('.n-l').text(count_year); $('.n-l').text(count_year);
} else { }
else {
$('.n-l').text(count_year - 1); $('.n-l').text(count_year - 1);
} }
} }
else {
$('.n-l').text(count_year);
}
if (window.age == 1) { if (window.age == 1) {
$('.sex').text('男性'); $('.sex').text('男性');
......
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 sign in to comment