diff --git a/supply.html b/supply.html index d585945..1b519f5 100644 --- a/supply.html +++ b/supply.html @@ -27,13 +27,14 @@ .title-bar { background-color: #1677ff; color: white; - padding: 15px; + padding: 15px 20px; position: sticky; top: 0; z-index: 100; display: flex; flex-direction: column; - gap: 10px; + gap: 12px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .title-bar-top { @@ -44,8 +45,8 @@ .title-bar h1 { margin: 0; - font-size: 18px; - font-weight: 500; + font-size: 20px; + font-weight: 600; } .title-bar-bottom { @@ -53,7 +54,7 @@ justify-content: space-between; align-items: center; flex-wrap: nowrap; - gap: 10px; + gap: 12px; } .title-bar-left { @@ -104,7 +105,7 @@ /* 搜索框样式优化 */ .search-container { - padding: 15px; + padding: 20px; background-color: white; border-bottom: 1px solid #f0f0f0; } @@ -119,13 +120,21 @@ background-color: #07c160; color: white; border: none; - padding: 14px 40px; - border-radius: 25px; + padding: 16px 48px; + border-radius: 28px; font-size: 16px; + font-weight: 500; cursor: pointer; - transition: background-color 0.3s; + transition: all 0.3s; width: 100%; max-width: 300px; + box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3); + } + + .create-supply-btn button:hover { + background-color: #08d16a; + transform: translateY(-2px); + box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4); } /* 货源列表样式优化 */ @@ -181,11 +190,44 @@ padding: 15px; flex-direction: column; gap: 15px; + margin: 8px 0; + } + + .supply-name { + font-size: 16px; + gap: 8px; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + scrollbar-width: none; + } + + .supply-name::-webkit-scrollbar { + display: none; } - .supply-images { + .image-slider { + width: 100% !important; + height: 250px !important; + } + + .image-slider img { width: 100%; - height: 150px; + height: 100%; + object-fit: cover; + } + + .supply-details { + padding: 12px; + gap: 8px; + } + + .supply-actions { + gap: 10px; + } + + .supply-actions button { + padding: 6px 14px; + font-size: 12px; } } @@ -211,17 +253,18 @@ .search-box { position: relative; background-color: #f5f5f5; - border-radius: 20px; - padding: 0 15px; + border-radius: 25px; + padding: 0 20px; + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); } .search-input { width: 100%; - height: 40px; + height: 44px; border: none; background: transparent; font-size: 14px; - padding-right: 30px; + padding-right: 35px; } .search-input:focus { @@ -235,6 +278,15 @@ transform: translateY(-50%); color: #999; cursor: pointer; + font-size: 16px; + padding: 4px; + border-radius: 50%; + transition: all 0.3s; + } + + .clear-icon:hover { + background-color: rgba(0, 0, 0, 0.05); + color: #666; } .section-header { @@ -287,10 +339,16 @@ gap: 20px; align-items: flex-start; transition: all 0.3s; + background-color: white; + border-radius: 8px; + margin: 10px 0; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .supply-item:hover { background-color: #fafafa; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + transform: translateY(-2px); } .supply-item:last-child { @@ -299,20 +357,27 @@ /* 图片区域 */ .supply-images { - width: 120px; - height: 120px; + width: 250px; + height: 250px; position: relative; background-color: #f5f5f5; border-radius: 8px; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + border: 1px solid #e0e0e0; + display: flex; + align-items: center; + justify-content: center; } .image-slider { width: 100%; height: 100%; position: relative; + display: flex; + align-items: center; + justify-content: center; } .image-slider img { @@ -320,6 +385,7 @@ height: 100%; object-fit: cover; transition: transform 0.3s; + display: block; } .supply-images:hover .image-slider img { @@ -346,12 +412,20 @@ } .supply-name { - font-size: 16px; + font-size: 18px; font-weight: 600; display: flex; align-items: center; - gap: 10px; + gap: 12px; color: #333; + margin-bottom: 4px; + flex-wrap: nowrap; + white-space: nowrap; + } + + .supply-name > * { + flex-shrink: 0; + white-space: nowrap; } .supply-status { @@ -360,6 +434,17 @@ border-radius: 12px; color: white; font-weight: 500; + flex-shrink: 0; + } + + .countdown-badge { + flex-shrink: 0; + white-space: nowrap; + } + + .copy-supply-btn { + flex-shrink: 0; + white-space: nowrap; } .status-published { @@ -396,9 +481,13 @@ } .supply-details { - display: grid; - grid-template-columns: repeat(2, 1fr); + display: flex; + flex-direction: column; gap: 10px; + background-color: #fafafa; + padding: 16px; + border-radius: 8px; + border: 1px solid #f0f0f0; } .detail-item { @@ -406,27 +495,42 @@ color: #666; display: flex; align-items: center; - gap: 6px; + gap: 8px; + flex-wrap: nowrap; + white-space: normal; + overflow: visible; + text-overflow: clip; } .detail-item::before { - content: "•"; - color: #1677ff; - font-size: 16px; + content: ""; + width: 6px; + height: 6px; + border-radius: 50%; + background-color: #1677ff; + margin-top: 2px; } .supply-actions { display: flex; - gap: 10px; + gap: 12px; + margin-top: 8px; } .supply-actions button { - padding: 6px 15px; + padding: 8px 18px; border: none; - border-radius: 4px; - font-size: 12px; + border-radius: 6px; + font-size: 13px; + font-weight: 500; cursor: pointer; transition: all 0.3s; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + } + + .supply-actions button:hover { + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .btn-primary { @@ -449,18 +553,19 @@ color: white; } - /* 模态框 - 改为全屏样式 */ + /* 模态框 - 改为正常弹窗样式 */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; - background-color: white; + background-color: rgba(0, 0, 0, 0.5); display: none; - flex-direction: column; + justify-content: center; + align-items: center; z-index: 1000; - overflow: hidden; + overflow: auto; } .modal.active { @@ -469,13 +574,12 @@ .modal-content { background-color: white; - width: 100%; - height: 100%; - max-width: none; - max-height: none; - border-radius: 0; + width: 90%; + max-width: 800px; + max-height: 90vh; + border-radius: 12px; overflow: hidden; - box-shadow: none; + box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; } @@ -487,12 +591,13 @@ justify-content: space-between; align-items: center; background-color: white; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .modal-title { margin: 0; font-size: 18px; - font-weight: 500; + font-weight: 600; color: #333; } @@ -503,25 +608,120 @@ cursor: pointer; color: #999; transition: color 0.3s; + padding: 4px; + border-radius: 4px; } .close-btn:hover { color: #333; + background: #f0f0f0; } .modal-body { padding: 20px; overflow-y: auto; - max-height: none; flex: 1; } + .modal-footer { + padding: 16px 20px; + border-top: 1px solid #f0f0f0; + display: flex; + justify-content: flex-end; + gap: 10px; + background-color: white; + box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); + } + /* 修复select下拉框向上显示问题 */ select.form-select { position: relative; z-index: 1; } + /* 手机端响应式样式 */ + @media (max-width: 768px) { + .modal-content { + width: 95%; + max-height: 95vh; + } + + .modal-header { + padding: 16px; + } + + .modal-title { + font-size: 16px; + } + + .modal-body { + padding: 16px; + } + + .modal-footer { + padding: 12px 16px; + } + + /* 详情弹窗内容响应式调整 */ + #supplyDetailContent { + font-size: 14px; + } + + #supplyDetailContent > div { + gap: 16px !important; + } + + #supplyDetailContent > div > div { + padding: 16px !important; + } + + #supplyDetailContent .spec-quantity-box { + font-size: 12px !important; + padding: 8px !important; + } + + /* 详情弹窗媒体文件响应式调整 */ + #supplyDetailContent div[style*="display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding: 10px 0;"] { + gap: 8px !important; + margin-bottom: 16px !important; + padding: 8px 0 !important; + } + + #supplyDetailContent div[style*="flex-shrink: 0; width: 100px; height: 100px;"] { + width: 80px !important; + height: 80px !important; + } + + /* 详情弹窗基本信息网格响应式调整 */ + #supplyDetailContent div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px;"] { + grid-template-columns: 1fr !important; + gap: 12px !important; + } + + /* 详情弹窗基本信息卡片响应式调整 */ + #supplyDetailContent div[style*="padding: 15px; border: 1px solid #f0f0f0; border-radius: 8px; background-color: #fafafa;"] { + padding: 12px !important; + } + + /* 详情弹窗基本信息标题响应式调整 */ + #supplyDetailContent div[style*="font-weight: 600; margin-bottom: 8px; color: #333;"] { + font-size: 14px !important; + margin-bottom: 6px !important; + } + + /* 详情弹窗基本信息内容响应式调整 */ + #supplyDetailContent div[style*="margin-bottom: 5px;"] { + font-size: 13px !important; + margin-bottom: 4px !important; + } + + /* 详情弹窗规格信息响应式调整 */ + #supplyDetailContent div[style*="margin-bottom: 12px; color: #333;"] { + font-size: 14px !important; + margin-bottom: 8px !important; + } + } + /* 表单样式 */ .form-group { margin-bottom: 20px; @@ -1189,7 +1389,7 @@ } .image-slider { - height: 150px; + height: 200px; } /* 调整手机端规格-件数-价格对的布局 */ @@ -2241,6 +2441,24 @@ + +