Authored by 郭成尧

'code-beauty'

... ... @@ -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',
... ...
... ... @@ -190,10 +190,7 @@ const shop = {
shopPage: true,
_noLazy: true,
appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
shopId +
'","shop_name":"' +
baseShop.shopName +
'"}}'
shopId + '","shop_name":"' + baseShop.shopName + '"}}'
});
});
} else {
... ... @@ -225,10 +222,7 @@ const shop = {
shopId: shopId,
shopPage: true,
appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
shopId +
'","shop_name":"' +
result.seoTitle +
'"}}'
shopId + '","shop_name":"' + result.seoTitle + '"}}'
});
});
... ...