From fdd19cc1956d4b50ba77bb754f15cb4ebe97c65e Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Wed, 6 Dec 2023 15:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=BA=94=E6=97=B6=E8=BE=B0=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=EF=BC=8C=E6=95=88=E6=9E=9C=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/timeAcupoint/timeAcupoint.vue | 194 +++++++++++++++++----------- 1 file changed, 116 insertions(+), 78 deletions(-) diff --git a/pages/timeAcupoint/timeAcupoint.vue b/pages/timeAcupoint/timeAcupoint.vue index f77c12d..9115d5c 100644 --- a/pages/timeAcupoint/timeAcupoint.vue +++ b/pages/timeAcupoint/timeAcupoint.vue @@ -9,17 +9,19 @@ - + - 天干
地支
-
+ 所查询时间:
+ {{dateToString}} +
- - {{tiangandizhi.hour}} - {{tiangandizhi.day}} - {{tiangandizhi.month}} - {{tiangandizhi.year}} - + 天干地支 + + {{tiangandizhi.hour}} - 时 + {{tiangandizhi.day}} - 日 + {{tiangandizhi.month}} - 月 + {{tiangandizhi.year}} - 年 +
@@ -31,7 +33,7 @@ 注:表中带* 者是原穴 - + @@ -41,53 +43,53 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
23 - 01
23~01
01 - 03
01~03
03 - 05
03~05
07 - 09
05~07
09 - 11
07~09
11 - 13
09~11
13 - 15
11~13
15 - 17
13~15
17 - 19
15~17
19 - 21
17~19
19 - 21
19~21
21 - 23
21~23
- + - - +
+ - - - + + + @@ -106,29 +108,39 @@ - - - - - + + + + + @@ -170,6 +182,7 @@ data() { return { playData: {}, + curIndex: null, pageWidth: uni.getSystemInfoSync().windowWidth, pageHeight: uni.getSystemInfoSync().windowHeight - 200, fiveYunNum: 5, @@ -177,17 +190,18 @@ date: new Date().getTime(), // 返回年月日带时间 dateToString: formatDateTime(new Date()), // 字符串格式的日期 timestamp: Date.now() - 2 * 24 * 3600 * 1000, // 时间戳 - showCalendar: false, + showCalendar: false, quxue: [], // 时辰取穴 - tiangandizhi:{}, - yuanXue:[ - '腕骨','丘墟','丘墟','太溪','大陵','京骨','阳池','太渊','合谷','太白','冲阳','神门'], + tiangandizhi: {}, + yuanXue: [ + '腕骨', '丘墟', '丘墟', '太溪', '大陵', '京骨', '阳池', '太渊', '合谷', '太白', '冲阳', '神门' + ], } }, onLoad() { let da = new Date().toISOString().slice(0, 10) this.timestamp = new Date(da).getTime() - console.log('初始时间', this.dateToString,this.date) + console.log('初始时间', this.dateToString, this.date) this.getXueWei(this.dateToString) this.getTGDZ(this.dateToString) }, @@ -198,13 +212,13 @@ methods: { scroll: function(e) {}, // 设置文字颜色 - getHightLightColor(text){ - if(text.indexOf('*') != -1){ + getHightLightColor(text) { + if (text.indexOf('*') != -1) { return "#9c3211" } }, // 获取天干地支 - getTGDZ(date){ + getTGDZ(date) { let that = this $http.request({ url: "book/point/TGDZForYear", @@ -217,11 +231,11 @@ }, }) .then(res => { - if (res.code == 0 ) { + if (res.code == 0) { console.log('天干地支', res.tgdz) - this.tiangandizhi = res.tgdz + this.tiangandizhi = res.tgdz } - + }).catch(e => { console.log(e, 'e') }); @@ -242,17 +256,27 @@ .then(res => { if (res.code == 0 && res.flag.length > 0) { console.log('时辰取穴', res.flag) - this.quxue = res.flag + this.quxue = res.flag + this.curIndex = res.flag.findIndex(function(item) { + return item.now == true + }) + this.curIndex = this.curIndex + 2 + console.log(this.curIndex, 'this.curIndex') } }).catch(e => { + this.curIndex = null console.log(e, 'e') }); }, + // checkAdult(item) { + // return item.now == true + // }, changeLog(e) { console.log('change事件:', e); let ss = e.slice(0, 10) this.timestamp = new Date(ss).getTime() + this.dateToString = e this.getXueWei(e) this.getTGDZ(e) }, @@ -267,26 +291,34 @@
灵龟八法飞腾八法子午流注灵龟八法飞腾八法子午流注
过时泄本 过时补原
{{item.lgbf.KX}}{{item.lgbf.HX}}{{item.ftbf.KX}}{{item.ftbf.HX}}
{{item.lgbf.KX}}{{item.lgbf.HX}}{{item.ftbf.KX}}{{item.ftbf.HX}} - - {{item1}} - + + {{item1}} + - {{item.zwlz.nzf.bf}} + {{item.zwlz.nzf.bf}} - {{item.zwlz.nzf.xf}} + {{item.zwlz.nzf.xf}} - {{item.zwlz.nzf.gsxb}} + {{item.zwlz.nzf.gsxb}} - {{item.zwlz.nzf.gsbf}} + {{item.zwlz.nzf.gsbf}}