Files
ai_dianshang/miniprogram/pages/network-test/index.wxss
2025-11-17 14:11:46 +08:00

141 lines
1.9 KiB
Plaintext

/* pages/network-test/index.wxss */
.container {
padding: 20rpx;
background-color: #f5f5f5;
min-height: 100vh;
}
.header {
text-align: center;
margin-bottom: 40rpx;
padding: 20rpx;
background-color: white;
border-radius: 10rpx;
}
.title {
display: block;
font-size: 36rpx;
font-weight: bold;
color: #333;
margin-bottom: 10rpx;
}
.subtitle {
display: block;
font-size: 24rpx;
color: #666;
}
.test-buttons {
display: flex;
flex-direction: column;
gap: 20rpx;
margin-bottom: 40rpx;
}
.test-btn {
padding: 20rpx;
border-radius: 10rpx;
font-size: 28rpx;
border: none;
}
.test-btn.primary {
background-color: #07c160;
color: white;
}
.test-btn.secondary {
background-color: #ff6b6b;
color: white;
}
.test-btn:not(.primary):not(.secondary) {
background-color: #1989fa;
color: white;
}
.test-btn[disabled] {
background-color: #ccc !important;
color: #999 !important;
}
.loading {
text-align: center;
padding: 40rpx;
color: #666;
}
.results {
background-color: white;
border-radius: 10rpx;
padding: 20rpx;
}
.results-title {
display: block;
font-size: 32rpx;
font-weight: bold;
color: #333;
margin-bottom: 20rpx;
}
.result-item {
border-bottom: 1rpx solid #eee;
padding: 20rpx 0;
}
.result-item:last-child {
border-bottom: none;
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.test-name {
font-size: 28rpx;
font-weight: bold;
color: #333;
}
.status {
font-size: 24rpx;
padding: 4rpx 12rpx;
border-radius: 20rpx;
color: white;
}
.status.success {
background-color: #07c160;
}
.status.failed {
background-color: #ff6b6b;
}
.timestamp {
font-size: 20rpx;
color: #999;
}
.result-details {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.status-code {
font-size: 24rpx;
color: #666;
}
.message {
font-size: 24rpx;
color: #333;
word-break: break-all;
}