Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
unknown
9 years ago
Commit
cd78ef650e6215c36ac8a1e13de2278cb760698b
2 parents
d8251584
86275923
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
32 deletions
library/WebPlugin/HelperSearch.php
static/js/common.js
static/sass/layout/_header.scss
static/sass/me/_home.scss
template/m.yohobuy.com/actions/index/home/index.phtml
template/m.yohobuy.com/actions/index/home/logistic.phtml
template/m.yohobuy.com/partials/layout/page_header.phtml
web-static/js/product/brand.js
web-static/js/product/product.js
library/WebPlugin/HelperSearch.php
View file @
cd78ef6
...
...
@@ -7,6 +7,7 @@ use LibModels\Web\Product\BrandData;
use
LibModels\Web\Product\SearchData
;
use
Api\Yohobuy
;
use
Api\Sign
;
use
Index\HomeModel
;
/**
* 搜索辅助类
*/
...
...
@@ -31,7 +32,7 @@ class HelperSearch
private
static
function
setListNav
()
{
$options
=
self
::
$options
;
$c
ookieChannel
=
isset
(
$_COOKIE
[
'_Channel'
])
?
$_COOKIE
[
'_Channel'
]
:
'boys'
;
$c
hannel
=
HomeModel
::
getSwitchChannel
()
;
if
(
isset
(
$options
[
'brandName'
])
&&
!
empty
(
$options
[
'brandName'
]))
{
$initNav
=
$options
[
'brandNameEn'
]
.
$options
[
'brandNameCn'
];
}
else
{
...
...
@@ -39,7 +40,7 @@ class HelperSearch
}
self
::
$listNav
[
0
]
=
array
(
'href'
=>
''
,
'name'
=>
strtoupper
(
$c
ookieC
hannel
)
.
'首页'
'name'
=>
strtoupper
(
$channel
)
.
'首页'
);
self
::
$listNav
[
1
]
=
array
(
'href'
=>
''
,
...
...
static/js/common.js
View file @
cd78ef6
...
...
@@ -219,9 +219,9 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
$
(
this
).
removeClass
(
'highlight'
);
});
// $('.nav-home').on('touchstart', function() {
// $('.homebuttom').toggleClass('none');
// });
$
(
'.nav-home'
).
on
(
'touchstart'
,
function
()
{
$
(
'.homebuttom'
).
toggleClass
(
'none'
);
});
(
function
()
{
var
lastTime
=
0
,
...
...
static/sass/layout/_header.scss
View file @
cd78ef6
...
...
@@ -144,6 +144,9 @@
overflow
:
hidden
;
float
:
left
;
text-align
:
center
;
a
{
color
:
#fff
;
}
i
{
width
:
100%
;
height
:
40%
;
...
...
static/sass/me/_home.scss
View file @
cd78ef6
...
...
@@ -97,7 +97,7 @@
float
:
left
;
color
:
#fff
;
font-size
:
pxToRem
(
28px
);
width
:
pxToRem
(
320
px
);
width
:
pxToRem
(
212
px
);
// width: pxToRem(213px); 三栏宽度
&
.highlight
{
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
cd78ef6
...
...
@@ -28,14 +28,10 @@
{
{#isLogin
}
}
{
{brand_favorite_total
}
}
{
{/isLogin
}
}
<p>收藏的品牌</p>
</a>
{
{!
<a
class=
"link-item tap-hightlight"
href=
"/home/record"
>
<!--
product_browse
-->
{
{#isLogin
}
}
{
{product_browse
}
}
{
{/isLogin
}
}
<p>浏览记录</p>
</a>
}}
</div>
<div
class=
"my-order"
>
<a
class=
"order-title"
href=
"/home/orders"
>
...
...
template/m.yohobuy.com/actions/index/home/logistic.phtml
View file @
cd78ef6
...
...
@@ -38,4 +38,13 @@
{
{/
logisticDetail
}
}
</div>
</div>
<div
class=
"banner"
>
{
{#banner
}
}
<a
href=
"{{url}}"
>
<img
src=
"{{img}}"
alt=
"img"
>
</a>
{
{/banner
}
}
</div>
{
{>
home/maybe_like
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/page_header.phtml
View file @
cd78ef6
...
...
@@ -4,7 +4,7 @@
<a
href=
"{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}"
class=
"iconfont nav-back"
>
610
;</a>
{
{/navBack
}
}
{
{#navHome
}
}
<
a
href=
"{{.}}"
class=
"iconfont nav-home"
>
611
;</a
>
<
span
class=
"iconfont nav-home"
>
62
d;</span
>
{
{/navHome
}
}
{
{#currencyPage
}
}
<a
href=
"/home/helpDetail?code=20151230-102233&caption=YOHO币介绍"
class=
"iconfont nav-home"
>
639
;</a>
...
...
@@ -18,32 +18,34 @@
{
{#navTitle
}
}
<p
class=
"nav-title"
>
{
{.
}
}</p>
{
{/navTitle
}
}
{
{#
navBtn
}
}
<span
class=
"nav-btn"
>
{
{.
}
}</span>
{
{!--
<i
class=
"iconfont nav-home"
></i>
<div
class=
"homebuttom none"
>
<ul>
<li>
</header>
<div
class=
"homebuttom none"
>
<ul>
<li>
<a
href=
"/"
>
<i
class=
"iconfont"
>
62
a;</i>
<span>首页</span>
</li>
<li>
</a>
</li>
<li>
<a
href=
"cate"
>
<i
class=
"iconfont"
>
62
d;</i>
<span>分类</span>
</li>
<li>
</a>
</li>
<li>
<a
href=
"cart/index/index"
>
<i
class=
"iconfont"
>
62
c;</i>
<span>购物车</span>
</li>
<li>
</a>
</li>
<li>
<a
href=
"/home"
>
<i
class=
"iconfont"
>
62
b;</i>
<span>我的</span>
</li>
</ul>
</div>
--}}
{
{/
navBtn
}
}
</header>
</a>
</li>
</ul>
</div>
{
{/pageHeader
}
}
...
...
web-static/js/product/brand.js
View file @
cd78ef6
...
...
@@ -11,7 +11,7 @@ $('#brand-favor').on('click', function() {
uid
=
window
.
getUid
();
if
(
!
uid
)
{
location
.
href
=
'/signin.html?refer='
+
location
.
href
;
location
.
href
=
'/signin.html?refer='
+
encodeURIComponent
(
location
.
href
)
;
return
;
}
...
...
web-static/js/product/product.js
View file @
cd78ef6
...
...
@@ -174,6 +174,11 @@ $(document).on('hover', '.good-select-color li', function() {
$goodInfoMain
.
on
(
'click'
,
'.col-btn'
,
function
()
{
var
$this
=
$
(
this
);
if
(
!
window
.
getUid
())
{
location
.
href
=
'/signin.html?refer='
+
encodeURIComponent
(
location
.
href
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/product/list/changeFavorite'
,
...
...
Please
register
or
login
to post a comment