Files
rlz/coupon/pages/service/service.wxss
renjianbo 1d0a0b9b04 feat: add request.js utility, service page, and fix hospital image URLs
- Add request.js for unified API calls with loading/error handling
- Add service page (service type listing)
- Fix hospital list to load from API with proper image URL construction
- Add service types dynamic loading on index page
- Various mini program improvements (order, care, wallet pages)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 10:13:26 +08:00

135 lines
1.9 KiB
Plaintext

.page {
min-height: 100vh;
background: #f5f6fa;
padding-bottom: 20rpx;
}
.header {
background: linear-gradient(135deg, #4A90D9, #357ABD);
padding: 60rpx 40rpx 40rpx;
color: #fff;
}
.header-title {
font-size: 40rpx;
font-weight: bold;
}
.header-sub {
font-size: 24rpx;
margin-top: 10rpx;
opacity: 0.85;
}
.tab-bar {
display: flex;
background: #fff;
padding: 0 30rpx;
border-bottom: 1rpx solid #eee;
}
.tab-item {
flex: 1;
text-align: center;
padding: 24rpx 0;
font-size: 28rpx;
color: #666;
position: relative;
}
.tab-item.active {
color: #4A90D9;
font-weight: bold;
}
.tab-line {
width: 60rpx;
height: 6rpx;
background: #4A90D9;
border-radius: 3rpx;
margin: 8rpx auto 0;
}
.service-list {
padding: 24rpx;
}
.service-card {
display: flex;
align-items: center;
background: #fff;
border-radius: 16rpx;
padding: 28rpx 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
}
.card-left {
margin-right: 20rpx;
}
.card-icon {
width: 90rpx;
height: 90rpx;
border-radius: 16rpx;
background: #f0f4ff;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.card-icon image {
width: 60rpx;
height: 60rpx;
}
.card-body {
flex: 1;
overflow: hidden;
}
.card-name {
font-size: 30rpx;
font-weight: 600;
color: #333;
margin-bottom: 8rpx;
}
.card-desc {
font-size: 24rpx;
color: #999;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-right {
text-align: center;
margin-left: 16rpx;
}
.card-price {
font-size: 32rpx;
font-weight: bold;
color: #FF8F1F;
margin-bottom: 10rpx;
}
.card-btn {
background: linear-gradient(135deg, #4A90D9, #357ABD);
color: #fff;
font-size: 24rpx;
padding: 8rpx 28rpx;
border-radius: 30rpx;
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 160rpx;
color: #999;
font-size: 28rpx;
}