Showing
1 changed file
with
11 additions
and
1 deletions
@@ -283,21 +283,31 @@ module.exports = class extends global.yoho.BaseModel { | @@ -283,21 +283,31 @@ module.exports = class extends global.yoho.BaseModel { | ||
283 | } | 283 | } |
284 | }); | 284 | }); |
285 | 285 | ||
286 | + let ht; | ||
287 | + | ||
286 | if (params.keywords) { | 288 | if (params.keywords) { |
287 | nav = [ | 289 | nav = [ |
288 | { | 290 | { |
289 | name: '搜索结果' | 291 | name: '搜索结果' |
290 | } | 292 | } |
291 | ]; | 293 | ]; |
294 | + | ||
295 | + ht = `${params.keywords}`; | ||
292 | } else { | 296 | } else { |
293 | nav = _this._getNav(params.id, menuData, params.url); | 297 | nav = _this._getNav(params.id, menuData, params.url); |
298 | + ht = _.last(nav).name; | ||
294 | } | 299 | } |
295 | 300 | ||
296 | return { | 301 | return { |
297 | nav: nav, | 302 | nav: nav, |
298 | data: { | 303 | data: { |
299 | menuData: menuData, | 304 | menuData: menuData, |
300 | - contData: contData | 305 | + contData: contData, |
306 | + seoData: { | ||
307 | + title: `有货${ht}-帮助中心-YOHO!BUY有货 100%正品保证`, | ||
308 | + keywords: `${ht},有货${ht},有货${ht}帮助中心`, | ||
309 | + description: `有货${ht}。YOHO!BUY有货帮助中心${ht}频道,提供有关${ht}相关问题解答。YOHO!BUY有货100%品牌正品保证,支持货到付款。` | ||
310 | + } | ||
301 | } | 311 | } |
302 | }; | 312 | }; |
303 | } | 313 | } |
-
Please register or login to post a comment