From d8136d2b9065977e2607453e8fbf2e0f6b7c0158 Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期五, 29 八月 2025 16:59:13 +0800 Subject: [PATCH] 更新监测页面,添加分页功能以提升用户体验;修改视频列表接口调用逻辑,优化数据处理;更新样式以增强可视化效果。 --- pages/stationMonitor/stationMonitor.wxss | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 158 insertions(+), 3 deletions(-) diff --git a/pages/stationMonitor/stationMonitor.wxss b/pages/stationMonitor/stationMonitor.wxss index 1a34923..941ae2a 100644 --- a/pages/stationMonitor/stationMonitor.wxss +++ b/pages/stationMonitor/stationMonitor.wxss @@ -700,16 +700,16 @@ filter: brightness(0) invert(1); } -/* 瑙嗛鎾斁鍣ㄥ鍣� */ + /* 瑙嗛鎾斁鍣ㄥ鍣� */ .video-wrapper { width: 100%; - height: 100%; + height: 400rpx; } .video-wrapper-ezplayer { width: 100%; height: 100%; -} +} @@ -1229,4 +1229,159 @@ width: 32rpx; height: 32rpx; } +} + +/* 鍒嗛〉缁勪欢鏍峰紡 */ +.pagination { + margin: 32rpx 24rpx; + padding: 24rpx; + background: #fff; + border-radius: 16rpx; + box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); +} + +.pagination-info { + text-align: center; + margin-bottom: 24rpx; +} + +.pagination-text { + font-size: 28rpx; + color: #666; + font-weight: 500; +} + +.pagination-controls { + display: flex; + align-items: center; + justify-content: center; + gap: 24rpx; +} + +.pagination-btn { + min-width: 120rpx; + height: 72rpx; + border: none; + border-radius: 36rpx; + background: linear-gradient(135deg, #0052d9 0%, #1890ff 100%); + color: #fff; + font-size: 28rpx; + font-weight: 500; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.3s ease; + box-shadow: 0 4rpx 12rpx rgba(0, 82, 217, 0.3); +} + +.pagination-btn:active { + transform: translateY(2rpx); + box-shadow: 0 2rpx 8rpx rgba(0, 82, 217, 0.4); +} + +.pagination-btn.prev-btn { + background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%); + box-shadow: 0 4rpx 12rpx rgba(82, 196, 26, 0.3); +} + +.pagination-btn.prev-btn:active { + box-shadow: 0 2rpx 8rpx rgba(82, 196, 26, 0.4); +} + +.pagination-btn.next-btn { + background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%); + box-shadow: 0 4rpx 12rpx rgba(250, 140, 22, 0.3); +} + +.pagination-btn.next-btn:active { + box-shadow: 0 2rpx 8rpx rgba(250, 140, 22, 0.4); +} + +/* 鍗犱綅闅愯棌鏍峰紡 */ +.pagination-btn.hidden { + opacity: 0.3; + background: #ccc !important; + box-shadow: none !important; + cursor: not-allowed; + pointer-events: none; +} + +.pagination-btn.hidden .btn-text { + color: #999; +} + +/* 绂佺敤鐘舵�佹牱寮� */ +.pagination-btn:disabled { + opacity: 0.3; + background: #ccc !important; + box-shadow: none !important; + cursor: not-allowed; + pointer-events: none; +} + +.pagination-btn:disabled .btn-text { + color: #999; +} + +.btn-text { + color: #fff; + font-weight: 500; +} + +.page-info { + display: flex; + align-items: center; + gap: 8rpx; + padding: 16rpx 24rpx; + background: #f8f9fa; + border-radius: 24rpx; + border: 2rpx solid #e9ecef; +} + +.page-number { + font-size: 32rpx; + color: #0052d9; + font-weight: 700; +} + +.page-separator { + font-size: 24rpx; + color: #999; + font-weight: 400; +} + +.total-pages { + font-size: 28rpx; + color: #666; + font-weight: 500; +} + +/* 鍒嗛〉缁勪欢鍝嶅簲寮忎紭鍖� */ +@media (max-width: 400px) { + .pagination { + margin: 24rpx 16rpx; + padding: 20rpx; + } + + .pagination-controls { + gap: 20rpx; + } + + .pagination-btn { + min-width: 100rpx; + height: 64rpx; + font-size: 26rpx; + } + + .page-info { + padding: 12rpx 20rpx; + } + + .page-number { + font-size: 28rpx; + } + + .total-pages { + font-size: 26rpx; + } } \ No newline at end of file -- Gitblit v1.8.0