-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
103 lines (98 loc) · 4.86 KB
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dormitory_Management</title>
<link rel="icon" href="./favicon.ico" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="bookmark" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="public/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="style/home.css">
<link rel="stylesheet" href="./style/common.css">
<script src="public/js/jquery.js"></script>
<script src="public/bootstrap/js/bootstrap.js"></script>
<script src="public/js/mock.js"></script>
<script src="public/js/vue.js"></script>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="module" src="./controller/home.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<link rel="stylesheet" href="./style/cool.css">
<link rel="stylesheet" href="./style/bootstrap-extended.css">
<link rel="stylesheet" href="./style/style-cyan.css">
</head>
<body>
<div id="app" v-cloak>
<!-- 头部开始 -->
<header>
<!-- 左边 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">宿舍管理系统</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<ol class="breadcrumb">
<li class="nav-item active breadcrumb-item"><a href="#">{{viewName}}</a></li>
<li class="breadcrumb-item"></li>
</ol>
</ul>
<ul>
<span>{{name}} </span>
</ul>
<ul>
<span> {{welcome}} </span>
</ul>
<!-- 头像 -->
<ul class="navbar-nav navbar-nav-right">
<li class="nav-item" style="display: flex; align-items: center; column-gap: 5px;">
<span>樱花特效</span>
<sakura-switch />
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-expanded="false">
<img id="avatar" class="avatar p-1 navbar-img rounded-circle" :src="userinfo.avatarSrc"
alt="Hz1">
</a>
<!-- 点击头像弹出 -->
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">个人信息</a>
<a class="dropdown-item" href="#" @click="storeAvatar(userinfo.username)">修改头像</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" @click="Logout">注销</a>
</div>
</li>
</ul>
</div>
</nav>
</header>
<!-- 头部结束 -->
<!-- 中间开始 -->
<div class="home-box">
<div class="row" style="margin-right: 0;">
<!-- 左边开始 -->
<div class="col-md-2">
<div class="list-group">
<template v-for="item in menu">
<button :key="item.name" @click="viewName = item.name" type="button"
:class="[viewName == item.name && 'active', 'list-group-item list-group-item-action']">
{{ item.name }}
<i class="bi bi-chevron-right"></i>
</button>
</template>
</div>
</div>
<!-- 左边结束 -->
<!-- 其余内容开始 -->
<transition name="slide-fade">
<component :is="viewComponent" />
</transition>
</div>
</div>
</body>
</html>