From 9dfbc038667839631578c12ff748534e5939bc82 Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 02 九月 2025 14:34:23 +0800
Subject: [PATCH] 1.修复微信小程序canvans显示在最上层问题
---
manifest.json | 5 +++++
pages/tabBar/device.vue | 6 +++---
pages/tabBar/components/hisWarning.vue | 8 ++++----
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/manifest.json b/manifest.json
index e251635..8d72244 100644
--- a/manifest.json
+++ b/manifest.json
@@ -8,6 +8,11 @@
"sassImplementationName" : "node-sass",
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
+ "compatible" : {
+ "ignoreVersion" : true
+ },
+ // "runtimeVersion": "4.75", // 濡傛灉闇�瑕佹寚瀹氬吋瀹圭殑杩愯鐜鐗堟湰锛屽彲浠ュ彇娑堟敞閲婂苟淇敼
+ // "compilerVersion": "4.75" // 濡傛灉闇�瑕佹寚瀹氱紪璇戝櫒鐗堟湰锛屽彲浠ュ彇娑堟敞閲婂苟淇敼
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
diff --git a/pages/tabBar/components/hisWarning.vue b/pages/tabBar/components/hisWarning.vue
index 91fd69a..120c555 100644
--- a/pages/tabBar/components/hisWarning.vue
+++ b/pages/tabBar/components/hisWarning.vue
@@ -56,7 +56,7 @@
<view class="chartsMain" style="height: 400rpx;">
<!-- <qiun-data-charts type="mount" :opts="opts" :ontouch='true' :animation="true" :chartData="mountData" /> -->
- <qiun-data-charts canvasId="chat1" type="column" :errorMessage="errorMessage1"
+ <qiun-data-charts :canvas2d="true" canvasId="chat1" type="column" :errorMessage="errorMessage1"
:opts="opts" :ontouch='true' :animation="true" :chartData="statisData" />
</view>
@@ -79,7 +79,7 @@
</view>
<view class="chartsMain">
- <qiun-data-charts canvasId="chat2" type="pie" :errorMessage="errorMessage2"
+ <qiun-data-charts :canvas2d="true" canvasId="chat2" type="pie" :errorMessage="errorMessage2"
:opts="optsPie" :ontouch='true' :animation="true" :chartData="pieData" />
</view>
@@ -106,7 +106,7 @@
<view class="chartsMain" style="height: 500rpx;">
<!-- <qiun-data-charts type="mount" :opts="{extra:{mount:{type:'mount',widthRatio:1.5}}}"
:chartData="Mount" /> -->
- <qiun-data-charts canvasId="chat3" type="word" :errorMessage="errorMessage3"
+ <qiun-data-charts :canvas2d="true" canvasId="chat3" type="word" :errorMessage="errorMessage3"
:chartData="wordData" />
</view>
</view>
@@ -128,7 +128,7 @@
<view class="chartsMain" style="height: 500rpx;">
- <qiun-data-charts canvasId="chat4" type="line" :opts="optsStep"
+ <qiun-data-charts :canvas2d="true" canvasId="chat4" type="line" :opts="optsStep"
:errorMessage="errorMessage4" :ontouch='true' :animation="true" :chartData="statisData" />
<!-- <qiun-data-charts type="radar" :opts="optsRadar" :chartData="dataRadar" /> -->
diff --git a/pages/tabBar/device.vue b/pages/tabBar/device.vue
index f5526b2..5f54016 100644
--- a/pages/tabBar/device.vue
+++ b/pages/tabBar/device.vue
@@ -219,11 +219,11 @@
}
},
- mounted() {
+ onShow() {
this.startTimer()
this.mqttData()
},
- beforeDestroy() {
+ onHide() {
this.stopTimer()
uni.$off(this.$constant.MQTT_TOPIC_MESSAGE)
},
@@ -342,7 +342,7 @@
case topics.updateEquStatu:
this.handleEquipmentStatusUpdate(wdata);
break;
- case topics.realData:
+ case topics.realData:
this.mergeMqttRealData(wdata);
break;
case topics.realFaultTopic:
--
Gitblit v1.9.3