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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
d7c1a11015cd71f8aef94370e1e2dd5163f6a7ba
2 parents
b591855f
ea39c33a
Merge branch 'develop' into test
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
10 deletions
static/js/common.js
static/js/guang/plus-star/detail.js
static/js/plugin/filter.js
static/js/product/list.js
static/sass/product/_list.scss
template/m.yohobuy.com/partials/product/list.phtml
static/js/common.js
View file @
d7c1a11
...
...
@@ -146,7 +146,10 @@ function rePosFooter() {
var
uid
=
getUid
();
uid
=
uid
===
0
?
''
:
uid
;
window
.
_yas
(
1
*
new
Date
(),
'1.0.8'
,
'yohobuy_m'
,
uid
,
''
);
if
(
window
.
_yas
)
{
window
.
_yas
(
1
*
new
Date
(),
'1.0.8'
,
'yohobuy_m'
,
uid
,
''
);
}
}());
...
...
static/js/guang/plus-star/detail.js
View file @
d7c1a11
...
...
@@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'like'
);
}
else
if
(
data
.
code
===
400
||
data
.
code
===
412
)
{
//code:412 用户ID不正确,即未登录
tip
.
show
(
'未登录'
);
location
.
href
=
data
.
data
;
//未登录跳转登录页面
}
else
{
tip
.
show
(
data
.
message
);
}
...
...
static/js/plugin/filter.js
View file @
d7c1a11
...
...
@@ -104,6 +104,8 @@ function initFilter(opt) {
var
$this
=
$
(
e
.
target
),
$cur
;
e
.
preventDefault
();
//防止透点
if
(
$this
.
closest
(
'.filter-body'
).
length
>
0
)
{
$cur
=
$this
.
closest
(
'.sub-item'
);
if
(
$cur
.
length
>
0
)
{
...
...
static/js/product/list.js
View file @
d7c1a11
...
...
@@ -401,7 +401,7 @@ if ($brandHeader.length > 0) {
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'coled'
);
}
else
if
(
data
.
code
===
400
||
data
.
code
===
412
)
{
tip
.
show
(
'未登录'
);
location
.
href
=
data
.
data
;
//未登录跳转登录页
}
else
{
tip
.
show
(
data
.
message
);
}
...
...
static/sass/product/_list.scss
View file @
d7c1a11
...
...
@@ -184,10 +184,19 @@
color
:
#999
;
}
.nav-txt
{
display
:
inline-block
;
height
:
100%
;
box-sizing
:
border-box
;
}
.active
>
a
{
border-bottom
:
2px
solid
#000
;
color
:
#000
;
.nav-txt
{
border-bottom
:
2px
solid
#000
;
}
.iconfont
{
color
:
#999
;
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
d7c1a11
...
...
@@ -52,13 +52,13 @@
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
最新
<span
class=
"nav-txt"
>最新</span>
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
价格
<span
class=
"nav-txt"
>价格</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
...
...
@@ -67,7 +67,7 @@
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
折扣
<span
class=
"nav-txt"
>折扣</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
...
...
@@ -76,7 +76,7 @@
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
筛选
<span
class=
"nav-txt"
>筛选</span>
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
...
...
Please
register
or
login
to post a comment