<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Whirling dropdown menu</title>
<!-- add styles -->
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<ul class="menu">
<li class="active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">快速链接 <span class="caret"></span></a>
<ul class="submenu">
<li><a routerLink="/home" routerLinkActive="active">首页</a></li>
<li><a [routerLink]="['/explore', { type: 'guess' }]" >实时推荐</a></li>
<li><a [routerLink]="['/explore', { type: 'wish' }]" >离线推荐</a></li>
<li><a [routerLink]="['/explore', { type: 'hot' }]" >热门推荐</a></li>
<li><a [routerLink]="['/explore', { type: 'rate' }]" >评分最多</a></li>
<li><a [routerLink]="['/explore', { type: 'new' }]" >最新电影</a></li>
</ul>
</li>
<li class="active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户空间 <span class="caret"></span></a>
<ul class="submenu">
<li><a [routerLink]="['/explore', { type: 'myrate' }]" >影片评分</a></li>
<li><a [routerLink]="['/chart']" >图表可视化</a></li>
</ul>
</li>
<li class="active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户空间 <span class="caret"></span></a>
<ul class="submenu">
<li><a [routerLink]="['/explore', { type: 'myrate' }]" >影片评分</a></li>
<li><a [routerLink]="['/chart']" >图表可视化</a></li>
</ul>
</li>
<li class="active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">影片类别 <span class="caret"></span></a>
<ul class="submenu">
<li><a [routerLink]="['/explore', { type: 'genres',category:'action' }]" >动作片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'adventure' }]" >冒险经历</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'animation' }]" >动画片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'comedy' }]" >喜剧</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'crime' }]" >犯罪</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'documentary' }]" >纪录片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'drama' }]" >喜剧文学</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'family' }]" >家庭片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'fantasy' }]" >魔幻</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'foreign' }]" >外国片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'history' }]" >历史片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'horror' }]" >恐怖片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'music' }]" >音乐片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'mystery' }]" >悬疑片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'romance' }]" >爱情片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'science fiction' }]" >科幻片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'tv movie' }]" >电视电影</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'thriller' }]" >惊悚片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'war' }]" >战争片</a></li>
<li><a [routerLink]="['/explore', { type: 'genres',category:'western' }]" >西部片</a></li>
</ul>
</li>
<form class="form">
<input type="text" placeholder="Search" style="width:400px" name="query" (keypress)="enterPress($event)" [(ngModel)]="query">
<button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-search" aria-hidden="true" (click)="search()">
</span>
</button></form>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user" aria-hidden="true"></span><span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" style="color: #d35113;font-weight: 700;">{{login.user.username}}</a></li>
<li role="separator" class="divider"></li>
<li><a routerLink="/login" routerLinkActive="active" (click)="logout()">退出登录</a></li>
</ul>
</li>
</ul>
</div>
</body>
</html>
评论11