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;
        }
        
        #viewport {
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            cursor: grab;
            position: relative;
        }
        
        #viewport.grabbing {
            cursor: grabbing;
        }
        
        #canvas {
            transform-origin: 0 0;
            transition: transform 0.1s ease-out;
            padding: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fit, 375px);
            gap: 30px;
            
        }
        
        .screen-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            overflow: hidden;
            width: 375px;
        }
        
        .screen-title {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 20px;
            font-weight: 600;
            font-size: 14px;
            text-align: center;
        }
        
        .screen-content {
            background: #f8f9fa;
            min-height: 667px;
            max-height: 667px;
            overflow-y: auto;
            position: relative;
        }
        
        .screen-content::-webkit-scrollbar {
            width: 4px;
        }
        
        .screen-content::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 2px;
        }
        
        /* 通用组件样式 */
        .status-bar {
            height: 44px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            font-size: 12px;
            color: #333;
        }
        
        .search-bar {
            padding: 10px 15px;
            background: white;
        }
        
        .search-input {
            background: #f5f5f5;
            border: none;
            border-radius: 20px;
            padding: 10px 15px 10px 40px;
            width: 100%;
            font-size: 14px;
            position: relative;
        }
        
        .search-wrapper {
            position: relative;
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        
        .banner {
            height: 160px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 10px 15px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
        
        .category-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            padding: 15px;
            background: white;
            margin: 10px 15px;
            border-radius: 12px;
        }
        
        .category-item {
            text-align: center;
        }
        
        .category-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: white;
            font-size: 24px;
        }
        
        .category-name {
            font-size: 12px;
            color: #333;
        }
        
        .card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin: 10px 15px;
        }
        
        .card-image {
            width: 100%;
            height: 180px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }
        
        .card-content {
            padding: 12px;
        }
        
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
        }
        
        .rating {
            color: #ff6b6b;
            font-size: 14px;
        }
        
        .price {
            color: #ff6b6b;
            font-size: 18px;
            font-weight: 700;
        }
        
        .price-old {
            color: #999;
            font-size: 12px;
            text-decoration: line-through;
            margin-left: 5px;
        }
        
        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
        }
        
        .btn-small {
            padding: 6px 12px;
            font-size: 12px;
            width: auto;
        }
        
        .bottom-nav {
            position: sticky;
            bottom: 0;
            background: white;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            border-top: 1px solid #eee;
            padding: 8px 0;
        }
        
        .nav-item {
            text-align: center;
            color: #999;
            font-size: 12px;
        }
        
        .nav-item.active {
            color: #667eea;
        }
        
        .nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
        }
        
        .section-title {
            padding: 15px;
            font-size: 16px;
            font-weight: 600;
            color: #333;
            background: white;
        }
        
        .list-item {
            background: white;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .list-item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            flex-shrink: 0;
        }
        
        .list-item-content {
            flex: 1;
        }
        
        .list-item-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
        }
        
        .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: 12px;
            color: #666;
            font-size: 14px;
            border-bottom: 2px solid transparent;
            cursor: pointer;
        }
        
        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
            font-weight: 600;
        }
        
        .form-group {
            padding: 15px;
            background: white;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .form-label {
            font-size: 14px;
            color: #333;
            margin-bottom: 8px;
            display: block;
        }
        
        .form-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
        }
        
        .badge {
            display: inline-block;
            padding: 4px 8px;
            background: #667eea;
            color: white;
            border-radius: 4px;
            font-size: 11px;
            margin-left: 6px;
        }
        
        .badge-success {
            background: #51cf66;
        }
        
        .badge-warning {
            background: #ffd93d;
            color: #333;
        }
        
        .badge-danger {
            background: #ff6b6b;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            padding: 15px;
            background: white;
            margin: 10px 15px;
            border-radius: 12px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 12px;
            color: #999;
        }
        
        .action-bar {
            position: sticky;
            bottom: 0;
            background: white;
            padding: 15px;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }
        
        .qrcode {
            width: 200px;
            height: 200px;
            background: white;
            border: 2px solid #ddd;
            border-radius: 12px;
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #999;
        }
        
        .header {
            background: white;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #eee;
        }
        
        .header-back {
            font-size: 20px;
            color: #333;
        }
        
        .header-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            flex: 1;
        }
        
        .image-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 15px;
            background: white;
        }
        
        .gallery-item {
            aspect-ratio: 1;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
        }
        
        .comment-item {
            background: white;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        
        .comment-user {
            flex: 1;
        }
        
        .comment-name {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }
        
        .comment-date {
            font-size: 12px;
            color: #999;
        }
        
        .comment-content {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        
        .wallet-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 15px;
            padding: 25px;
            border-radius: 16px;
            color: white;
        }
        
        .wallet-balance-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        
        .wallet-balance {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        .wallet-actions {
            display: flex;
            gap: 10px;
        }
        
        .wallet-btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .order-card {
            background: white;
            margin: 10px 15px;
            padding: 15px;
            border-radius: 12px;
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .order-id {
            font-size: 12px;
            color: #999;
        }
        
        .order-status {
            font-size: 12px;
            font-weight: 600;
            color: #667eea;
        }
        
        .order-product {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .order-image {
            width: 70px;
            height: 70px;
            border-radius: 8px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            flex-shrink: 0;
        }
        
        .order-info {
            flex: 1;
        }
        
        .order-name {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
        }
        
        .order-price {
            font-size: 16px;
            font-weight: 700;
            color: #ff6b6b;
        }
        
        .order-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }
        
        .profile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px 15px;
            color: white;
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .profile-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            border: 3px solid rgba(255,255,255,0.5);
        }
        
        .profile-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        
        .profile-id {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .menu-group {
            background: white;
            margin: 10px 15px;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .menu-item {
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .menu-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }
        
        .menu-label {
            font-size: 14px;
            color: #333;
        }
        
        .menu-arrow {
            color: #ccc;
        }
        
        .detail-header {
            position: relative;
        }
        
        .detail-banner {
            height: 250px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }
        
        .detail-back {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: rgba(0,0,0,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }
        
        .detail-favorite {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background: rgba(0,0,0,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }
        
        .detail-info {
            background: white;
            padding: 20px;
            border-radius: 16px 16px 0 0;
            margin-top: -20px;
            position: relative;
        }
        
        .detail-title {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            margin-bottom: 10px;
        }
        
        .detail-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .detail-price-box {
            background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 15px;
        }
        
        .detail-price-label {
            font-size: 12px;
            color: #999;
            margin-bottom: 6px;
        }
        
        .detail-price {
            font-size: 28px;
            font-weight: 700;
            color: #ff6b6b;
        }
        
        .detail-section {
            background: white;
            padding: 20px;
            margin-top: 10px;
        }
        
        .detail-section-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .info-row {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f8f8f8;
        }
        
        .info-label {
            width: 80px;
            font-size: 14px;
            color: #999;
        }
        
        .info-value {
            flex: 1;
            font-size: 14px;
            color: #333;
        }
        
        .scan-area {
            padding: 40px 20px;
            text-align: center;
        }
        
        .scan-frame {
            width: 250px;
            height: 250px;
            border: 2px dashed #667eea;
            border-radius: 12px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #667eea;
            font-size: 60px;
        }
        
        .scan-tips {
            font-size: 14px;
            color: #999;
            margin-bottom: 20px;
        }
        
        .data-chart {
            background: white;
            margin: 10px 15px;
            padding: 20px;
            border-radius: 12px;
        }
        
        .chart-placeholder {
            height: 200px;
            background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0) 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-size: 12px;
        }
        
        .upload-area {
            background: #f8f9fa;
            border: 2px dashed #ddd;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            margin: 10px 0;
        }
        
        .upload-icon {
            font-size: 48px;
            color: #ccc;
            margin-bottom: 10px;
        }
        
        .upload-text {
            font-size: 14px;
            color: #999;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 15px;
            background: white;
        }
        
        .tag {
            padding: 6px 12px;
            background: #f0f2f5;
            border-radius: 16px;
            font-size: 12px;
            color: #666;
        }
        
        .tag.active {
            background: #667eea;
            color: white;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        
        .empty-icon {
            font-size: 64px;
            color: #ddd;
            margin-bottom: 15px;
        }
        
        .empty-text {
            font-size: 14px;
            color: #999;
        }
        
        .timeline {
            padding: 20px;
            background: white;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 30px;
            padding-bottom: 20px;
        }
        
        .timeline-item:before {
            content: '';
            position: absolute;
            left: 7px;
            top: 8px;
            bottom: -12px;
            width: 2px;
            background: #e0e0e0;
        }
        
        .timeline-item:last-child:before {
            display: none;
        }
        
        .timeline-dot {
            position: absolute;
            left: 0;
            top: 0;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #667eea;
            border: 3px solid white;
            box-shadow: 0 0 0 2px #667eea;
        }
        
        .timeline-content {
            font-size: 14px;
            color: #333;
            margin-bottom: 4px;
        }
        
        .timeline-time {
            font-size: 12px;
            color: #999;
        }
        
        .controls {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0