+ | {{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}}
|
@@ -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 @@