...
|
...
|
@@ -11,14 +11,14 @@ const _ = require('lodash'); |
|
|
const singleDay = (req, res) => {
|
|
|
let title = req.query.title;
|
|
|
|
|
|
let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.h5",' +
|
|
|
(req.query.share_id ? '"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"' +
|
|
|
req.query.share_id +
|
|
|
'"},' : '') +
|
|
|
'"params":{"url":"http://m.yohobuy.com' +
|
|
|
req.path +
|
|
|
'","param":' + JSON.stringify(req.query) +
|
|
|
'}}';
|
|
|
delete req.query.openapp;
|
|
|
|
|
|
let shareParams = req.query.share_id ? '"share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"' +
|
|
|
req.query.share_id + '"},' : '';
|
|
|
let appPathUrl = _.split(req.originalUrl, '?')[0] || '';
|
|
|
let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.h5",' + shareParams +
|
|
|
'"params":{"url":"http://m.yohobuy.com' + appPathUrl +
|
|
|
'","param":' + JSON.stringify(req.query) + '}}';
|
|
|
|
|
|
res.render('single-day/single-day', {
|
|
|
module: 'activity',
|
...
|
...
|
|