Authored by yyq

nofollow

... ... @@ -9,6 +9,7 @@
const uuid = require('uuid');
const _ = require('lodash');
const config = global.yoho.config;
const helpers = global.yoho.helpers;
const _getGender = (channel) => {
switch (channel) {
... ... @@ -92,6 +93,10 @@ module.exports = () => {
return udid;
}());
if (!req.xhr) {
yoho.mobileRefer = helpers.urlFormat(req.url, null, 'm');
}
Object.assign(res.locals, yoho);
Object.assign(req.yoho, yoho);
next();
... ...
... ... @@ -127,7 +127,7 @@
</div>
<div class="left">
<span class="iconfont rgbf">&#xe602;</span>
<a href="{{#if @root.pc.clientService.new}}http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409{{else}}//www.yohobuy.com/service/client{{/if}}" target="_blank">
<a href="{{#if @root.pc.clientService.new}}http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409{{else}}//www.yohobuy.com/service/client{{/if}}" target="_blank" rel="nofollow">
<span class="red">便捷</span>
<span class="rgbf">在线客服</span>
</a>
... ... @@ -282,7 +282,7 @@
<p>
<a href="//www.yohobuy.com" rel="nofollow">返回首页</a>
<span>|</span>
<a href="//www.yohobuy.com/yohobuy.html">YOHO!BUY 有货</a>
<a href="//www.yohobuy.com/yohobuy.html" rel="nofollow">YOHO!BUY 有货</a>
<span>|</span>
<a href="//www.yohobuy.com/newpower.html" rel="nofollow">新力传媒</a>
<span>|</span>
... ... @@ -308,7 +308,7 @@
<span>|</span>
<a href="//www.yohobuy.com/guang/boys-t22">潮流视频</a>
<span>|</span>
<a class="police" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32010502010132">苏公网安备 32010502010132号</a>
<a class="police" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32010502010132" rel="nofollow">苏公网安备 32010502010132号</a>
</p>
</div>
<div class="copyright">
... ...
... ... @@ -17,7 +17,7 @@
</div>-->
<div class="left swindle-info">
<span class="icon-note"></span>
<a href="//www.yohobuy.com/help/detail?id=103&contId=147"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}} target="_blank">
<a href="//www.yohobuy.com/help/detail?id=103&contId=147" rel="nofollow" target="_blank">
关于防诈骗的重要提醒
</a>
</div>
... ... @@ -60,10 +60,10 @@
<a href="#">客户服务</a>
<ul class="nav-drop-down">
<li>
<a href="{{#if @root.pc.clientService.new}}http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409{{else}}//www.yohobuy.com/service/client{{/if}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}} target="_blank">在线客服</a>
<a href="{{#if @root.pc.clientService.new}}http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409{{else}}//www.yohobuy.com/service/client{{/if}}" rel="nofollow" target="_blank">在线客服</a>
</li>
<li>
<a href="//www.yohobuy.com/help"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>帮助中心</a>
<a href="//www.yohobuy.com/help" rel="nofollow">帮助中心</a>
</li>
</ul>
</li>
... ... @@ -80,7 +80,7 @@
<li class="phoneapp download-code" id="phoneApp">
<span class="tag-seprate"></span>
<span class="icon-phone"></span>
<a href="//www.yohobuy.com/download/app"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>手机版</a>
<a href="//www.yohobuy.com/download/app" rel="nofollow">手机版</a>
<div class="download-app-box">
<div class="qr-img code-img"></div>
<h5 class="qr-words">下载手机客户端</h5>
... ... @@ -101,13 +101,13 @@
{{# navbars}}
<li class="{{type}}">
{{#if ico}}
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}} class="menu-ico"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}></a>
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}} class="menu-ico"></a>
{{^}}
<h5 class="name-cn">
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>{{cn}}</a>
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}>{{cn}}</a>
</h5>
<h5 class="name-en">
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>{{en}}</a>
<a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}>{{en}}</a>
</h5>
{{/if}}
</li>
... ... @@ -128,7 +128,7 @@
{{#hotTerms}}
<li>
<a style="display: block;" href="{{href}}" title="{{content}}"
act="{{href}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}} target="_blank">
act="{{href}}" target="_blank">
<span class="searchvalue">{{content}}</span>
</a>
</li>
... ... @@ -137,7 +137,7 @@
</div>
<div class="go-cart">
<a href="//www.yohobuy.com/cart/cart">
<a href="//www.yohobuy.com/cart/cart" rel="nofollow">
<span class="iconfont ">&#xe600;</span>
{{#unless @root.pc.common.removeCartCount}}
<span class="goods-num-tip hide">0</span>
... ...
... ... @@ -54,7 +54,7 @@
<ul>
{{# pageCounts}}
<li>
<a href="{{href}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>{{count}}</a>
<a href="{{href}}" rel="nofollow">{{count}}</a>
</li>
{{/ pageCounts}}
</ul>
... ... @@ -62,7 +62,7 @@
<p class="page-orient">
{{#if preHref}}
<a href="{{preHref}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
<a href="{{preHref}}" rel="nofollow">
<span class="iconfont">&#xe60e;</span>
</a>
{{^}}
... ... @@ -74,7 +74,7 @@
</span>
{{#if nextHref}}
<a href="{{nextHref}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
<a href="{{nextHref}}" rel="nofollow">
<span class="iconfont">&#xe60c;</span>
</a>
{{^}}
... ... @@ -93,7 +93,7 @@
{{/each}}
{{# hasNextPage}}
<div class="block-next-page">
<a href="{{href}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
<a href="{{href}}" rel="nofollow">
<img src="{{image2 src}}" alt=""/>
</a>
</div>
... ...