Authored by 毕凯

折扣详情页面唤起 APP

@@ -181,6 +181,9 @@ let discountDetail = (req, res, next) => { @@ -181,6 +181,9 @@ let discountDetail = (req, res, next) => {
181 saleModel.getDiscountDetailData(id, req.yoho.channel).then((result) => { 181 saleModel.getDiscountDetailData(id, req.yoho.channel).then((result) => {
182 params.renderData.pageHeader.navTitle = result.title; 182 params.renderData.pageHeader.navTitle = result.title;
183 183
  184 + // 唤起 APP 的路径
  185 + 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}"}}`;
  186 +
184 res.render('sale/discount-detail', Object.assign(params.renderData, result, { 187 res.render('sale/discount-detail', Object.assign(params.renderData, result, {
185 localCss: true 188 localCss: true
186 })); 189 }));