vue3实现医疗美容整形整容app的ui原型图代码

代码语言:html

所属分类:布局界面

代码描述:vue3实现医疗美容整形整容app的ui原型图代码

代码标签: vue 医疗 美容 整形 整容 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, maximum-scale=1.0, user-scalable=no">
    <title>医美整形App</title>
    
    <!-- Vue 3 CDN -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>

    <style>
        /* --- 全局与主题样式 --- */
        :root {
            --primary-color: #D9AAB7; /* 柔和的粉色 */
            --primary-hover-color: #C990A0;
            --bg-color: #FDF9FA; /* 非常浅的粉色背景 */
            --shell-bg: #FFFFFF;
            --text-color: #333333;
            --text-light-color: #888888;
            --border-color: #f0f0f0;
            --gold-color: #C5A47E;
            --font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html, body {
            height: 100%;
            overflow: hidden;
            background-color: #e9e9e9; /* PC端背景 */
            font-family: var(--font-family);
        }

        #app {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        /* --- App外壳 & 布局 --- */
        .app-shell {
            width: 375px;
            height: 812px;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            background-color: var(--shell-bg);
            border-radius: 40px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            overflow: hidden;
            position: relative;
        }

        .page-container {
            flex-grow: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background-color: var(--bg-color);
            position: relative;
        }

        .page-view {
            padding: 15px 15px 75px 15px; /* 底部留出导航栏空间 */
        }

        /* --- 底部导航栏 --- */
        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 65px;
            background-color: var(--shell-bg);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: 10px; /* For iPhone notch */
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--text-light-color);
            font-size: 10px;
            flex-grow: 1;
            transition: color 0.2s;
        }

        .nav-item .icon {
            width: 24px;
            height: 24px;
            margin-bottom: 2px;
        }

        .nav-item.active {
            color: var(--primary-color);
        }

        /* --- 通用组件 --- */
        .search-bar {
            display: flex;
            align-items: center;
            background-color: #f5f5f5;
            padding: 8px 15px;
            border-radius: 20px;
            margin-bottom: 20px;
        }

        .search-bar .icon {
            color: var(--text-light-color);
            margin-right: 8px;
        }

        .search-bar input {
            border: none;
            background: none;
            outline: none;
            width: 100%;
            font-size: 14px;
        }

        .card {
            background: var(--shell-bg);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-title .more {
            font-size: 13px;
            font-weight: normal;
            color: var(--text-light-color);
            text-decoration: none;
        }

        /* --- 首页 --- */
        .banner {
            width: 100%;
            height: 150px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
        }

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

        .quick-nav {
            display: flex;
            justify-content: space-around;
            text-align: center;
            margin-bottom: 25px;
        }

        .quick-nav-item {
            text-decoration: none;
            color: var(--text-color);
        }

        .quick-nav-item .icon-wrapper {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #FEF3F5;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 8px;
            color: var(--primary-color);
        }

        .project-card {
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .project-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .project-card h4 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .project-card .price {
            font-size: 16px;
            font-weight: bold;
            color: var(--primary-color);
        }

        .price .original {
            font-size: 12px;
            color: var(--text-light-color);
            text-decoration: line-through;
            margin-left: 8px;
        }
        
        .doctor-card {
            display: flex;
            align-items: center;
        }

        .doctor-card img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin-right: 15px;
            object-fit: cover;
        }
        
        .doctor-info h4 { font-size: 16px; margin-bottom: 4px; }
        .doctor-info p { font-size: 13px; color: var(--text-light-color); }

        /* --- 项目列表页 --- */
        .filter-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            overflow-x: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .filter-tabs::-webkit-scrollbar { display: none; } /* Chrome, Safari */


        .filter-tab {
            padding: 8px 15px;
            border-radius: 20px;
            background-color: #f1f1f1;
            color: var(--text-light-color);
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .filter-tab.active {
            background-color: var(--primary-color);
            color: white;
            font-weight: 500;
        }
        
        .project-list-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* --- 详情页 --- */
        .page-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            padding: 15px;
            z-index: 10;
        }
        
        .back-button {
            background: rgba(0,0,0,0.3);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            color: white;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .detail-header-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
        }
        
        .detail-content {
            padding: 20px 15px;
            background: var(--shell-bg);
            transfo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0