Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
6d99a5f03a917b53a1206676ebffcd79b616671e
2 parents
f757515b
f9fe3a4a
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
15 deletions
static/js/me/fav.js
static/js/product/list.js
static/sass/me/_vip-grade.scss
static/sass/product/_comments-consults.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/product/feedback-tab.phtml
static/js/me/fav.js
View file @
6d99a5f
...
...
@@ -15,10 +15,10 @@ var $navLi = $('#fav-tab > li'),
swiperObj
=
{},
favTabHammer
,
favContentHammer
,
footerH
=
$
(
'#yoho-footer'
).
height
(),
$loadMore
=
$
(
'.fav-load-more'
),
$brandLoadMore
=
$
(
'.fav-brand-load-more'
),
winH
=
$
(
window
).
height
(),
footerH
=
$
(
'#yoho-footer'
).
height
(),
$favProductList
=
$
(
'.fav-product-list'
),
$favBrandList
=
$
(
'.fav-brand-swiper-wrapper'
),
pageId
=
1
,
...
...
@@ -220,8 +220,8 @@ favContentHammer.on('tap', function(e) {
function
scrollHandler
()
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
footerH
)
{
//距离底部未1/4列表高度+底部高度的时候加载更多
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
0.25
*
$favBrandList
.
height
()
-
footerH
)
{
if
(
brandTab
)
{
$brandLoadMore
.
filter
(
'.hide'
).
removeClass
(
'hide'
);
...
...
static/js/product/list.js
View file @
6d99a5f
...
...
@@ -457,5 +457,6 @@ $listNav.on('touchstart', 'li', function() {
// 用于统计点击了商品列表的第几个商品,序号从1开始计算。
if
(
window
.
_yas
)
{
window
.
_yas
(
1
*
new
Date
(),
'1.0.13.2'
,
'yohobuy_m'
,
window
.
_ozuid
,
'#goods-container >div >div .good-thumb >img'
);
window
.
_yas
(
1
*
new
Date
(),
'1.0.13.2'
,
'yohobuy_m'
,
window
.
_ozuid
,
''
,
'#goods-container >div >div .good-thumb >img'
);
}
\ No newline at end of file
...
...
static/sass/me/_vip-grade.scss
View file @
6d99a5f
...
...
@@ -23,7 +23,6 @@
overflow
:
hidden
;
}
.user-name
{
float
:
left
;
max-width
:
240rem
/
$pxConvertRem
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
...
...
static/sass/product/_comments-consults.scss
View file @
6d99a5f
...
...
@@ -168,6 +168,9 @@
&
.focus
{
color
:
#000
;
}
.comments-num
{
display
:
none
;
}
}
.comment-nav
{
border-right
:
1px
solid
#ccc
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
6d99a5f
...
...
@@ -38,8 +38,8 @@
<div
class=
"price-date"
>
{
{#
goodsPrice
}
}
<div
class=
"goodsPrice"
>
<h
1
class=
"currentPrice"
>¥
{
{currentPrice
}
}</h
1
>
<h
1
class=
"previousPrice"
>¥
{
{previousPrice
}
}</h
1
>
<h
1
class=
"currentPrice"
>
{
{currentPrice
}
}</h
1
>
<h
1
class=
"previousPrice"
>
{
{previousPrice
}
}</h
1
>
</div>
{
{/
goodsPrice
}
}
...
...
@@ -57,7 +57,7 @@
<li
class=
"icons-item {{#if currentLevel}}current-level{{/if}}"
>
<span
class=
"vip-img "
style=
"background-size:contain;"
>
</span>
<span
class=
"vip-price "
>
¥
{
{text
}
}</span>
<span
class=
"vip-price "
>
{
{text
}
}</span>
</li>
{
{/
list
}
}
</ul>
...
...
template/m.yohobuy.com/partials/product/feedback-tab.phtml
View file @
6d99a5f
<ul id="nav-tab" class="nav-tab clearfix">
<li class="comment-nav">商品评价
(<span class="comments-num">{{commentsNum}}</span>)
</li>
<li class="comment-nav">商品评价
<span class="comments-num">{{commentsNum}}</span>
</li>
<li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
</ul>
<div id="feedback-content" >
...
...
@@ -27,7 +27,7 @@
</div>
{{/if}}
<!-- <div class="comment-content-footer">
<a href="{{link}}">查看更多 <span class="iconfont"></span></a>
<a href="{{link}}">查看更多 <span class="iconfont"></span></a>
</div> -->
</div>
...
...
@@ -51,8 +51,8 @@
</div>
<div class="consult-content-footer" data-href="{{link}}">
<a href="javascript:;">
查看更多
<span class="iconfont"></span></a>
查看更多
<span class="iconfont"></span></a>
</div>
{{else}}
<div class="consult-content-main content-main no-item">
...
...
@@ -61,9 +61,9 @@
<div class="consult-content-footer" data-href="{{link}}">
<a href="javascript:;">
我要咨询
<span class="iconfont"></span></a>
我要咨询
<span class="iconfont"></span></a>
</div>
{{/if}}
</div>
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment