div+css布局实现手机端粉色美发理发店app小程序h5网站ui全套交互原型图代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现手机端粉色美发理发店app小程序h5网站ui全套交互原型图代码,包含服务选择,时间预约、理发师介绍、会员卡、积分、会员权益、客服中心、系统设置等页面。

代码标签: div css 布局 手机 粉色 美发 理发店 app 小程序 h5 网站 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, maximum-scale=1.0, user-scalable=no">
    <title>时尚理发店预约系统</title>
    <!-- 引入Bootstrap Icons -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.8.1.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f8f9fa;
            color: #333;
            overflow-x: hidden;
        }

        /* 页面容器 */
        .page {
            display: none;
            min-height: 100vh;
            padding-bottom: 70px;
        }

        .page.active {
            display: block;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from { 
                opacity: 0; 
                transform: translateX(20px); 
            }
            to { 
                opacity: 1; 
                transform: translateX(0); 
            }
        }

        /* 启动页 */
        .splash-page {
            height: 100vh;
            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            
            
            position: relative;
            overflow: hidden;
        }

        .splash-page::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            top: -100px;
            right: -100px;
        }

        .splash-page::after {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            bottom: -50px;
            left: -50px;
        }

        .splash-logo {
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .splash-logo svg {
            width: 120px;
            height: 120px;
            margin-bottom: 30px;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
        }

        .splash-logo h1 {
            color: white;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: 2px;
        }

        .splash-logo p {
            color: rgba(255,255,255,0.9);
            font-size: 16px;
            margin-bottom: 60px;
        }

        .splash-btn {
            background: white;
            color: #FF6B6B;
            padding: 16px 60px;
            border-radius: 50px;
            border: none;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s;
        }

        .splash-btn:active {
            transform: scale(0.95);
        }

        /* 头部 */
        .header {
            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
            color: white;
            padding: 16px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

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

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

        .icon-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .icon-btn:active {
            background: rgba(255,255,255,0.3);
            transform: scale(0.9);
        }

        /* 首页轮播 */
        .banner {
            position: relative;
            height: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            overflow: hidden;
        }

        .banner-content {
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            color: white;
            z-index: 2;
        }

        .banner-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .banner-subtitle {
            font-size: 16px;
            opacity: 0.95;
        }

        .banner-decoration {
            position: absolute;
            right: -30px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.3;
        }

        /* 快捷功能 */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 24px 20px;
            background: white;
            margin: 16px  16px 16px;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .quick-action {
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .quick-action:active {
            transform: scale(0.9);
        }

        .quick-action-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 8px;
            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px; /* 图标尺寸统一 */
        }

        .quick-action:nth-child(2) .quick-action-icon {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .quick-action:nth-child(3) .quick-action-icon {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        .quick-action:nth-child(4) .quick-action-icon {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        .quick-action-text {
            font-size: 13px;
            color: #666;
        }

        /* 服务卡片 */
        .section {
            padding: 20px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

        .section-more {
            font-size: 14px;
            color: #999;
            cursor: pointer;
        }

        .service-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .service-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: transform 0.2s;
            height: 100%; /* 修复卡片高度不一致 */
            display: flex;
            flex-direction: column;
        }

        .service-card:active {
            transform: scale(0.98);
        }

        .service-image {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 48px;
        }

        .service-card:nth-child(2) .service-image {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .service-card:nth-child(3) .service-image {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .service-card:nth-child(4) .service-image {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        .service-info {
            padding: 12px;
            flex: 1; /* 让信息区域自适应高度 */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .service-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .service-price {
            color: #FF6B6B;
            font-size: 18px;
            font-weight: 700;
        }

        .service-price small {
            font-size: 12px;
            color: #999;
            text-decoration: line-through;
            margin-left: 4px;
        }

        /* 发型师卡片 */
        .stylist-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: none;
        }

        .stylist-scroll::-webkit-scrollbar {
            display: none;
        }

        .stylist-card {
            min-width: 140px;
            background: white;
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: transform 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stylist-card:active {
            transform: scale(0.95);
        }

        .stylist-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
            font-weight: 600;
            border: 4px solid #fff;
            box-shadow: 0 4px 12px rgba(255,107,107,0.3);
        }

        .stylist-card:nth-child(2) .stylist-avatar {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            box-shadow: 0 4px 12px rgba(79,172,254,0.3);
        }

        .stylist-card:nth-child(3) .stylist-avatar {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            box-shadow: 0 4px 12px rgba(67,233,123,0.3);
        }

        .stylist-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .stylist-level {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }

        .stylist-rating {
            disp.........完整代码请登录后点击上方下载按钮下载查看

网友评论0