柒零 1 gadu atpakaļ
vecāks
revīzija
fc347bf6e0
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      subpages/data/data.js

+ 5 - 5
subpages/data/data.js

@@ -986,7 +986,7 @@ function initChartTimeWaterfall(canvas, width, height, dpr) {
 		devicePixelRatio: dpr // new
 	});
 	canvas.setChart(chart);
-	setTimeWaterfallOption(chart);
+	setTimeWaterfallOption(chart, null, [{ "name": "清醒", "value": [2, 0, 0, 0], "itemStyle": { "normal": { "color": { "colorStops": [{ "offset": 0, "color": "#AAD09F" }, { "offset": 1, "color": "#AAD09F" }], "x": 0, "y": 0, "x2": 0, "y2": 1, "type": "linear", "global": false } } } }]);
 
 	// 将图表实例绑定到 this 上,可以在其他成员函数(如 dispose)中访问
 	chartTimeWaterfall = chart;
@@ -2043,8 +2043,8 @@ Page({
 			onInit: initApneaLine
 		},
 		ecTimeWaterfall: {
-			lazyLoad: true, // 懒加载
-			// onInit: initChartTimeWaterfall
+			// lazyLoad: true, // 懒加载
+			onInit: initChartTimeWaterfall
 		},
 		header: false,
 		showAuthorizedDialog: false,
@@ -2063,7 +2063,7 @@ Page({
 		status: "",
 
 		isShow: false,
-		isToDay:false,
+		isToDay: false,
 
 		year: addZero(new Date().getFullYear()),
 		month: addZero(new Date().getMonth()),
@@ -4369,7 +4369,7 @@ Page({
 				}
 			}
 		}
-		
+
 		wx.nextTick(() => {
 			setTimeout(() => {
 				updateTimeWaterfall(startTime, timePeriods, that)