支持打印和搜索

This commit is contained in:
2026-04-27 22:01:45 +08:00
parent 09e806c969
commit 7bcd159605
8 changed files with 1121 additions and 15 deletions
+22 -3
View File
@@ -2,7 +2,10 @@
<view class="container">
<!-- 欢迎区域 -->
<view class="welcome-section">
<text class="welcome-title">{{ welcomeText }}</text>
<view class="welcome-header">
<text class="welcome-title">{{ welcomeText }}</text>
<text class="search-icon" @click="goSearch">🔍</text>
</view>
<text class="welcome-date">{{ todayDisplay }}</text>
</view>
@@ -188,6 +191,10 @@ function switchToTab(url) {
uni.switchTab({ url })
}
function goSearch() {
uni.navigateTo({ url: '/pages/search/search' })
}
// 定时刷新
let refreshTimer = null
const REFRESH_INTERVAL = 5000 // 5秒
@@ -247,12 +254,24 @@ onHide(() => {
padding: 30rpx 0;
}
.welcome-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.welcome-title {
display: block;
font-size: 44rpx;
font-weight: bold;
color: #333;
margin-bottom: 10rpx;
}
.search-icon {
font-size: 40rpx;
padding: 10rpx 20rpx;
background-color: #f0f0f0;
border-radius: 50%;
}
.welcome-date {