8000 bug fix · daysCounting/imooc@0ee548d · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ee548d

Browse files
committed
bug fix
1 parent 5075eaf commit 0ee548d

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ app.get('/',function(req,res){
4545
})
4646

4747
app.get('/movie/:id',function(req,res){
48-
res.render('detail',{
48+
res.render('/movie/:id',{
4949
title:'imooc 详情页',
5050
movie:{
5151
doctor:'何塞',
@@ -54,14 +54,14 @@ app.get('/movie/:id',function(req,res){
5454
year:2014,
5555
poster:'http://r3.ykimg.com/05160000530EEB63675839160D0B79D5',
5656
language:'英语',
57-
flash:'',
57+
flash:'http://player.youku.com/player.php/sid/XNjM3Njc3MTY4/v.swf',
5858
summary:'哈哈哈'
5959
}
6060
})
6161
})
6262

6363
app.get('/admin/movie',function(req,res){
64-
res.render('detail',{
64+
res.render('/admin/movie',{
6565
title:'imooc 后台录入页面',
6666
movie:{
6767
doctor:'',
@@ -77,7 +77,7 @@ app.get('/admin/movie',function(req,res){
7777
})
7878

7979
app.get('/admin/list',function(req,res){
80-
res.render('detail',{
80+
res.render('/admin/list',{
8181
title:'imooc 列表页',
8282
movies:[{
8383
title:'机械战警',
@@ -87,7 +87,7 @@ app.get('/admin/list',function(req,res){
8787
country:'美国',
8888
year:'2014',
8989
language:'英语',
90-
flash:'',
90+
flash:'http://player.youku.com/player.php/sid/XNjM3Njc3MTY4/v.swf',
9191
summary:'你好啊'
9292
}]
9393
})

views/pages/detail.jade

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ extends ../layout
33
block content
44
.container
55
.row
6-
each item in movies
7-
.col-md-7
8-
embed(src="#{movie.flash}",allowFullScreen="true",quality="high",width="720",height="600",align="middle",type="application/x-shockwave-flash")
9-
.col-md-5
10-
dl.dl-horizontal
11-
dt 电影名字
12-
dd= movie.title
13-
dt 导演
14-
dd= movie.doctor
15-
dt 国家
16-
dd= movie.country
17-
dt 语言
18-
dd= movie.language
19-
dt 上映年份
20-
dd= movie.year
21-
dt 简介
22-
dd= movie.summary
6+
.col-md-7
7+
embed(src="#{movie.flash}",allowFullScreen="true",quality="high",width="720",height="600",align="middle",type="application/x-shockwave-flash")
8+
.col-md-5
9+
dl.dl-horizontal
10+
dt 电影名字
11+
6C00 dd= movie.title
12+
dt 导演
13+
dd= movie.doctor
14+
dt 国家
15+
dd= movie.country
16+
dt 语言
17+
dd= movie.language
18+
dt 上映年份
19+
dd= movie.year
20+
dt 简介
21+
dd= movie.summary

0 commit comments

Comments
 (0)
0