Merge branch 'feature/mipOpt' into 'release/6.4'
Feature/mip opt See merge request !1190
Showing
7 changed files
with
6 additions
and
5 deletions
@@ -34,6 +34,7 @@ app.locals.devEnv = app.get('env') === 'development'; | @@ -34,6 +34,7 @@ app.locals.devEnv = app.get('env') === 'development'; | ||
34 | app.locals.isProduction = app.get('env') === 'production'; | 34 | app.locals.isProduction = app.get('env') === 'production'; |
35 | app.locals.version = pkg.version; | 35 | app.locals.version = pkg.version; |
36 | app.locals.startTime = moment().format('YYYYMMDDHH'); | 36 | app.locals.startTime = moment().format('YYYYMMDDHH'); |
37 | +app.locals.currentYear = moment().format('YYYY'); | ||
37 | 38 | ||
38 | // 全局注册library | 39 | // 全局注册library |
39 | yohoLib.global(config); | 40 | yohoLib.global(config); |
@@ -26,8 +26,8 @@ exports.index = (req, res, next) => { | @@ -26,8 +26,8 @@ exports.index = (req, res, next) => { | ||
26 | fuzzyWord: list.fuzzyWord | 26 | fuzzyWord: list.fuzzyWord |
27 | }; | 27 | }; |
28 | 28 | ||
29 | - return res.render('list', Object.assign({ | ||
30 | - css: yield css('list.css'), | 29 | + return res.render('chanpin', Object.assign({ |
30 | + css: yield css('chanpin.css'), | ||
31 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, | 31 | title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, |
32 | mipUrl: `https://m.yohobuy.com${req.originalUrl}`, | 32 | mipUrl: `https://m.yohobuy.com${req.originalUrl}`, |
33 | mipFooter: true, | 33 | mipFooter: true, |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <div class="float-top "></div> | 8 | <div class="float-top "></div> |
9 | </p> | 9 | </p> |
10 | <address class="copyright"> | 10 | <address class="copyright"> |
11 | - CopyRight©2007-2017 南京新与力文化传播有限公司 | 11 | + CopyRight©2007-{{currentYear}} 南京新与力文化传播有限公司 |
12 | </address> | 12 | </address> |
13 | </footer> | 13 | </footer> |
14 | {{/pageFooter}} | 14 | {{/pageFooter}} |
-
Please register or login to post a comment