You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/* 详情页样式 */.detail-page { background-color: #f8f9fa; min-height: 100vh; padding-bottom: 120rpx; } /* 药品图片轮播 */ .medicine-images { position: relative; height: 500rpx; } .detail-swiper { height: 100%; } .detail-image { width: 100%; height: 100%; } /* 药品标签 */ .detail-tag { position: absolute; top: 30rpx; right: 30rpx; padding: 10rpx 20rpx; border-radius: 25rpx; font-size: 24rpx; color: white; background-color: #3a7ff3; display: flex; align-items: center; z-index: 10; } .detail-tag.prescription { background-color: #f44336; } .detail-tag.otc { background-color: #4CAF50; } .detail-tag.chinese { background-color: #FF9800; } .detail-tag.health { background-color: #9C27B0; } .hot-badge { margin-left: 10rpx; padding: 4rpx 10rpx; background-color: #ff4444; border-radius: 15rpx; font-size: 20rpx; } /* 基本信息区域 */ .basic-info-section { background-color: white; padding: 30rpx; margin-bottom: 20rpx; } .medicine-name { font-size: 38rpx; font-weight: bold; color: #333; margin-bottom: 15rpx; line-height: 1.4; } .medicine-spec { font-size: 28rpx; color: #666; margin-bottom: 10rpx; } .manufacturer { font-size: 26rpx; color: #999; margin-bottom: 25rpx; } /* 价格信息 */ .price-info { display: flex; align-items: center; justify-content: space-between; padding-top: 20rpx; border-top: 2rpx solid #f8f9fa; } .current-price { color: #ff4444; font-weight: bold; display: flex; align-items: baseline; } .price-symbol { font-size: 28rpx; margin-right: 4rpx; } .price-value { font-size: 48rpx; } .original-price { font-size: 26rpx; color: #999; text-decoration: line-through; } .sales-count { font-size: 26rpx; color: #666; } /* 信息区块通用样式 */ .info-section, .expert-section, .store-section, .details-section, .safety-tips { background-color: white; margin-bottom: 20rpx; padding: 30rpx; } .section-title { font-size: 34rpx; font-weight: bold; color: #333; margin-bottom: 20rpx; padding-bottom: 15rpx; border-bottom: 2rpx solid #f8f9fa; } .section-content { font-size: 28rpx; color: #666; line-height: 1.6; } /* 专家卡片 */ .expert-card { background-color: #f8f9fa; border-radius: 15rpx; padding: 25rpx; margin-top: 20rpx; } .expert-header { display: flex; margin-bottom: 20rpx; } .expert-avatar { width: 100rpx; height: 100rpx; border-radius: 50%; margin-right: 20rpx; } .expert-info { flex: 1; } .expert-name { font-size: 32rpx; font-weight: bold; color: #333; margin-bottom: 8rpx; } .expert-title { font-size: 26rpx; color: #666; font-weight: normal; } .expert-hospital { font-size: 26rpx; color: #3a7ff3; margin-bottom: 10rpx; } .expert-experience { font-size: 24rpx; color: #999; } .experience-label { } .expert-reason { background-color: white; border-radius: 10rpx; padding: 20rpx; margin-bottom: 15rpx; } .reason-title { font-size: 28rpx; font-weight: bold; color: #333; margin-bottom: 10rpx; } .reason-content { font-size: 26rpx; color: #666; line-height: 1.6; } .recommend-time { font-size: 24rpx; color: #999; text-align: right; } /* 店铺卡片 */ .store-card { background-color: #f8f9fa; border-radius: 15rpx; padding: 25rpx; margin-top: 20rpx; } .store-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; } .store-name { font-size: 32rpx; font-weight: bold; color: #333; flex: 1; } .store-info { margin-bottom: 20rpx; } .info-item { display: flex; align-items: flex-start; margin-bottom: 15rpx; font-size: 26rpx; color: #666; line-height: 1.5; } .info-icon { margin-right: 15rpx; flex-shrink: 0; font-size: 28rpx; } .info-text { flex: 1; }
/* 店铺图片 */ .store-images { margin-bottom: 20rpx; } .store-images-scroll { white-space: nowrap; height: 200rpx; } .store-image-item { display: inline-block; width: 300rpx; height: 200rpx; border-radius: 10rpx; overflow: hidden; margin-right: 20rpx; } .store-image { width: 100%; height: 100%; } /* 店铺操作按钮 */ .store-actions { display: flex; gap: 20rpx; } .action-btn { flex: 1; height: 80rpx; border-radius: 10rpx; font-size: 26rpx; display: flex; align-items: center; justify-content: center; } .map-btn { background-color: #3a7ff3; color: white; } .call-btn { background-color: #4CAF50; color: white; } .btn-icon { margin-right: 10rpx; font-size: 30rpx; } /* 药品详细信息网格 */ .details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20rpx; margin-top: 20rpx; } .detail-item { background-color: #f8f9fa; border-radius: 10rpx; padding: 20rpx; } .item-label { font-size: 26rpx; color: #999; margin-bottom: 10rpx; } .item-value { font-size: 26rpx; color: #333; line-height: 1.5; } /* 加载状态 */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; } .loading-spinner { width: 80rpx; height: 80rpx; border: 8rpx solid #f3f3f3; border-top: 8rpx solid #3a7ff3; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 30rpx; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 错误状态 */ .error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; padding: 0 50rpx; } .error-icon { font-size: 120rpx; color: #ff4444; margin-bottom: 30rpx; } .error-text { font-size: 32rpx; color: #666; margin-bottom: 40rpx; text-align: center; } .error-btn { width: 300rpx; height: 80rpx; line-height: 80rpx; background-color: #3a7ff3; color: white; border-radius: 12rpx; font-size: 30rpx; } /* 响应式调整 */ @media (max-width: 700rpx) { .details-grid { grid-template-columns: 1fr; } .bottom-action-bar { padding: 15rpx 20rpx; } .action-bar-btn { font-size: 26rpx; height: 80rpx; } }
|