From 7d1f18053bb7d0bdd55a38f44b0979615d00936b Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期二, 02 九月 2025 13:46:45 +0800 Subject: [PATCH] 更新首页,新增模型计算功能并添加登录检查逻辑;修改app.json以包含新页面配置;更新项目配置以支持大包体积;优化样式以提升用户体验。 --- pages/home/home.wxml | 58 +++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 37 insertions(+), 21 deletions(-) diff --git a/pages/home/home.wxml b/pages/home/home.wxml index 3629ebc..482f022 100644 --- a/pages/home/home.wxml +++ b/pages/home/home.wxml @@ -4,9 +4,9 @@ <view class="head-wrapper"> <view class="head-top"> <view class="avatar-project-container"> - + <t-avatar class="avatar-example" image="{{image}}" size="120rpx" bind:tap="handleAvatarTap" /> - <view class="current-project"> + <view class="current-project"> <text>{{ projectConfig[selectedProject].displayName }}</text> <view class="switch-project" bind:tap="switchProject"> <image class="switch-icon" src="/images/switch.svg" /> @@ -30,25 +30,41 @@ </view> <view class="center-wrapper"> - <!-- <view class="center-view" bind:tap="recharge"> - <image src="/images/wallet.svg" /> - <text>鍏呭��</text> - </view> --> - <view class="center-view" bind:tap="monitor"> - <image src="/images/monitor.svg" /> - <text>缁煎悎绔欑洃娴�</text> - </view> - <view class="center-view" bind:tap="openValve"> - <image src="/images/valva.svg" /> - <text>寮�闃�</text> - </view> - <view class="center-view" bind:tap="openValveList"> - <image src="/images/record.svg" /> - <text>寮�鍏抽榾璁板綍</text> - </view> - <view class="center-view" bind:tap="irrigation"> - <image src="/images/irrigation.svg" /> - <text>杞亴</text> + <view class="center-grid"> + <view class="grid-item" bind:tap="monitor"> + <view class="item-icon"> + <image src="/images/monitor.svg" /> + </view> + <text class="item-text">缁煎悎绔欑洃娴�</text> + </view> + + <view class="grid-item" bind:tap="openValve"> + <view class="item-icon"> + <image src="/images/valva.svg" /> + </view> + <text class="item-text">寮�闃�</text> + </view> + + <view class="grid-item" bind:tap="openValveList"> + <view class="item-icon"> + <image src="/images/record.svg" /> + </view> + <text class="item-text">寮�鍏抽榾璁板綍</text> + </view> + + <view class="grid-item" bind:tap="irrigation"> + <view class="item-icon"> + <image src="/images/irrigation.svg" /> + </view> + <text class="item-text">杞亴</text> + </view> + + <view class="grid-item" bind:tap="modeCompute"> + <view class="item-icon"> + <image src="/images/mode.svg" /> + </view> + <text class="item-text">妯″瀷璁$畻</text> + </view> </view> </view> -- Gitblit v1.8.0