Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
2018-01-02 18:33:20 +0800
Commit
b84b34a6af28a653ceeca5ad2ce3adc1e5921718
2 parents
600a8b5c
4d77eaf8
Merge branch 'feature/mipOpt' into 'release/6.4'
Feature/mip opt See merge request
!1190
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
5 deletions
app.js
apps/mip/controllers/chanpin.js
apps/mip/css/list.css → apps/mip/css/chanpin.css
apps/mip/views/action/list.hbs → apps/mip/views/action/chanpin.hbs
apps/mip/views/partial/list.hbs → apps/mip/views/partial/chanpin.hbs
apps/mip/views/partial/mip-footer.hbs
doraemon/views/partial/footer.hbs
app.js
View file @
b84b34a
...
...
@@ -34,6 +34,7 @@ app.locals.devEnv = app.get('env') === 'development';
app
.
locals
.
isProduction
=
app
.
get
(
'env'
)
===
'production'
;
app
.
locals
.
version
=
pkg
.
version
;
app
.
locals
.
startTime
=
moment
().
format
(
'YYYYMMDDHH'
);
app
.
locals
.
currentYear
=
moment
().
format
(
'YYYY'
);
// 全局注册library
yohoLib
.
global
(
config
);
...
...
apps/mip/controllers/chanpin.js
View file @
b84b34a
...
...
@@ -26,8 +26,8 @@ exports.index = (req, res, next) => {
fuzzyWord
:
list
.
fuzzyWord
};
return
res
.
render
(
'list'
,
Object
.
assign
({
css
:
yield
css
(
'list.css'
),
return
res
.
render
(
'chanpin'
,
Object
.
assign
({
css
:
yield
css
(
'chanpin.css'
),
title
:
`
$
{
goodsList
.
name
}
价格
_
图片
_
品牌
_
怎么样
-
YOHO
!
BUY
有货`
,
mipUrl
:
`
https
:
//m.yohobuy.com${req.originalUrl}`,
mipFooter
:
true
,
...
...
apps/mip/css/
list
.css → apps/mip/css/
chanpin
.css
View file @
b84b34a
apps/mip/views/action/
list
.hbs → apps/mip/views/action/
chanpin
.hbs
View file @
b84b34a
<div
class=
"good-list-page search-page yoho-page"
>
{{>
list
}}
{{>
chanpin
}}
{{>
mip-footer
}}
</div>
...
...
apps/mip/views/partial/
list
.hbs → apps/mip/views/partial/
chanpin
.hbs
View file @
b84b34a
apps/mip/views/partial/mip-footer.hbs
View file @
b84b34a
...
...
@@ -9,6 +9,6 @@
</mip-fixed>
</div>
<p
class=
"copy-right"
>
CopyRight©2007-
2017
南京新与力文化传播有限公司
CopyRight©2007-
{{
currentYear
}}
南京新与力文化传播有限公司
</p>
</div>
\ No newline at end of file
...
...
doraemon/views/partial/footer.hbs
View file @
b84b34a
...
...
@@ -8,7 +8,7 @@
<div
class=
"float-top "
></div>
</p>
<address
class=
"copyright"
>
CopyRight©2007-
2017
南京新与力文化传播有限公司
CopyRight©2007-
{{
currentYear
}}
南京新与力文化传播有限公司
</address>
</footer>
{{/
pageFooter
}}
...
...
Please
register
or
login
to post a comment