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
hf
9 years ago
Commit
aea4ce71ebd88a91e0812b763afed6e5a5e97882
2 parents
ea331cde
6e3b66e1
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
60 additions
and
24 deletions
static/js/me/fav.js
static/js/product/detail/desc.js
static/js/product/list.js
static/sass/me/_home.scss
static/sass/me/_vip-grade.scss
static/sass/product/_comments-consults.scss
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/index/home/index.phtml
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 @
aea4ce7
...
...
@@ -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/detail/desc.js
View file @
aea4ce7
...
...
@@ -18,7 +18,6 @@ var introUrl = $('#introUrl').val(),
var
sizeSwiper
,
refSwiper
;
var
UA
=
navigator
.
userAgent
.
toLowerCase
().
toString
();
//判断是否要显示向左滑动提示
function
hiddenTips
(
$ele
)
{
...
...
@@ -38,6 +37,19 @@ function hiddenTips($ele) {
}
}
function
isFlexSupport
()
{
var
flex
=
document
.
createElement
(
'p'
).
style
.
flex
,
webkitFlex
=
document
.
createElement
(
'p'
).
style
.
webkitFlex
,
flexWrap
=
document
.
createElement
(
'p'
).
style
.
flexWrap
;
if
((
flex
===
''
||
webkitFlex
===
''
)
&&
flexWrap
===
''
)
{
return
true
;
}
else
{
return
false
;
}
}
function
search
()
{
if
(
searching
||
end
)
{
return
;
...
...
@@ -71,8 +83,9 @@ function search() {
hiddenTips
(
$
(
'#size-swiper-container'
));
hiddenTips
(
$
(
'#reference-swiper-container'
));
if
(
UA
.
indexOf
(
'mqqbrowser'
)
>
0
)
{
$
(
'.detail > div'
).
removeClass
(
'column'
).
addClass
(
'oldbox'
);
if
(
!
isFlexSupport
())
{
$
(
'.detail .column'
).
removeClass
(
'column'
).
addClass
(
'oldbox'
);
}
searching
=
false
;
end
=
true
;
...
...
static/js/product/list.js
View file @
aea4ce7
...
...
@@ -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/_home.scss
View file @
aea4ce7
...
...
@@ -88,9 +88,13 @@
position
:
relative
;
float
:
left
;
color
:
#fff
;
font-size
:
pxToRem
(
22px
);
line-height
:
pxToRem
(
38px
);
width
:
pxToRem
(
213px
);
font-size
:
pxToRem
(
32px
);
width
:
pxToRem
(
320px
);
// width: pxToRem(213px); 三栏宽度
p
{
font-size
:
pxToRem
(
22px
);
}
&
:after
{
content
:
''
;
...
...
static/sass/me/_vip-grade.scss
View file @
aea4ce7
...
...
@@ -113,7 +113,9 @@
display
:
block
;
}
}
.cost
{
padding
:
0
0
0
30rem
/
$pxConvertRem
;
}
.cost
li
{
height
:
90rem
/
$pxConvertRem
;
line-height
:
90rem
/
$pxConvertRem
;
...
...
@@ -125,6 +127,7 @@
}
>
span
{
float
:
right
;
padding
:
0
30rem
/
$pxConvertRem
0
0
;
}
}
...
...
static/sass/product/_comments-consults.scss
View file @
aea4ce7
...
...
@@ -168,6 +168,9 @@
&
.focus
{
color
:
#000
;
}
.comments-num
{
display
:
none
;
}
}
.comment-nav
{
border-right
:
1px
solid
#ccc
;
...
...
static/sass/product/_detail.scss
View file @
aea4ce7
...
...
@@ -350,12 +350,18 @@ $basicBtnC:#eb0313;
background-color
:
#fff
;
border-bottom
:
1px
solid
$borderC
;
h1
{
padding
:
pxToRem
(
30px
)
pxToRem
(
28px
);
position
:
relative
;
padding
:
pxToRem
(
30px
)
pxToRem
(
60px
)
pxToRem
(
30px
)
pxToRem
(
28px
);
line-height
:
pxToRem
(
36px
);
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
// line-height: pxToRem(88px);
}
.iconfont
{
display
:
inline-block
;
position
:
absolute
;
top
:
pxToRem
(
30px
);
right
:
pxToRem
(
36px
);
width
:
pxToRem
(
35px
);
font-size
:
pxToRem
(
45px
);
float
:
right
;
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
aea4ce7
...
...
@@ -28,10 +28,14 @@
{
{#isLogin
}
}
{
{brand_favorite_total
}
}
{
{/isLogin
}
}
<p>收藏的品牌</p>
</a>
{
{!
<a
class=
"link-item"
href=
"/home/record"
>
{
{#isLogin
}
}
{
{product_browse
}
}
{
{/isLogin
}
}
<!--
product_browse
-->
<p>浏览记录</p>
</a>
}}
</div>
<div
class=
"my-order"
>
<div
class=
"order-title"
>
...
...
@@ -102,6 +106,7 @@
<span
class=
"iconfont num"
>
604
;</span>
</a>
</div>
{
{!
<div
class=
"group-list"
>
<a
class=
"list-item"
href=
"/help.html"
>
<span
class=
"iconfont icon"
></span>
...
...
@@ -109,6 +114,7 @@
<span
class=
"iconfont num"
></span>
</a>
</div>
}}
{
{>
product/recommend-for-you
}
}
{
{>
product/suspend-cart
}
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
aea4ce7
...
...
@@ -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 @
aea4ce7
<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