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 - UI原型图</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.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;
            overflow: hidden;
            cursor: grab;
            position: relative;
        }

        #canvas-container.grabbing {
            cursor: grabbing;
        }

        #canvas {
            transform-origin: 0 0;
            padding: 50px;
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            transition: transform 0.1s ease-out;
        }

        .screen-wrapper {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            padding: 20px;
            display: inline-block;
        }

        .screen-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }

        .screen {
            width: 375px;
            height: 667px;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
        }

        .screen::-webkit-scrollbar {
            width: 4px;
        }

        .screen::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 2px;
        }

        /* 通用样式 */
        .status-bar {
            height: 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            font-size: 11px;
            color: white;
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
        }

        .btn-secondary {
            background: white;
            color: #667eea;
            border: 2px solid #667eea;
            padding: 12px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }

        .input-field {
            width: 100%;
            padding: 14px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 11px;
            cursor: pointer;
        }

        .nav-item.active {
            color: #667eea;
        }

        .nav-item i {
            font-size: 22px;
            margin-bottom: 4px;
        }

        /* 启动页 */
        .splash-screen {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        .splash-logo {
            font-size: 80px;
            color: white;
            margin-bottom: 20px;
        }

        .splash-title {
            font-size: 32px;
            font-weight: 700;
            color: white;
            margin-bottom: 10px;
        }

        .splash-subtitle {
            font-size: 16px;
            color: rgba(255,255,255,0.9);
        }

        /* 登录注册页 */
        .auth-container {
            padding: 40px 30px;
        }

        .auth-logo {
            text-align: center;
            margin-bottom: 40px;
        }

        .auth-logo i {
            font-size: 70px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .auth-title {
            font-size: 28px;
            font-weight: 700;
            margin-top: 20px;
            margin-bottom: 10px;
            text-align: center;
        }

        .auth-subtitle {
            text-align: center;
            color: #999;
            margin-bottom: 40px;
        }

        .social-login {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .social-btn {
            flex: 1;
            padding: 14px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-size: 20px;
        }

        .divider {
            text-align: center;
            margin: 30px 0;
            color: #999;
            position: relative;
        }

        .divider::before,
        .divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 40%;
            height: 1px;
            background: #e0e0e0;
        }

        .divider::before {
            left: 0;
        }

        .divider::after {
            right: 0;
        }

        /* 首页 */
        .home-banner {
            position: relative;
            height: 200px;
            overflow: hidden;
        }

        .home-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-bar {
            position: absolute;
            top: 50%;
            left: 20px;
            right: 20px;
            transform: translateY(-50%);
            background: white;
            border-radius: 25px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .search-bar i {
            color: #999;
            margin-right: 10px;
        }

        .search-bar input {
            border: none;
            outline: none;
            flex: 1;
            font-size: 14px;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 25px 20px;
            background: white;
            margin-top: -30px;
            border-radius: 20px 20px 0 0;
            position: relative;
        }

        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }

        .category-icon {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 8px;
            color: white;
        }

        .category-name {
            font-size: 13px;
            color: #333;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            padding: 20px 20px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-more {
            font-size: 13px;
            color: #999;
        }

        .card-horizontal {
            background: white;
            margin: 10px 20px;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .card-horizontal img {
            width: 120px;
            height: 120px;
            object-fit: cover;
        }

        .card-content {
            flex: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .card-desc {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-price {
            font-size: 18px;
            color: #ff6b6b;
            font-weight: 700;
        }

        .card-price span {
            font-size: 12px;
        }

        .card-rating {
            font-size: 12px;
            color: #ffa502;
        }

        .card-vertical {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .card-vertical img {
            width: 100%;
            height: 180px;
            object-fit: cover;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0