Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Email Patches
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
9966968bfc9f95adb82deed619c3cde0d7a2d561
1 parent
40e854be
为评论和咨询列表添加ajax滚动加载
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
23 deletions
static/js/product/detail/desc.js
static/js/product/detail/detail.js
static/js/product/detail/like.js
static/sass/product/_comments-consults.scss
template/m.yohobuy.com/actions/product/detail/comments.phtml
template/m.yohobuy.com/actions/product/detail/consults.phtml
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/product/detail/desc.js
View file @
9966968
...
...
@@ -47,15 +47,6 @@ function search() {
slidesPerView
:
'auto'
});
//优选
// recommendSwiper = new Swiper('#swiper-recommend', {
// slidesPerView: 'auto',
// grabCursor: true,
// slideElement: 'li',
// lazyLoading: true,
// watchSlidesVisibility: true
// });
searching
=
false
;
end
=
true
;
loading
.
hideLoadingMask
();
...
...
static/js/product/detail/detail.js
View file @
9966968
...
...
@@ -12,7 +12,6 @@ var goodsSwiper;
require
(
'./desc'
);
require
(
'./comments-consults'
);
require
(
'./like'
);
require
(
'../recommend-for-you.js'
);
lazyLoad
(
$
(
'img.lazy'
));
...
...
static/js/product/detail/like.js
View file @
9966968
...
...
@@ -44,6 +44,6 @@ likeHammer.on('tap', function(e) {
});
$
(
'#likeBtn'
).
on
(
'click'
,
function
(
e
)
{
return
false
;
});
\ No newline at end of file
// $('#likeBtn').on('click', function(e) {
// return false;
// });
\ No newline at end of file
...
...
static/sass/product/_comments-consults.scss
View file @
9966968
...
...
@@ -39,6 +39,7 @@
}
.goods-consults-page
{
background-color
:
#f0f0f0
;
.goto-consult
{
padding
:
0
pxToRem
(
28px
);
height
:
pxToRem
(
120px
);
...
...
@@ -60,6 +61,7 @@
}
.goods-consults
{
.consult-item
{
margin-top
:
pxToRem
(
30px
);
padding
:
pxToRem
(
20px
)
pxToRem
(
28px
);
background-color
:
#fff
;
.question
{
...
...
@@ -99,10 +101,10 @@
}
}
}
.gap-block
{
min-height
:
30rem
/
$pxConvertRem
;
background-color
:
#f0f0f0
;
}
// .gap-block {
// min-height: 30rem/$pxConvertRem;
// background-color: #f0f0f0;
// }
}
.consult-form-page
{
...
...
template/m.yohobuy.com/actions/product/detail/comments.phtml
View file @
9966968
{
{>
layout/header
}
}
<div
class=
"goods-comments-page yoho-page"
>
{
{#comments
}
}
<div
class=
"goods-comments"
>
<div
class=
"goods-comments"
id=
"goods-comments"
>
{
{#list
}
}
<div
class=
"comment-item"
>
<span
class=
"user-name"
>
...
...
@@ -20,7 +20,10 @@
{
{/list
}
}
</div>
{
{/comments
}
}
{
{#if
loadmore
}
}
<input
id=
"loadMoreUrl"
type=
"hidden"
value=
{
{loadMoreUrl
}
}>
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/actions/product/detail/consults.phtml
View file @
9966968
...
...
@@ -3,12 +3,11 @@
<div
class=
"goto-consult"
>
<i
class=
"iconfont consult-logo"
>
639
;</i>
<span>我要咨询</span>
<a
href=
"/
product/detail/
consultform"
class=
"iconfont enter-consult-page"
>
604
;</a>
<a
href=
"/consultform"
class=
"iconfont enter-consult-page"
>
604
;</a>
</div>
{
{#
consults
}
}
<div
class=
"goods-consults"
>
<div
class=
"goods-consults"
id=
"goods-consults"
>
{
{#list
}
}
<div
class=
"gap-block"
></div>
<div
class=
"consult-item"
>
<div
class=
"question"
>
<span
class=
"iconfont"
>
639
;</span>
...
...
@@ -27,5 +26,9 @@
{
{/list
}
}
</div>
{
{/
consults
}
}
{
{#if
loadmore
}
}
<input
id=
"loadMoreUrl"
type=
"hidden"
value=
{
{loadMoreUrl
}
}>
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
9966968
...
...
@@ -132,7 +132,7 @@
<a
href=
"javascript:;"
class=
"sold-out"
>已售罄</a>
{
{/if
}
}
<a
href=
"
#
"
id=
"likeBtn"
class=
"favorite iconfont {{#isCollect}}liked{{/isCollect}}"
>
605
;</a>
<a
href=
"
javascript:;
"
id=
"likeBtn"
class=
"favorite iconfont {{#isCollect}}liked{{/isCollect}}"
>
605
;</a>
</div>
{
{/cartInfo
}
}
...
...
Please
register
or
login
to post a comment