Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
7 years ago
Commit
3fb2e99d42d49a544c6c8a77279cc07c0e9ce179
2 parents
a4cb8624
48aacfd5
Merge branch 'feature/seo2' into 'gray'
Feature/seo2 See merge request
!1105
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
6 deletions
apps/guang/controllers/detail.js
apps/product/controllers/chanpin.js
apps/product/controllers/new-detail.js
apps/product/controllers/new-shop.js
apps/product/views/partial/detail/feedback-tab.hbs
public/js/product/list/product-list-with-filter.js
apps/guang/controllers/detail.js
View file @
3fb2e99
...
...
@@ -294,6 +294,9 @@ const index = (req, res, next) => {
data
.
guang
.
wxFooter
=
wxFooter
;
res
.
render
(
'info/index'
,
Object
.
assign
({
page
:
'info-index'
,
canonical
:
{
currentHref
:
`
https
:
//www.yohobuy.com${req.originalUrl}`
},
gender
:
gender
,
wechatShare
:
true
,
isWeixin
:
isWeixin
,
...
...
apps/product/controllers/chanpin.js
View file @
3fb2e99
...
...
@@ -84,7 +84,7 @@ const keyId = (req, res, next) => {
'total'
,
0
)}
条
$
{
queryKey
}
、产品的详细参数
,
实时报价
,
价格行情
,
图片、评价、品牌等信息。买
$
{
queryKey
},
就上
YOHO
!
BUY
有货`
,
pageFooter
:
true
,
canonical
:
{
currentHref
:
`
//www.yohobuy.com${req.originalUrl}`
currentHref
:
`
https
:
//www.yohobuy.com${req.originalUrl}`
}
});
}).
catch
(
next
);
...
...
apps/product/controllers/new-detail.js
View file @
3fb2e99
...
...
@@ -63,7 +63,7 @@ const newDetail = {
result
:
result
,
page
:
'new-detail'
,
canonical
:
{
currentHref
:
`
//www.yohobuy.com${req.originalUrl}`
currentHref
:
`
https
:
//www.yohobuy.com${req.originalUrl}`
},
title
:
`【
$
{
result
.
brandName
}
$
{
result
.
sortName
}
】
$
{
result
.
goodsName
}
|
YOHO
!
BUY
有货`
,
keywords
:
result
.
brandName
+
result
.
sortName
+
','
+
result
.
brandName
+
result
.
sortName
+
'价格,'
+
...
...
apps/product/controllers/new-shop.js
View file @
3fb2e99
...
...
@@ -294,7 +294,7 @@ const shop = {
if
(
domain
)
{
_
.
assign
(
finalResult
,
{
canonical
:
{
currentHref
:
`
https
:
//
${domain}.m.yohobuy.com
`
currentHref
:
`
https
:
//
www.yohobuy.com${req.originalUrl}
`
}
});
}
...
...
apps/product/views/partial/detail/feedback-tab.hbs
View file @
3fb2e99
...
...
@@ -25,7 +25,7 @@
</span>
{{/
comments
}}
</div>
<a
class=
"comment-content-footer tap-hightlight"
href=
"
{{
commentsUrl
}}
"
>
<a
class=
"comment-content-footer tap-hightlight"
href=
"
{{
commentsUrl
}}
"
rel=
"nofollow"
>
查看更多
<span
class=
"iconfont"
>

</span>
</a>
...
...
public/js/product/list/product-list-with-filter.js
View file @
3fb2e99
...
...
@@ -75,7 +75,7 @@ class ProductListWithFilter {
* 滚动加载
*/
window
.
onscroll
=
function
()
{
if
(
self
.
scrollActived
)
{
if
(
self
.
scrollActived
&&
!
self
.
nav
.
end
)
{
setTimeout
(
function
()
{
let
afterScroll
=
window
.
scrollY
;
...
...
@@ -110,7 +110,9 @@ class ProductListWithFilter {
// 去掉正在加载
$
(
'.search-divide'
).
remove
();
let
noResult
=
!
result
||
result
.
length
<
1
||
(
result
.
list
&&
result
.
list
.
length
<
1
);
let
noResult
=
!
result
||
!
result
.
length
||
result
.
length
<
1
||
(
result
.
list
&&
result
.
list
.
length
<
1
);
// 没有结果输出没有结果页面
if
(
noResult
)
{
...
...
Please
register
or
login
to post a comment