Authored by yyq

search seo

@@ -42,11 +42,14 @@ const index = (req, res, next) => { @@ -42,11 +42,14 @@ const index = (req, res, next) => {
42 return res.render('search/no-result', resData); 42 return res.render('search/no-result', resData);
43 } 43 }
44 44
45 - Object.assign(resData, {  
46 - title: `${queryKey}价格_图片_品牌_怎么样-YOHO!BUY有货`,  
47 - keywords: `${queryKey},${queryKey}价格,${queryKey}图片,${queryKey}怎么样,${queryKey}品牌,YOHO!BUY有货`,  
48 - description: `YOHO!BUY有货网yohobuy.com是国内专业的${queryKey}网上潮流购物商城,为您找到${_.get(resData, 'search.totalCount', 0)}${queryKey}、产品的详细参数,实时报价,价格行情,图片、评价、品牌等信息。买${queryKey},就上YOHO!BUY有货` // eslint-disable-line  
49 - }); 45 + if (queryKey) {
  46 + Object.assign(resData, {
  47 + title: `${queryKey}价格_图片_品牌_怎么样-YOHO!BUY有货`,
  48 + keywords: `${queryKey},${queryKey}价格,${queryKey}图片,${queryKey}怎么样,${queryKey}品牌,YOHO!BUY有货`,
  49 + description: `YOHO!BUY有货网yohobuy.com是国内专业的${queryKey}网上潮流购物商城,为您找到${_.get(resData, 'search.totalCount', 0)}${queryKey}、产品的详细参数,实时报价,价格行情,图片、评价、品牌等信息。买${queryKey},就上YOHO!BUY有货` // eslint-disable-line
  50 + });
  51 + }
  52 +
50 res.render('search/index', resData); 53 res.render('search/index', resData);
51 54
52 }); 55 });