Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
htoooth
2017-03-15 21:54:13 +0800
Commit
1a5920fc711cfbec336029f017d1d5d3a147548e
2 parents
c8cd6602
86302983
Merge branch 'release/5.5' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
public/hbs/product/package.hbs
public/js/product/detail.page.js
public/hbs/product/package.hbs
View file @
1a5920f
...
...
@@ -11,7 +11,7 @@
data-index=
"
{{
index
}}
"
>
{{#
productList
}}
<div
class=
"good-info"
data-skn=
"
{{
skn
}}
"
data-id=
"
{{
id
}}
"
>
<div
class=
"good-info"
data-skn=
"
{{
skn
}}
"
data-id=
"
{{
id
}}
"
data-index=
"
{{
@index
}}
"
>
<div
class=
"good-detail-img"
>
<a
class=
"good-thumb"
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy"
src=
"
{{
image
src
100
135
}}
"
style=
"display: block;"
>
...
...
public/js/product/detail.page.js
View file @
1a5920f
...
...
@@ -1593,7 +1593,7 @@ $(function() {
$
(
'#package'
).
on
(
'click'
,
'.good-info'
,
function
()
{
var
$this
=
$
(
this
);
var
$index
=
$this
.
index
(
)
+
1
;
var
$index
=
$this
.
data
(
'index'
)
+
1
;
var
thisId
=
$this
.
data
(
'id'
);
var
index
=
$this
.
closest
(
'.package-pro'
).
data
(
'index'
)
+
1
;
...
...
Please
register
or
login
to post a comment