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>拨号器</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
<!-- ECharts is not used in this app, can be removed -->
<style>
:root {
--bg-color: #121212;
--surface-color: #1e1e1e;
--primary-color: #03dac6;
--primary-variant-color: #3700b3;
--secondary-color: #bb86fc;
--call-color: #4caf50;
--end-call-color: #f44336;
--text-primary: #ffffff;
--text-secondary: #b3b3b3;
--border-color: #2c2c2c;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--border-radius: 16px;
}
body, html {
margin: 0;
padding: 0;
font-family: var(--font-family);
background-color: var(--bg-color);
color: var(--text-primary);
height: 100%;
overflow: hidden;
}
#app {
max-width: 450px;
margin: 0 auto;
background-color: var(--bg-color);
height: 100vh;
display: flex;
flex-direction: column;
box-shadow: 0 0 30px rgba(0,0,0,0.5);
position: relative;
}
/* --- Main Content --- */
.app-main {
flex-grow: 1;
overflow-y: auto;
padding: 20px;
padding-bottom: 80px; /* Space for bottom nav */
}
/* --- Bottom Navigation --- */
.bottom-nav {
position: absolute;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-around;
height: 65px;
background-color: var(--surface-color);
border-top: 1px solid var(--border-color);
}
.nav-button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
text-decoration: none;
color: var(--text-secondary);
cursor: pointer;
transition: color 0.2s, transform 0.2s;
}
.nav-button svg { margin-bottom: 4px; }
.nav-button.active {
color: var(--primary-color);
transform: translateY(-2px);
}
/* --- Dial Pad Page --- */
.dial-pad-container {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
}
.dial-display {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 20px;
}
.dialed-number {
font-size: 36px;
font-weight: 300;
letter-spacing: 2px;
word-wrap: break-word;
text-align: center;
min-height: 50px;
}
.keypad {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
padding: 0 30px;
}
.key {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 75px;
width: 75px;
margin: 0 auto;
background-color: var(--surface-color);
border-radius: 50%;
cursor: pointer;
transition: background-color 0.2s;
}
.key:active { background-color: #333; }
.key-number { font-size: 32px; font-weight: 400; }
.key-letters { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; }
.dial-actions {
display: flex;
justify-content: space-evenly;
align-items: center;
padding: 20px 0;
margin-top: 15px;
}
.call-btn {
display: flex;
align-items: center;
justify-content: center;
width: 70px;
height: 70px;
border-radius: 50%;
background-color: var(--call-color);
color: white;
cursor: pointer;
transition: transform 0.2s;
}
.call-btn:active { transform: scale(0.9); }
.backspace-btn {
cursor: pointer;
visibility: hidden;
width: 70px; text-align: center;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0