div+css布实现手机简洁O2O旅游餐饮住宿App端ui原型图代码

代码语言:html

所属分类:布局界面

代码描述:div+css布实现手机简洁O2O旅游餐饮住宿App端ui原型图代码

代码标签: div css 手机 O2O 旅游 餐饮 住宿 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>O2O旅游餐饮住宿类App原型图</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            overflow: hidden;
            background: #f0f2f5;
        }
        
        #canvas-container {
            width: 100vw;
            height: 100vh;
            cursor: grab;
            overflow: hidden;
        }
        
        #canvas-container.grabbing {
            cursor: grabbing;
        }
        
        #canvas {
            transform-origin: 0 0;
            padding: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fill, 375px);
            gap: 30px;
          
        }
        
        .screen-wrapper {
            width: 375px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .screen-title {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 16px;
            font-weight: 600;
            font-size: 14px;
            text-align: center;
        }
        
        .screen-content {
            height: 667px;
            overflow-y: auto;
            background: #f8f9fa;
        }
        
        .screen-content::-webkit-scrollbar {
            width: 4px;
        }
        
        .screen-content::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 2px;
        }
        
        /* 通用组件 */
        .top-bar {
            background: white;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .search-bar {
            background: #f5f5f5;
            border-radius: 20px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        
        .search-bar i {
            color: #999;
        }
        
        .search-bar input {
            border: none;
            background: none;
            outline: none;
            flex: 1;
            font-size: 14px;
        }
        
        .banner {
            position: relative;
            height: 160px;
            overflow: hidden;
        }
        
        .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .banner-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
        }
        
        .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
        }
        
        .dot.active {
            background: white;
            width: 16px;
            border-radius: 3px;
        }
        
        .category-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            padding: 20px 16px;
            background: white;
        }
        
        .category-item {
            text-align: center;
        }
        
        .category-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: white;
            font-size: 24px;
        }
        
        .category-item span {
            font-size: 12px;
            color: #333;
        }
        
        .card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin: 12px 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .card-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .card-content {
            padding: 12px;
        }
        
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .rating {
            color: #ff9500;
            font-size: 14px;
        }
        
        .price {
            color: #ff3b30;
            font-size: 18px;
            font-weight: 700;
        }
        
        .price-old {
            color: #999;
            font-size: 12px;
            text-decoration: line-through;
            margin-left: 4px;
        }
        
        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            width: 100%;
            font-weight: 600;
        }
        
        .btn-outline {
            background: white;
            color: #667eea;
            border: 1px solid #667eea;
        }
        
        .bottom-nav {
            position: sticky;
            bottom: 0;
            background: white;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            border-top: 1px solid #eee;
        }
        
        .nav-item {
            text-align: center;
            flex: 1;
            padding: 4px 0;
            color: #999;
        }
        
        .nav-item.active {
            color: #667eea;
        }
        
        .nav-item i {
            font-size: 20px;
            display: block;
            margin-bottom: 4px;
        }
        
        .nav-item span {
            font-size: 11px;
        }
        
        .section-title {
            padding: 16px;
            font-size: 18px;
            font-weight: 600;
            color: #333;
            background: white;
            margin-top: 8px;
        }
        
        .list-item {
            background: white;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .list-item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .list-item-content {
            flex: 1;
        }
        
        .list-item-title {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }
        
        .list-item-desc {
            font-size: 12px;
            color: #999;
            margin-bottom: 6px;
        }
        
        .tabs {
            display: flex;
            background: white;
            border-bottom: 1px solid #eee;
        }
        
        .tab {
            flex: 1;
            text-align: center;
            padding: 14px 0;
            color: #666;
            font-size: 14px;
            position: relative;
        }
        
        .tab.active {
            color: #667eea;
            font-weight: 600;
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: #667eea;
            border-radius: 2px;
        }
        
        .order-card {
            background: white;
            margin: 12px 16px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .order-header {
            padding: 12px 16px;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .order-number {
            font-size: 12px;
            color: #999;
        }
        
        .order-status {
            color: #ff9500;
            font-size: 13px;
            font-weight: 600;
        }
        
        .order-body {
            padding: 12px 16px;
        }
        
        .order-footer {
            padding: 12px 16px;
            border-top: 1px solid #f5f5f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .order-total {
            font-size: 14px;
        }
        
        .order-total .amount {
            color: #ff3b30;
            font-size: 18px;
            font-weight: 700;
        }
        
        .order-actions {
            display: flex;
            gap: 8px;
        }
        
        .btn-small {
            padding: 6px 16px;
            font-size: 13px;
            border-radius: 15px;
        }
        
        .wallet-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px 16px;
            color: white;
        }
        
        .wallet-balance {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .balance-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        
        .balance-amount {
            font-size: 40px;
            font-weight: 700;
        }
        
        .wallet-actions {
            display: flex;
            gap: 12px;
        }
        
        .wallet-btn {
            flex: 1;
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 10px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            background: white;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .transaction-info {
            flex: 1;
        }
        
        .transaction-title {
            font-size: 15px;
            color: #333;
            margin-bottom: 4px;
        }
        
        .transaction-time {
            font-size: 12px;
            color: #999;
        }
        
        .transaction-amount {
            font-size: 16px;
            font-weight: 600;
        }
        
        .transaction-amount.income {
            color: #34c759;
        }
        
        .transaction-amount.expense {
            color: #ff3b30;
        }
        
        .profile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px 16px;
            color: white;
            text-align: center;
        }
        
        .avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.3);
            margin: 0 auto 12px;
        }
        
        .username {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        
        .user-level {
            font-size: 12px;
            opacity: 0.9;
            background: rgba(255,255,255,0.2);
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
        }
        
        .menu-group {
            background: white;
            margin-top: 12px;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
          .........完整代码请登录后点击上方下载按钮下载查看

网友评论0