div+css布局实现完整的拍卖app页面原型图ui效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现完整的拍卖app页面原型图ui效果代码

代码标签: div css 布局 完整 拍卖 app 页面 原型图 ui

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>拍卖App界面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background-color: #f6f6f6;
            color: #333;
            padding: 20px;
        }
        
        .page-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }
        
        .app-page {
            width: 360px;
            min-height: 640px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            position: relative;
            margin-bottom: 30px;
        }
        
        .page-title {
            text-align: center;
            font-size: 16px;
            background-color: #f8f8f8;
            padding: 10px;
            margin-bottom: 20px;
            color: #666;
        }
        
        /* 导航栏样式 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background-color: #fff;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        .header-title {
            font-size: 18px;
            font-weight: bold;
            flex: 1;
            text-align: center;
        }
        
        .header-left, .header-right {
            width: 24px;
            height: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ddd;
            overflow: hidden;
        }
        
        /* 底部导航栏 */
        .tab-bar {
            display: flex;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
            background-color: #fff;
            border-top: 1px solid #f0f0f0;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #999;
        }
        
        .tab-item.active {
            color: #333;
        }
        
        .tab-icon {
            margin-bottom: 4px;
            font-size: 20px;
        }
        
        .tab-label {
            font-size: 12px;
        }
        
        /* 个人中心样式 */
        .user-header {
            padding: 20px 15px;
            display: flex;
            align-items: center;
            background-color: #fff;
        }
        
        .user-info {
            margin-left: 12px;
        }
        
        .user-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        
        .user-tools {
            background-color: #fff;
            padding: 15px;
        }
        
        .tools-title {
            font-size: 16px;
            margin-bottom: 15px;
        }
        
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .tool-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px 0;
        }
        
        .tool-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 8px;
            color: #fff;
        }
        
        .tool-label {
            font-size: 12px;
            color: #666;
        }
        
        /* 拍品列表样式 */
        .search-bar {
            margin: 10px 15px;
            position: relative;
        }
        
        .search-input {
            width: 100%;
            height: 40px;
            background-color: #f5f5f5;
            border: none;
            border-radius: 20px;
            padding: 0 40px 0 15px;
            font-size: 14px;
        }
        
        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        
        .tab-header {
            display: flex;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .tab-header-item {
            flex: 1;
            padding: 12px 0;
            text-align: center;
            font-size: 15px;
            color: #666;
        }
        
        .tab-header-item.active {
            color: #333;
            font-weight: bold;
            border-bottom: 2px solid #333;
        }
        
        .filter-bar {
            display: flex;
            padding: 10px 15px;
            font-size: 13px;
            color: #666;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .filter-item {
            display: flex;
            align-items: center;
            margin-right: 20px;
        }
        
        .auction-list {
            padding: 10px 15px;
        }
        
        .auction-item {
            display: flex;
            padding: 15px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .auction-image {
            width: 100px;
            height: 100px;
            background-color: #f5f5f5;
            margin-right: 12px;
            border-radius: 4px;
        }
        
        .auction-info {
            flex: 1;
        }
        
        .auction-title {
            font-size: 15px;
            margin-bottom: 8px;
            font-weight: normal;
        }
        
        .auction-price {
            color: #ff4d4f;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
        }
        
        .price-label {
            font-size: 12px;
            font-weight: normal;
        }
        
        .auction-meta {
            display: flex;
            justify-content: space-between;
            color: #999;
            font-size: 12px;
        }
        
        .auction-status {
            color: #ff4d4f;
            background-color: #fff1f0;
            padding: 2px 6px;
            border-radius: 2px;
            font-size: 12px;
        }
        
        /* 拍品详情样式 */
        .detail-image {
            width: 100%;
            height: 240px;
            background-color: #f5f5f5;
        }
        
        .detail-info {
            padding: 15px;
        }
        
        .detail-title {
            font-size: 18px;
            margin-bottom: 12px;
        }
        
        .detail-price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .detail-price {
            color: #ff4d4f;
            font-size: 20px;
            font-weight: bold;
        }
        
        .detail-section {
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 16px;
            margin-bottom: 10px;
            font-weight: bold;
        }
        
        .detail-meta {
            background-color: #f8f8f8;
            padding: 15px;
            border-radius: 8px;
        }
        
        .meta-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
        }
        
        .meta-value {
            color: #333;
        }
        
        .timer {
            display: flex;
            justify-content: center;
            margin: 15px 0;
        }
        
        .timer-box {
            background-color: #f73b3b;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            margin: 0 2px;
            font-weight: bold;
        }
        
        .timer-separator {
            padding: 0 2px;
            color: #f73b3b;
        }
        
        .detail-buttons {
            display: flex;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 10px 15px;
            background-color: #fff;
            border-top: 1px solid #f0f0f0;
        }
        
        .btn {
            flex: 1;
            height: 44px;
            border: none.........完整代码请登录后点击上方下载按钮下载查看

网友评论0