/* 仓库管理页面样式 */ .warehouse-container { min-height: 100vh; background-color: #f8f9fa; } /* 顶部导航栏 */ .page-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20rpx 30rpx; color: white; } .header-content { display: flex; justify-content: space-between; align-items: center; } .header-left { display: flex; align-items: center; gap: 20rpx; } /* 微信风格返回按钮 */ .back-icon { width: 60rpx; height: 60rpx; border-radius: 50%; background: rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.3s ease; } .back-icon:active { background: rgba(0, 0, 0, 0.2); } .back-arrow { font-size: 36rpx; font-weight: bold; color: #333; line-height: 1; } .header-title { font-size: 36rpx; font-weight: 600; } .header-actions { display: flex; gap: 20rpx; } .refresh-btn { background: rgba(255, 255, 255, 0.2); color: white; border: none; padding: 12rpx 24rpx; border-radius: 20rpx; font-size: 24rpx; } /* 消息提示 */ .error-message, .success-message { display: flex; justify-content: space-between; align-items: center; padding: 20rpx 30rpx; margin: 20rpx 30rpx; border-radius: 12rpx; font-size: 28rpx; } .error-message { background-color: #fff2f0; border: 1rpx solid #ffccc7; color: #a8071a; } .success-message { background-color: #f6ffed; border: 1rpx solid #b7eb8f; color: #389e0d; } .close-btn { font-size: 36rpx; cursor: pointer; } /* 加载状态 */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; } .loading-spinner { width: 60rpx; height: 60rpx; border: 6rpx solid #f3f3f3; border-top: 6rpx solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20rpx; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { font-size: 28rpx; color: #666; } /* 页面标签 */ .tab-container { display: flex; background: white; border-bottom: 1rpx solid #e8e8e8; } .tab-item { flex: 1; text-align: center; padding: 24rpx 0; font-size: 28rpx; color: #666; border-bottom: 4rpx solid transparent; transition: all 0.3s; } .tab-item.active { color: #667eea; border-bottom-color: #667eea; font-weight: 600; } /* 列表页面样式 */ .list-page { padding: 30rpx; } /* 搜索框 */ .search-container { margin-bottom: 30rpx; } .search-input-wrapper { position: relative; background: white; border-radius: 12rpx; padding: 20rpx 60rpx 20rpx 30rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1); } .search-input { font-size: 28rpx; color: #333; } .search-icon { position: absolute; right: 30rpx; top: 50%; transform: translateY(-50%); font-size: 28rpx; color: #999; } /* 仓库列表 */ .warehouse-list { max-height: calc(100vh - 400rpx); } .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; color: #999; } .empty-icon { font-size: 80rpx; margin-bottom: 20rpx; } .empty-text { font-size: 28rpx; } .warehouse-item { background: white; border-radius: 12rpx; padding: 30rpx; margin-bottom: 20rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1); } .warehouse-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20rpx; } .warehouse-info { flex: 1; } .warehouse-name { font-size: 32rpx; font-weight: 600; color: #333; margin-bottom: 10rpx; display: block; } .warehouse-status { display: flex; gap: 10rpx; } .status-badge { padding: 6rpx 16rpx; border-radius: 20rpx; font-size: 22rpx; font-weight: 500; } .status-badge.open { background-color: #f6ffed; color: #52c41a; border: 1rpx solid #b7eb8f; } .status-badge.closed { background-color: #fff2f0; color: #ff4d4f; border: 1rpx solid #ffccc7; } .status-badge.maintenance { background-color: #fff7e6; color: #fa8c16; border: 1rpx solid #ffd591; } .warehouse-actions { display: flex; gap: 10rpx; } .delete-btn { background: #ff4757; color: white; border: none; padding: 12rpx 20rpx; border-radius: 8rpx; font-size: 24rpx; } /* 仓库详情 */ .warehouse-details { border-top: 1rpx solid #f0f0f0; padding-top: 20rpx; } .detail-row { display: flex; margin-bottom: 12rpx; font-size: 26rpx; } .detail-label { color: #666; min-width: 120rpx; } .detail-value { color: #333; flex: 1; } .inventory-status { font-weight: 600; } .description { line-height: 1.5; } /* 添加页面样式 */ .add-page { padding: 30rpx; } .form-container { max-height: calc(100vh - 300rpx); } .form-section { background: white; border-radius: 12rpx; padding: 30rpx; margin-bottom: 20rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1); } .section-title { font-size: 28rpx; font-weight: 600; color: #333; margin-bottom: 20rpx; display: block; } .form-group { margin-bottom: 24rpx; } .form-group:last-child { margin-bottom: 0; } .form-label { display: block; font-size: 26rpx; color: #333; margin-bottom: 12rpx; font-weight: 500; } .form-input, .form-textarea { width: 100%; border: 1rpx solid #e8e8e8; border-radius: 8rpx; padding: 20rpx; font-size: 26rpx; background: #fafafa; box-sizing: border-box; } .form-input:focus, .form-textarea:focus { border-color: #667eea; background: white; } .form-textarea { min-height: 120rpx; resize: none; } .textarea-counter { display: block; text-align: right; font-size: 22rpx; color: #999; margin-top: 8rpx; } .form-actions { display: flex; gap: 20rpx; margin-top: 40rpx; } .submit-btn { flex: 2; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 24rpx; border-radius: 12rpx; font-size: 28rpx; font-weight: 600; } .reset-btn { flex: 1; background: #f0f0f0; color: #666; border: none; padding: 24rpx; border-radius: 12rpx; font-size: 28rpx; } /* 响应式设计 */ @media (max-width: 750rpx) { .warehouse-header { flex-direction: column; align-items: flex-start; } .warehouse-actions { margin-top: 20rpx; width: 100%; justify-content: flex-end; } .form-actions { flex-direction: column; } .submit-btn, .reset-btn { flex: none; } }