Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
558332f0b38cb580f85dc6a835142fd6ead7491d
1 parent
cdda0dbc
修改商品详情页地址
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
apps/product/models/helpers.js
public/js/product/list/list-search.js
public/js/product/shop.page.js
apps/product/models/helpers.js
View file @
558332f
...
...
@@ -211,11 +211,11 @@ const helpers = {
goodsId
=
goodsList
[
0
].
goodsId
;
goodsList
.
forEach
(
o
=>
{
o
.
url
=
`
$
{
config
.
siteUrl
}
/product/i
tem
/
$
{
g
.
productId
}
_$
{
o
.
goodsId
}.
html
`
;
o
.
url
=
`
$
{
config
.
siteUrl
}
/product/i
tem
/
pro_$
{
g
.
productId
}
_$
{
o
.
goodsId
}
_$
{
o
.
cnAlphabet
}.
html
`
;
});
}
g
.
url
=
`
$
{
config
.
siteUrl
}
/product/i
tem
/
$
{
g
.
productId
}
_$
{
goodsId
}.
html
`
;
g
.
url
=
`
$
{
config
.
siteUrl
}
/product/i
tem
/
pro_$
{
g
.
productId
}
_$
{
goodsId
}
_$
{
g
.
cnAlphabet
}.
html
`
;
});
}
return
list
;
...
...
public/js/product/list/list-search.js
View file @
558332f
...
...
@@ -4,6 +4,7 @@ var common = require('../../common');
var
query
=
common
.
queryString
();
var
YohoListPage
=
{
rootDoc
:
$
(
'.yoho-product-list'
),
brandsDoc
:
$
(
'.yoho-product-list .brand-list'
),
...
...
@@ -16,7 +17,7 @@ var YohoListPage = {
require
(
'yoho-jquery-nanoscroller'
);
require
(
'../../plugins/check'
);
require
(
'../../common/return-top'
);
require
(
'../../common/header'
);
lazyload
();
$
(
'.nano'
).
nanoScroller
();
$
(
'.yoho-ui-accordion'
,
this
.
rootDoc
).
each
(
function
()
{
...
...
public/js/product/shop.page.js
View file @
558332f
var
lazyload
=
require
(
'yoho-jquery-lazyload'
);
require
(
'../common/header'
);
lazyload
();
...
...
Please
register
or
login
to post a comment