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/vue.global.prod.3.5.17.js"></script>

    <style>
        /* --- 全局与主题样式 --- */
        :root {
            --primary-color: #2C578F; /* 普鲁士蓝,专业、信赖 */
            --accent-color: #C8A97E; /* 暗金色,品质、权威 */
            --bg-color: #F7F8FA; /* 非常浅的灰色背景 */
            --shell-bg: #FFFFFF;
            --text-color: #333333;
            --text-light-color: #999999;
            --border-color: #F0F2F5;
            --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: #e4e7ed; /* PC端背景 */
            font-family: var(--font-family);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        #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: 20px 20px 85px 20px;
        }
        
        /* --- 底部导航栏 --- */
        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background-color: var(--shell-bg);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: 10px;
        }

        .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: 26px;
            height: 26px;
            margin-bottom: 3px;
        }

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

        /* --- 通用组件 --- */
        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-color);
            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;
        }
        
        .card {
            background: var(--shell-bg);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(44, 87, 143, 0.08);
        }
        
        /* --- 首页 --- */
        .home-header { padding-top: 10px; }
        .search-bar {
            display: flex;
            align-items: center;
            background-color: var(--shell-bg);
            padding: 12px 15px;
            border-radius: 25px;
            border: 1px solid var(--border-color);
        }
        .search-bar input { border: none; background: none; outline: none; width: 100%; font-size: 14px; margin-left: 8px; }
        
        .quick-nav {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            text-align: center;
            margin-top: 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: #EAF0F7;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 8px;
            color: var(--primary-color);
        }
        .quick-nav-item span { font-size: 13px; }

        .lawyer-card-horizontal {
            display: flex;
            align-items: center;
            padding: 15px;
            cursor: pointer;
        }
        .lawyer-card-horizontal:not(:last-child) { border-bottom: 1px solid var(--border-color); }
        .lawyer-card-horizontal img { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; }
        .lawyer-card-horizontal .info { flex-grow: 1; }
        .lawyer-card-horizontal h4 { font-size: 16px; font-weight: 500; }
        .lawyer-card-horizontal p { font-size: 13px; color: var(--text-light-color); margin-top: 3px; }

        /* --- 找律师页 --- */
        .filter-tabs { display: flex; gap: 10px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 5px; -ms-overflow-style: none; scrollbar-width: none; }
        .filter-tabs::-webkit-scrollbar { display: none; }
        .filter-tab { padding: 8px 18px; border-radius: 20px; background-color: var(--shell-bg); border: 1px solid var(--border-color); color: var(--text-color); font-size: 14px; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
        .filter-tab.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        
        .lawyer-list-card {
            display: flex;
            align-items: flex-start;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
        }
        .lawyer-list-card img { width: 60px; height: 60px; border-radius: 8px; margin-right: 15px; }
        .lawyer-list-card .info { flex-grow: 1; }
        .lawyer-list-card h3 { font-size: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0