74 lines
1.9 KiB
HTML
74 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>习题识别工具</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus/dist/index.css">
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
#app {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.el-row {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.el-col {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
#app {
|
|
width: 90%;
|
|
padding: 10px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<h2 style="text-align: center;">导航页面</h2>
|
|
<p style="text-align: center; color: #999;">请选择您要前往的页面</p>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<el-button type="primary" @click="navigateTo('/upload')">上传页面</el-button>
|
|
<el-button type="success" @click="navigateTo('/terminal')">接收终端</el-button>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue@3"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/element-plus"></script>
|
|
<script>
|
|
const {createApp} = Vue;
|
|
const {ElButton, ElRow, ElCol} = ElementPlus;
|
|
|
|
createApp({
|
|
methods: {
|
|
navigateTo(path) {
|
|
window.location.href = path;
|
|
}
|
|
}
|
|
}).use(ElementPlus).mount('#app');
|
|
</script>
|
|
</body>
|
|
</html>
|