vue3实现pc端开发商楼盘销售报备管理系统后台代码
代码语言:html
所属分类:布局界面
代码描述:vue3实现pc端开发商楼盘销售报备管理系统后台代码
代码标签: vue pc 开发商 楼盘 销售 报备 管理 系统 后台 代码
下面为部分代码预览,完整代码请点击下载或在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>楼盘报备管理系统</title> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.5.5.0.js"></script> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #334155; } .login-container { min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; } .login-form { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); width: 100%; max-width: 400px; } .main-layout { display: flex; min-height: 100vh; } .sidebar { width: 260px; background: #1e293b; color: white; padding: 1rem 0; overflow-y: auto; } .logo { padding: 1rem 1.5rem; font-size: 1.25rem; font-weight: bold; border-bottom: 1px solid #334155; margin-bottom: 1rem; } .nav-item { display: flex; align-items: center; padding: 0.75rem 1.5rem; cursor: pointer; transition: background 0.2s; text-decoration: none; color: #cbd5e1; } .nav-item:hover, .nav-item.active { background: #334155; color: white; } .nav-item svg { width: 20px; height: 20px; margin-right: 0.75rem; } .main-content { flex: 1; display: flex; flex-direction: column; } .header { background: white; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: between; align-items: center; } .content { flex: 1; padding: 1.5rem; overflow-y: auto; } .page-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 1.5rem; color: #1e293b; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .stat-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .stat-value { font-size: 2rem; font-weight: bold; color: #1e293b; } .stat-label { color: #64748b; margin-top: 0.5rem; } .card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); overflow: hidden; } .card-header { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; } .card-title { font-size: 1.125rem; font-weight: 600; } .card-content { padding: 1.5rem; } .btn { padding: 0.5rem 1rem; border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; } .btn-primary { background: #3b82f6; color: white; } .btn-primary:hover { background: #2563eb; } .btn-secondary { background: #e2e8f0; color: #475569; } .btn-secondary:hover { background: #cbd5e1; } .btn-danger { background: #ef4444; color: white; } .btn-danger:hover { background: #dc2626; } .form-group { margin-bottom: 1rem; } .form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; } .form-input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; } .form-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .table { width: 100%; border-collapse: collapse; } .table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; } .table th { background: #f8fafc; font-weight: 600; color: #374151; } .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: white; border-radius: 8px; width: 100%; max-width: 500px; margin: 1rem; max-height: 90vh; overflow-y: auto; } .modal-header { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; } .modal-body { padding: 1.5rem; } .modal-footer { padding: 1.5rem; border-top: 1px solid #e2e8f0; display: flex; gap: 1rem; justify-content: flex-end; } .grid { display: grid; gap: 1rem; } .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .property-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; } .property-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .property-image { width: 100%; height: 200px; object-fit: cover; } .property-content { padding: 1rem; } .property-title { font-weight: 600; margin-bottom: 0.5rem; } .property-price { color: #ef4444; font-weight: bold; font-size: 1.125rem; } @media (max-width: 768px) { .main-layout { flex-direction: column; } .sidebar { width: 100%; height: auto; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .grid-cols-2 { grid-template-columns: 1fr; } } </style> </head> <body> <div id="app"> <!-- 登录页面 --> <div v-if="currentPage === 'login'" class="login-container"> <div class="login-form"> <div style="text-align: center; margin-bottom: 2rem;"> <h1 style="color: #1e293b; margin-bottom: 0.5rem;">楼盘报备管理系统</h1> <p style="color: #64748b;">请登录您的账户</p> </div> <form @submit.prevent="login"> <div class="form-group"> <label class="form-label">用户名</label> <input type="text" class="form-input" v-model="loginForm.username" placeholder="请输入用户名" required> </div> <div class="form-group"> <label class="form-label">密码</label> <input type="password" class="form-input" v-model="loginForm.password" placeholder="请输入密码" required> </div> <button type="submit" class="btn btn-primary" style="width: 100%; margin-top: 1rem;"> 登录系统 </button> </form> </div> </div> <!-- 主界面 --> <div v-else class="main-layout"> <!-- 侧边栏 --> <div class="sidebar"> <div class="logo"> <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" style="margin-right: 0.5rem;"> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> </svg> 楼盘管理系统 </div> <nav> <a href="#" @click="navigateTo('dashboard')" class="nav-item" :class="{active: currentPage === 'dashboard'}"> <svg viewBox="0 0 24 24" fill="currentColor"> <path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/> </svg> 项目概览 </a> <a href="#" @click="navigateTo('properties')" class="nav-item" :class="{active: currentPage === 'properties' || currentPage === 'property-detail' || currentPage === 'property-form'}"> <svg viewBox="0 0 24 24" fill="currentColor"> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> </svg> 楼盘管理 </a> <a href="#" @.........完整代码请登录后点击上方下载按钮下载查看
网友评论0