div+css实现医疗预约挂号门诊app的ui交互设计代码
代码语言:html
所属分类:其他
代码描述:div+css实现医疗预约挂号门诊app的ui交互设计代码
代码标签: div css 医疗 预约 挂号 门诊 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>智慧医疗预约系统</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; } .container { max-width: 375px; margin: 0 auto; background: white; min-height: 100vh; position: relative; overflow: hidden; } .page { display: none; padding: 20px; min-height: 100vh; background: white; } .page.active { display: block; } .header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #eee; margin-bottom: 20px; } .back-btn { width: 24px; height: 24px; cursor: pointer; } .title { font-size: 18px; font-weight: 600; color: #333; } .btn { background: #007AFF; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; cursor: pointer; width: 100%; margin: 10px 0; transition: background 0.3s; } .btn:hover { background: #0056b3; } .btn-secondary { background: #f0f0f0; color: #333; } .btn-secondary:hover { background: #e0e0e0; } .card { background: white; border-radius: 12px; padding: 16px; margin: 10px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s; } .card:hover { transform: translateY(-2px); } .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 20px 0; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .input-group { margin: 15px 0; } .input-label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; } .select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; background: white; } .doctor-card { display: flex; align-items: center; padding: 15px; background: white; border-radius: 12px; margin: 10px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; } .doctor-avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; } .doctor-info h3 { font-size: 16px; margin-bottom: 5px; } .doctor-info p { color: #666; font-size: 14px; } .time-slot { padding: 10px 15px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.3s; } .time-slot:hover, .time-slot.selected { background: #007AFF; color: white; } .status-card { background: linear-gradient(135deg, #007AFF, #0056b3); color: white; border-radius: 12px; padding: 20px; text-align: center; margin: 20px 0; } .queue-number { font-size: 48px; font-weight: bold; margin: 10px 0; } .medicine-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; } .payment-summary { background: #f8f9fa; border-radius: 12px; padding: 20px; margin: 20px 0; } .summary-row { display: flex; justify-content: space-between; margin: 10px 0; } .total-amount { font-size: 18px; font-weight: bold; color: #007AFF; } .bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 375px; background: white; border-top: 1px solid #eee; display: flex; justify-content: space-around; padding: 10px 0; } .nav-item { text-align: center; cursor: pointer; padding: 5px; flex: 1; } .nav-icon { width: 24px; height: 24px; margin: 0 auto 5px; } .nav-text { font-size: 12px; color: #666; } .nav-item.active .nav-text { color: #007AFF; } .appointment-card { background: white; border-radius: 12px; padding: 16px; margin: 10px 0; border-left: 4px solid #007AFF; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .appointment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .appointment-status { background: #28a745; color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; } .waiting-info { text-align: center; padding: 20px; background: #f8f9fa; border-radius: 12px; margin: 20px 0; } .waiting-number { font-size: 36px; font-weight: bold; color: #007AFF; margin: 10px 0; } .fab { position: fixed; bottom: 80px; right: 20px; width: 60px; height: 60px; background: #007AFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); color: white; font-size: 24px; } </style> </head> <body> <div class="container"> <!-- 首页 --> <div class="page active" id="home"> <div class="header"> <div></div> <div class="title">智慧医疗</div> <div style="width: 24px;"></div> </div> <div style="text-align: center; margin: 30px 0;"> <img src="https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=200&h=120&fit=crop&crop=center" style="width: 100%; height: 120px; object-fit: cover; border-radius: 12px;" alt="医院"> </div> <div class="grid"> <div class="card" onclick="showPage('hospitals')"> <div style="text-align: center;"> <svg class="nav-icon" style="margin: 0 auto 10px;" viewBox="0 0 24 24" fill="#007AFF"> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-4v-4H8l4-4 4 4h-2v4z"/> </svg> <h3>预约挂号</h3> <p style="color: #666; font-size: 14px;">选择医院科室</p> </div> </div> <div class="card" onclick="showPage('appointments')"> <div style="text-align: center;"> <svg class="nav-icon" style="margin: 0 auto 10px;" viewBox="0 0 24 24" fill="#007AFF"> <path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/> </svg> <h3>我的预约</h3> <p style="color: #666; font-size: 14px;">查看预约记录</p> </div> </div> <div class="card" onclick="showPage('queue')"> <div style="text-align: center;"> <svg class="nav-icon" styl.........完整代码请登录后点击上方下载按钮下载查看
网友评论0