Authored by 李靖

miplist命名,底部动态时间

... ... @@ -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);
... ...
... ... @@ -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,
... ...
<div class="good-list-page search-page yoho-page">
{{> list}}
{{> chanpin}}
{{> mip-footer}}
</div>
... ...
... ... @@ -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
... ...
... ... @@ -115,7 +115,7 @@ module.exports = {
jsSdk: '//cdn.yoho.cn/js-sdk/1.2.10/jssdk.js',
redis: {
connect: {
host: '127.0.0.1',
host: '192.168.102.49',
port: '6379',
retry_strategy(options) {
if (options.error && options.error.code === 'ECONNREFUSED') {
... ...
... ... @@ -8,7 +8,7 @@
<div class="float-top "></div>
</p>
<address class="copyright">
CopyRight©2007-2017 南京新与力文化传播有限公司
CopyRight©2007-{{currentYear}} 南京新与力文化传播有限公司
</address>
</footer>
{{/pageFooter}}
... ...