|
|
@@ -222,13 +222,11 @@ function get_first(a, b, c, d, e) { |
|
|
|
var num = 1; |
|
|
|
|
|
|
|
for (var i = a; i > 0; i--) { |
|
|
|
console.log("123333") |
|
|
|
var bday = ldays - i + 1; |
|
|
|
var ly = LunarDate.GetLunarDayDetail(lb, lm, bday); |
|
|
|
|
|
|
|
//修改 |
|
|
|
var jqs = getjqs(lb, lm, bday); |
|
|
|
console.log(jqs) |
|
|
|
var ss = ''; |
|
|
|
if (jqs) { |
|
|
|
//ly加状态 |
|
|
@@ -254,7 +252,6 @@ function get_first(a, b, c, d, e) { |
|
|
|
} |
|
|
|
// 动态写入日期 |
|
|
|
for (var i = 1; i <= dd; i++) { |
|
|
|
console.log("123333") |
|
|
|
var bday = ldays - i + 1; |
|
|
|
var ly = LunarDate.GetLunarDayDetail(b, c, i); |
|
|
|
var numI = i |
|
|
@@ -490,7 +487,6 @@ $(".tc").on("click", function () { |
|
|
|
//判断时间 |
|
|
|
function getjqs(yyyy, mm, dd) { |
|
|
|
var solarTerms = ""; |
|
|
|
console.log("111222"); |
|
|
|
$.each(dataK, function (i, n) { |
|
|
|
if (yyyy == n.y && mm == n.m && dd == n.d) { |
|
|
|
solarTerms = n; |
|
|
@@ -672,7 +668,6 @@ function calenderInit(LunarDate) { |
|
|
|
var nowweak = new Date(ny, nm - 1, 1).getDay(); |
|
|
|
var lastweak = new Date(lasty, sev_m - 1, 1).getDay(); |
|
|
|
get_first(nowweak, ny, nm, 0, "d" + fors); |
|
|
|
console.log(lasty, lastm) |
|
|
|
get_first(lastweak, lasty, sev_m, 0, "d4"); |
|
|
|
$("#ymym").html(sev_y + "年" + sev_m + "月"); |
|
|
|
active = 1; |
|
|
|