...
|
...
|
@@ -2,9 +2,6 @@ |
|
|
const model = require('../models/feature');
|
|
|
|
|
|
exports.index = function(req, res, next) {
|
|
|
// 唤起 APP 的路径
|
|
|
res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.h5","params":{"param":{"share_id":"${req.query.share_id}"},"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"${req.query.share_id}"},"url":"https://activity.yoho.cn/feature/${req.params.code}.html"}}`;
|
|
|
|
|
|
model.index({
|
|
|
code: req.params.code,
|
|
|
type: req.query.type
|
...
|
...
|
@@ -12,10 +9,15 @@ exports.index = function(req, res, next) { |
|
|
if (!result) {
|
|
|
return next();
|
|
|
}
|
|
|
let title = req.query.title || result.name || '专题活动';
|
|
|
|
|
|
// 唤起 APP 的路径
|
|
|
res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.h5","params":{"param":{"share_id":"${req.query.share_id}","title":"${title}"},"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"${req.query.share_id}"},"title":"${title}","url":"https://activity.yoho.cn/feature/${req.params.code}.html"}}`;
|
|
|
|
|
|
res.render('feature/index', {
|
|
|
module: 'activity',
|
|
|
page: 'feature',
|
|
|
title: result.name || 'Yoho!Buy有货',
|
|
|
title: title,
|
|
|
content: result,
|
|
|
activity_id: req.params.code,
|
|
|
isFeature: true,
|
...
|
...
|
|