添加日志窗口,辅助测试。
This commit is contained in:
@@ -1066,3 +1066,172 @@
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* ===== 调试按钮(顶部Header) ===== */
|
||||
.debug-top-btn {
|
||||
flex-shrink: 0;
|
||||
background: rgba(108, 99, 255, 0.15);
|
||||
}
|
||||
|
||||
.debug-top-btn:active {
|
||||
background: rgba(108, 99, 255, 0.3);
|
||||
}
|
||||
|
||||
.debug-top-text {
|
||||
font-size: 18rpx;
|
||||
font-weight: 700;
|
||||
color: #6c63ff;
|
||||
}
|
||||
|
||||
/* ===== 调试面板(居中弹窗) ===== */
|
||||
.debug-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.debug-panel {
|
||||
width: 100%;
|
||||
max-height: 80vh;
|
||||
background: #1e1e2e;
|
||||
border-radius: 24rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.debug-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 28rpx 32rpx 20rpx;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.debug-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #cdd6f4;
|
||||
}
|
||||
|
||||
.debug-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 28rpx;
|
||||
}
|
||||
|
||||
.debug-clear-btn {
|
||||
font-size: 24rpx;
|
||||
color: #f38ba8;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(243, 139, 168, 0.12);
|
||||
}
|
||||
|
||||
.debug-close-btn {
|
||||
font-size: 32rpx;
|
||||
color: #a6adc8;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.debug-section {
|
||||
padding: 20rpx 24rpx;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.debug-label {
|
||||
font-size: 24rpx;
|
||||
color: #89b4fa;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
/* 状态网格 */
|
||||
.debug-state-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12rpx 28rpx;
|
||||
}
|
||||
|
||||
.debug-state-item {
|
||||
font-size: 24rpx;
|
||||
color: #cdd6f4;
|
||||
}
|
||||
|
||||
.state-key {
|
||||
color: #a6adc8;
|
||||
}
|
||||
|
||||
.state-val {
|
||||
color: #cdd6f4;
|
||||
}
|
||||
|
||||
.state-val-ok {
|
||||
color: #a6e3a1;
|
||||
}
|
||||
|
||||
.state-val-err {
|
||||
color: #f38ba8;
|
||||
}
|
||||
|
||||
.state-val-warn {
|
||||
color: #f9e2af;
|
||||
}
|
||||
|
||||
/* 原始消息展示 */
|
||||
.debug-raw-box {
|
||||
max-height: 400rpx;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
border-radius: 12rpx;
|
||||
padding: 16rpx;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.debug-json {
|
||||
font-size: 20rpx;
|
||||
color: #bac2de;
|
||||
font-family: 'Courier New', monospace;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.debug-empty {
|
||||
font-size: 22rpx;
|
||||
color: #585b70;
|
||||
font-style: italic;
|
||||
padding: 12rpx 0;
|
||||
}
|
||||
|
||||
/* 本轮消息列表项 */
|
||||
.debug-round-item {
|
||||
padding: 12rpx 0;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.debug-round-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.debug-round-index {
|
||||
font-size: 22rpx;
|
||||
color: #f5c2e7;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.debug-round-time {
|
||||
font-size: 20rpx;
|
||||
color: #585b70;
|
||||
font-weight: 400;
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user