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
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
537958e3c9d6dd452bfad2eb6a873c0e8254d683
2 parents
9c8a7d2a
092416f0
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
apps/editorial/models/editorial.js
apps/editorial/views/action/detail.hbs
public/js/editorial/detail.page.js
public/scss/editorial/_detail.css
apps/editorial/models/editorial.js
View file @
537958e
...
...
@@ -214,7 +214,7 @@ const _getRelatedData = (idList) => {
productSkn
:
idList
,
method
:
'h5.product.batch'
}).
then
((
result
)
=>
{
// console.log(result)
let
productList
=
[];
if
(
result
&&
result
.
code
===
200
)
{
...
...
@@ -541,7 +541,6 @@ const _getArticleNext = (id, appType, gender, tag) => {
if
(
tag
)
{
per
.
tag
=
tag
;
}
console
.
log
(
tag
);
return
serviceAPI
.
get
(
'guang/api/*/article/getArticleNext'
,
per
).
then
((
result
)
=>
{
...
...
apps/editorial/views/action/detail.hbs
View file @
537958e
...
...
@@ -84,8 +84,8 @@
{{/
relatedGroup
}}
</div>
</div>
<span
class=
"left iconfont hide"
>

</span>
<span
class=
"right iconfont"
>

</span>
<span
class=
"btn-left iconfont hide"
>

</span>
<span
class=
"btn-right iconfont"
>

</span>
</div>
{{/
related
}}
{{/
content
}}
...
...
public/js/editorial/detail.page.js
View file @
537958e
...
...
@@ -203,35 +203,35 @@ if ($('.collocation').find('.good-info').length === 0) {
if
(
$
(
'.goods'
).
find
(
'.good-info'
).
length
===
0
)
{
$
(
'.related-group'
).
hide
();
}
else
if
(
$
(
'.goods'
).
find
(
'.good-info'
).
length
<
5
)
{
$
(
'.left'
).
hide
();
$
(
'.right'
).
hide
();
$
(
'.btn-left'
).
hide
();
$
(
'.btn-right'
).
hide
();
}
$
(
'.right'
).
click
(
function
()
{
$
(
'.
btn-
right'
).
click
(
function
()
{
pag
=
pag
+
1
;
if
(
pag
===
leng
-
1
)
{
$
(
'.right'
).
addClass
(
'hide'
);
$
(
'.
btn-
right'
).
addClass
(
'hide'
);
}
if
(
pag
!==
0
)
{
$
(
'.left'
).
removeClass
(
'hide'
);
$
(
'.
btn-
left'
).
removeClass
(
'hide'
);
}
$
(
'.goods'
).
animate
({
left
:
'+=-930px'
});
});
$
(
'.left'
).
click
(
function
()
{
$
(
'.
btn-
left'
).
click
(
function
()
{
var
$goods
=
$
(
'.goods'
);
pag
=
pag
-
1
;
if
(
pag
===
0
)
{
$
(
'.left'
).
addClass
(
'hide'
);
$
(
'.
btn-
left'
).
addClass
(
'hide'
);
}
if
(
pag
!==
leng
-
1
)
{
$
(
'.right'
).
removeClass
(
'hide'
);
$
(
'.
btn-
right'
).
removeClass
(
'hide'
);
}
$goods
.
animate
({
left
:
'+=930px'
});
...
...
public/scss/editorial/_detail.css
View file @
537958e
...
...
@@ -133,7 +133,7 @@
position
:
relative
;
}
.left
{
.
btn-
left
{
position
:
absolute
;
display
:
block
;
width
:
30px
;
...
...
@@ -155,7 +155,7 @@
background
:
#7f7f7f
;
}
.right
{
.
btn-
right
{
position
:
absolute
;
display
:
block
;
width
:
30px
;
...
...
Please
register
or
login
to post a comment