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;
border-radius: 22px;
font-size: 16px;
font-weight: bold;
margin: 0 6px;
}
.btn-primary {
background-color: #f73b3b;
color: white;
}
.btn-secondary {
background-color: #fff1f0;
color: #f73b3b;
}
/* 订单页面样式 */
.order-info {
padding: 15px;
background-color: #fff;
margin-bottom: 10px;
}
.order-item {
display: flex;
padding: 10px 0;
border-bottom: 1px solid #f5f5f5;
}
.order-status {
padding: 10px 15px;
background-color: #f73b3b;
color: white;
}
/* 竞拍页面 */
.bid-history {
flex: 1;
overflow-y: auto;
padding: 15px;
}
.bid-item {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #f5f5f5;
}
.bid-user {
display: flex;
align-items: center;
}
.small-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #ddd;
margin-right: 8px;
}
.bid-price {
color: #f73b3b;
font-weight: bold;
}
.bid-input-area {
padding: 15px;
border-top: 1px solid #f0f0f0;
display: flex;
align-items: center;
}
.bid-input {
flex: 1;
height: 40px;
border: 1px solid #ddd;
border-radius: 20px;
padding: 0 15px;
margin-right: 10px;
}
.bid-button {
background-color: #f73b3b;
color: white;
border: none;
height: 40px;
padding: 0 20px;
border-radius: 20px;
font-weight: bold;
}
/* 不同工具图标的颜色 */
.tool-icon.purple { background-color: #8a7fff; }
.tool-icon.orange { background-color: #ffad6f; }
.tool-icon.pink { background-color: #ff7f9e; }
.tool-icon.blue { background-color: #6fdbff; }
.tool-icon.light-blue { background-color: #6fb4ff; }
.tool-icon.yellow { background-color: #ffe16f; }
.tool-icon.green { background-color: #6fffad; }
</style>
</head>
<body>
<div class="page-container">
<!-- 首页 -->
<div class="app-page">
<div class="page-title">首页</div>
<div class="header">
<div class="header-left">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M3 12h18M3 6h18M3 18h18" stroke="currentColor" stroke-width="2"/>
</svg>
</div>
<div class="header-title">拍卖首页</div>
<div class="header-right">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M15 15l6 6m-6-6a7 7 0 110-14 7 7 0 010 14z" stroke="currentColor" stroke-width="2"/>
</svg>
</div>
</div>
<div style="padding: 15px;">
<div style="background-color: #f8f8f8; border-radius: 10px; padding: 15px; margin-bottom: 20px;">
<div style="font-size: 18px; font-weight: bold; margin-bottom: 10px;">专场拍卖</div>
<div style="display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px;">
<div style="min-width: 120px; height: 150px; background-color: #eee; border-radius: 8px; padding: 10px; position: relative;">
<div style="position: absolute; bottom: 10px; left: 10px; right: 10px;">
<div style="font-size: 14px; margin-bottom: 4px;">古玩专场</div>
<div style="font-size: 12px; color: #999;">2天后结束</div>
</div>
</div>
<div style="min-width: 120px; height: 150px; background-color: #eee; border-radius: 8px; padding: 10px; position: relative;">
<div style="position: absolute; bottom: 10px; left: 10px; right: 10px;">
<div style="font-size: 14px; margin-bottom: 4px;">文玩专场</div>
<div style="font-size: 12px; color: #999;">5天后结束</div>
</div>
</div>
<div style="min-width: 120px; height: 150px; background-color: #eee; border-radius: 8px; padding: 10px; position: relative;">
<div style="position: absolute; bottom: 10px; left: 10px; right: 10px;">
<div style="font-size: 14px; margin-bottom: 4px;">艺术品专场</div>
<div style="font-size: 12px; color: #999;">即将开始</div>
</div>
</div>
</div>
</div>
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0