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">
<title>模拟滴滴出行</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
<style>
:root {
--primary-color: #FF7D41; /* 滴滴橙 */
--background-color: #F5F5F5;
--card-background: #FFFFFF;
--text-color: #333333;
--text-light: #888888;
--border-color: #EAEAEA;
--shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
--border-radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
body { background-color: var(--background-color); color: var(--text-color); }
#app { max-width: 450px; margin: 0 auto; background-color: var(--card-background); min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.page-container { flex-grow: 1; display: flex; flex-direction: column; }
.map-background {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-image: url('//repo.bfw.wiki/bfwrepo/image/6847668a785b6.png');
background-size: cover;
background-position: center;
filter: grayscale(30%);
z-index: 1;
}
.panel {
position: absolute;
bottom: 0; left: 0; right: 0;
background: var(--card-background);
border-top-left-radius: 20px;
border-top-right-radius: 20px;
box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
padding: 20px;
z-index: 10;
animation: slideUp 0.5s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* 底部导航 */
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 65px; background: var(--card-background); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border-color); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-light); cursor: pointer; font-size: 12px; }
.nav-item svg { width: 24px; height: 24px; margin-bottom: 4px; }
.nav-item.active { color: var(--text-color); }
.form-group { margin-b.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0