249 lines
3.9 KiB
Plaintext
249 lines
3.9 KiB
Plaintext
/* 扫码解析页样式 */
|
|
.page {
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
|
|
}
|
|
|
|
.nav-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: rgba(10, 10, 10, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.nav-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8rpx 24rpx;
|
|
height: 88rpx;
|
|
}
|
|
|
|
.back-btn {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.back-icon {
|
|
font-size: 40rpx;
|
|
color: #00CED1;
|
|
}
|
|
|
|
.nav-title {
|
|
flex: 1;
|
|
font-size: 34rpx;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
text-align: center;
|
|
margin-right: 60rpx;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 24rpx;
|
|
}
|
|
|
|
/* 扫码按钮 */
|
|
.scan-action {
|
|
padding: 60rpx 0;
|
|
}
|
|
|
|
.scan-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, rgba(32, 178, 170, 0.15) 100%);
|
|
border: 2rpx solid rgba(0, 206, 209, 0.4);
|
|
border-radius: 32rpx;
|
|
padding: 80rpx 48rpx;
|
|
}
|
|
|
|
.scan-icon {
|
|
font-size: 80rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.scan-text {
|
|
font-size: 32rpx;
|
|
color: #00CED1;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 解析结果卡片 */
|
|
.result-card {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 24rpx;
|
|
padding: 32rpx;
|
|
margin-top: 32rpx;
|
|
border: 1rpx solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.result-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.result-label {
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.result-actions {
|
|
display: flex;
|
|
gap: 24rpx;
|
|
}
|
|
|
|
.action-btn {
|
|
font-size: 26rpx;
|
|
color: #00CED1;
|
|
padding: 8rpx 20rpx;
|
|
}
|
|
|
|
.action-btn.secondary {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* 小程序码解析:路径+参数 */
|
|
.parsed-section {
|
|
background: rgba(0, 206, 209, 0.08);
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
border: 1rpx solid rgba(0, 206, 209, 0.2);
|
|
}
|
|
|
|
.parsed-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.parsed-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.parsed-label {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
min-width: 120rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.parsed-value {
|
|
font-size: 26rpx;
|
|
color: #00CED1;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.result-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.meta-item {
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.result-content {
|
|
max-height: 400rpx;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
}
|
|
|
|
.result-text {
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
line-height: 1.6;
|
|
word-break: break-all;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* 无结果提示 */
|
|
.empty-tip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 60rpx 0;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 80rpx;
|
|
margin-bottom: 20rpx;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 30rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.empty-desc {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* 扫码历史 */
|
|
.history-section {
|
|
margin-top: 48rpx;
|
|
}
|
|
|
|
.history-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.history-title {
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.clear-history {
|
|
font-size: 26rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.history-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
border: 1rpx solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.history-content {
|
|
font-size: 26rpx;
|
|
color: #fff;
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.history-time {
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
margin-top: 8rpx;
|
|
display: block;
|
|
}
|