Authored by 李靖

miplist命名,底部动态时间

@@ -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,
1 <div class="good-list-page search-page yoho-page"> 1 <div class="good-list-page search-page yoho-page">
2 - {{> list}} 2 + {{> chanpin}}
3 {{> mip-footer}} 3 {{> mip-footer}}
4 </div> 4 </div>
@@ -9,6 +9,6 @@ @@ -9,6 +9,6 @@
9 </mip-fixed> 9 </mip-fixed>
10 </div> 10 </div>
11 <p class="copy-right"> 11 <p class="copy-right">
12 - CopyRight©2007-2017 南京新与力文化传播有限公司 12 + CopyRight©2007-{{currentYear}} 南京新与力文化传播有限公司
13 </p> 13 </p>
14 </div> 14 </div>
@@ -115,7 +115,7 @@ module.exports = { @@ -115,7 +115,7 @@ module.exports = {
115 jsSdk: '//cdn.yoho.cn/js-sdk/1.2.10/jssdk.js', 115 jsSdk: '//cdn.yoho.cn/js-sdk/1.2.10/jssdk.js',
116 redis: { 116 redis: {
117 connect: { 117 connect: {
118 - host: '127.0.0.1', 118 + host: '192.168.102.49',
119 port: '6379', 119 port: '6379',
120 retry_strategy(options) { 120 retry_strategy(options) {
121 if (options.error && options.error.code === 'ECONNREFUSED') { 121 if (options.error && options.error.code === 'ECONNREFUSED') {
@@ -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}}