支持打印和搜索
This commit is contained in:
+22
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user