Jelajahi Sumber

首页数据迁移

zhaomiao 4 tahun lalu
induk
melakukan
c92fce1e67

+ 13 - 0
components/bracelet/raceletDetails/heartbeatDetails.vue

@@ -109,9 +109,22 @@
 			this.cHeight = uni.upx2px(600);
 			this.getServerData_C();
 		},
+		//整体背景颜色
 		mounted() {
 			document.querySelector('body').setAttribute('style', 'background-color:#242424');
 		},
+		beforeCreate () {
+		
+		  document.querySelector('body').setAttribute('style', 'background-color:#242424')
+		
+		},
+		
+		beforeDestroy () {
+		
+		  document.querySelector('body').removeAttribute('style')
+		
+		},
+		
 		onShow:function(){
 		},
 		methods: {

+ 2 - 1
components/windStationCardDetail/WindStationCardDetail.vue

@@ -288,7 +288,8 @@
 					this.socketTask_comprehensive_target.onMessage(res => {
 						//console.log("收到服务器内容:" + res.data);
 						_this.windpowerstationdetail.comprehensive_target = JSON.parse(res.data)[_this.FDC];
-
+						
+						
 					});
 				});
 				// 这里仅是事件监听【如果socket关闭了会执行】

+ 0 - 8
pages/forecast/Forecast.vue

@@ -69,7 +69,6 @@
 		</view>
 		<!-- 健康详情组件 -->
 		<view class="healthy">
-			
 			<view class="healthy_H">
 				<view class="details_z">心跳频率:<!-- ({{ bracelet[deviceName][targetName_xtpl][targetName_xtpl_size].value }}) --></view>
 				<view class="details_m">步数:<!-- ({{ bracelet[deviceName][targetName_bs][targetName_bs_size].value }}) --></view>
@@ -772,14 +771,10 @@ page {
 	position: absolute;
 	background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);	
 	width: 30%;	
-	
-	/* height: 93%; */
 	left:3%;
 	height: 60px;
 	top: 3%;
 	margin-top: 2%;
-	
-	padding-bottom: 3%;
 }
 .details_m {
 	position: absolute;
@@ -789,8 +784,6 @@ page {
 	height: 60px;
 	top: 3%;
 	margin-top: 2%;
-	
-	padding-bottom: 3%;
 }
 .details_y {
 	position: absolute;
@@ -800,7 +793,6 @@ page {
 	height: 60px;
 	top: 3%;
 	margin-top: 2%;
-	padding-bottom: 3%;
 	/* margin-bottom: 0.6%;
 	margin-top: 0.6%;
 	float: right;

+ 25 - 43
pages/index/Index.vue

@@ -2170,8 +2170,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2184,8 +2183,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2198,8 +2196,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2212,7 +2209,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,
@@ -2512,7 +2509,7 @@
 							titleFontColor: 'silver'
 						}],
 						gridColor: '#2E2E2E',
-						splitNumber: 4,
+						splitNumber: 5,
 						gridType: 'solid',
 						dashLength: 8,
 						showTitle: false
@@ -2617,8 +2614,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2631,8 +2627,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2645,8 +2640,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2659,7 +2653,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,
@@ -2702,8 +2696,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2716,8 +2709,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2730,8 +2722,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2744,7 +2735,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,
@@ -2787,8 +2778,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2801,8 +2791,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2815,8 +2804,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2829,7 +2817,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,
@@ -2872,8 +2860,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2886,8 +2873,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2900,8 +2886,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2914,7 +2899,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,
@@ -2957,8 +2942,7 @@
 					],
 					series: [{
 							name: '功率',
-							data: [11, 12, 14, 12, 13, 12, 16, 14, 11, 13, 10, 14, 11, 13, 11, 12, 11, 12.1, 12.2, 11.5, 11.7, 11.3, 12.7,
-								13, 12.8
+							data: [
 							],
 							color: '#4BB94B',
 							textColor: '#FFFFFF',
@@ -2971,8 +2955,7 @@
 						},
 						{
 							name: '风速',
-							data: [21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22.1, 22.2, 21.5, 21.7, 21.3, 22.7,
-								23, 22.8
+							data: [
 							],
 							color: '#E82E2F',
 							textColor: '#FFFFFF',
@@ -2985,8 +2968,7 @@
 						},
 						{
 							name: '理论功率',
-							data: [31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32, 31, 32.1, 32.2, 31.5, 31.7, 31.3, 32.7,
-								33, 32.8
+							data: [
 							],
 							color: '#F5A83C',
 							textColor: '#FFFFFF',
@@ -2999,7 +2981,7 @@
 						},
 						{
 							name: '预测功率',
-							data: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.1, 2.2, 1.5, 1.7, 1.3, 2.7, 3, 2.8],
+							data: [],
 							color: '#4A80B1',
 							textColor: '#FFFFFF',
 							textSize: this.seriesTextSize,