...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
const model = require('../models/global');
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
const list = (req, res, next) => {
|
|
|
let brand = req.query.brand;
|
...
|
...
|
@@ -84,6 +85,13 @@ const detail = (req, res, next) => { |
|
|
let appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.globalpurchase","params":${JSON.stringify(appParams)}}`;
|
|
|
|
|
|
res.render('global/detail', {
|
|
|
title: (_.get(result, 'brand_info.brand_name', '') ? '【' + result.brand_info.brand_name + '】' : '') +
|
|
|
_.get(result, 'product_name', '') + '|YOHO!BUY 有货',
|
|
|
keywords: _.get(result, 'brand_info.brand_name', '') + ',' + _.get(result, 'brand_info.brand_name', '') +
|
|
|
'价格,' + _.get(result, 'brand_info.brand_name', '') + '图片,',
|
|
|
description: _.get(result, 'product_name', '') + ' 有货网仅售' + _.get(result, 'sales_price', '') + '元,购买' +
|
|
|
_.get(result, 'brand_info.brand_name', '') + ',了解' + _.get(result, 'brand_info.brand_name', '') +
|
|
|
'商品信息就上有货网!',
|
|
|
module: 'product',
|
|
|
page: 'global-detail',
|
|
|
pageHeader: headerModel.setNav({
|
...
|
...
|
|