...
|
...
|
@@ -181,6 +181,9 @@ let discountDetail = (req, res, next) => { |
|
|
saleModel.getDiscountDetailData(id, req.yoho.channel).then((result) => {
|
|
|
params.renderData.pageHeader.navTitle = result.title;
|
|
|
|
|
|
// 唤起 APP 的路径
|
|
|
res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.discountmarketpro","params":{"id":"${id}","cover_url":"${result.activity.cover_url.split('?')[0]}","title":"${result.title}"}}`;
|
|
|
|
|
|
res.render('sale/discount-detail', Object.assign(params.renderData, result, {
|
|
|
localCss: true
|
|
|
}));
|
...
|
...
|
|