Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
zhangxiaoru
9 years ago
Commit
aef8523c4d6046a7307adc5fc6c64ec42fe01a06
1 parent
b74f29bd
master
...
feature/balanceSwitch
feature/jitmodified
gray
hotfix/unionData
release/5.4.1
20160907
1230
1220
1025
0927
5.3.0
5.0
4.9.31
4.9.27
4.9.14
4.9.13
4.9.13.invoice
4.9.12
4.9.11
4.9.11.shop
4.9.10
4.9.02
4.9.1.5
4.9.1.4
4.9.1.1
4.9.1.0
4.9.01
4.9.1
4.8.7.2
4.8.7.1
4.8.7
4.8.6
4.8.4
4.8.3
4.8.2
4.8.1
4.7.8
4.7.5
4.7.2
4.6.5
4.6.4.1
4.6.4
4.6.3
4.6
wap4.5
before5.0.0
首页全部商品
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
static/img/sprite.me.png
static/js/product/shop.js
template/m.yohobuy.com/actions/product/index/shop.phtml
static/img/sprite.me.png
View file @
aef8523
17.1 KB
|
W:
0px
|
H:
0px
16.3 KB
|
W:
0px
|
H:
0px
2-up
Swipe
Onion skin
static/js/product/shop.js
View file @
aef8523
...
...
@@ -120,7 +120,7 @@ function tabChange(dom, index) {
//首页导航
$
.
jqtab
=
function
(
nav
,
posNav
,
main
)
{
$
(
nav
+
' li, '
+
posNav
+
' li'
).
on
(
'touchstart'
,
function
()
{
$
(
nav
+
' li, '
+
posNav
+
' li'
).
not
(
'li.all-goods'
).
on
(
'touchstart'
,
function
()
{
var
index
=
$
(
this
).
index
(),
activeTab
=
$
(
this
).
attr
(
'tab'
);
...
...
@@ -135,13 +135,10 @@ $.jqtab = function(nav, posNav, main) {
if
(
activeTab
==
'new-arrival'
){
newData
();
}
else
if
(
activeTab
==
'popularity'
){
}
else
if
(
activeTab
==
'popularity'
){
hotData
();
}
else
if
(
activeTab
==
'home-page'
)
{
myScroll
&&
myScroll
.
refresh
();
// setTimeout(function() {
// scH = $('#scroller').outerHeight();
// },1000);
scH
=
$
(
'#scroller'
).
outerHeight
();
$nav1
.
removeClass
(
'fixed-top'
);
$nav1
.
removeClass
(
'absolute'
);
...
...
@@ -236,7 +233,6 @@ myScroll.on('scroll', function() {
if
(
sTop
+
winH
*
2
>
scH
)
{
switch
(
viewType
)
{
case
2
:
newData
();
break
;
...
...
template/m.yohobuy.com/actions/product/index/shop.phtml
View file @
aef8523
...
...
@@ -37,7 +37,7 @@
<li
class=
"active color"
tab=
"home-page"
>首页</li>
<li
tab=
"new-arrival"
>上新</li>
<li
tab=
"popularity"
>人气</li>
<li>
<li
class=
"all-goods"
>
<a
href=
"{{allGoods}}"
>全部商品</a>
</li>
</ul>
...
...
Please
register
or
login
to post a comment