diff --git a/src/pages/environment/index.vue b/src/pages/environment/index.vue index 4132873..3866bd3 100644 --- a/src/pages/environment/index.vue +++ b/src/pages/environment/index.vue @@ -7,68 +7,68 @@ - - - - - - - 🌡️ - 温度 - - - {{ temperature }}°C - - - - - - - + + + + + + + 🌡️ + 温度 - - - - - - 💧 - 湿度 - - - {{ humidity }}% - - - - - - - - - - - - - - - 洁净度 - - - {{ cleanliness > 0 ? cleanliness + 'μg/m³' : '-μg/m³' }} - - - - - - - + + {{ temperature }}°C + + + + + + + + + + + + 💧 + 湿度 + + + {{ humidity }}% + + + + + + + + + + + + + + + 洁净度 + + + {{ cleanliness > 0 ? cleanliness + 'μg/m³' : '-μg/m³' }} + + + + + + + + + @@ -385,6 +385,13 @@ export default { this.loadWsdSettings() // 注意:定时器在 onShow 中启动,避免重复启动 }, + navigateToParameterRecord() { + try { + uni.switchTab({ url: '/pages/parameter/index' }) + } catch (e) { + uni.showToast({ title: '页面跳转失败', icon: 'none' }) + } + }, // 首次进入系统时创建启动事件 async createStartupEventIfNeeded() { // 检查是否已经创建过启动事件 diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f98658b..c612162 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -16,15 +16,32 @@ 上动物联 - - - - + + + + + + 密码 + + + + + + + + @@ -37,84 +54,141 @@