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
bffc794d112ed99d1de51778029b883f4457a6d2
2 parents
9667846d
56910165
Merge branch 'develop'
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
15 deletions
static/js/common.js
static/sass/home/_hot-brands.scss
static/sass/index/_footer.scss
static/sass/index/_index.scss
static/sass/index/_search.scss
template/m.yohobuy.com/partials/layout/footer.phtml
template/m.yohobuy.com/partials/product/list.phtml
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/application/models/Product/Search.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
static/js/common.js
View file @
bffc794
...
...
@@ -119,7 +119,7 @@ function rePosFooter() {
//未登录
$op
.
prepend
(
'<a href="/signin.html">登录</a>'
+
'<a href="/signin.html
?refer='
+
location
.
href
+
'
">登录</a>'
+
'<span class="sep-line">|</span>'
+
'<a href="/reg.html">注册</a>'
);
...
...
static/sass/home/_hot-brands.scss
View file @
bffc794
.hot-brands
{
background
:
#f0f0f0
;
border-bottom
:
1px
solid
#e0e0e0
;
background
:
#fff
;
.floor-header
{
background
:
#f0f0f0
;
margin
:
0
;
padding
:
29rem
/
$pxConvertRem
30rem
/
$pxConvertRem
0
;
border
:
0
;
h2
{
border
:
1px
solid
#e0e0e0
;
background
:
#fff
;
border-bottom
:
0
;
}
}
a
{
display
:
block
;
...
...
@@ -8,10 +21,6 @@
height
:
100%
;
}
>
*
{
background
:
#fff
;
}
.brand
{
float
:
left
;
width
:
158rem
/
$pxConvertRem
;
...
...
static/sass/index/_footer.scss
View file @
bffc794
...
...
@@ -71,7 +71,13 @@
background
:
white
;
border-radius
:
5px
;
margin-top
:
-13px
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
.5
);
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
.5
);
&
:link
,
&
:visited
,
&
:hover
,
&
:actived
{
color
:
#000
;
}
}
.circle-rightbottom
{
...
...
static/sass/index/_index.scss
View file @
bffc794
...
...
@@ -50,7 +50,7 @@
top
:
20rem
/
$pxConvertRem
;
width
:
352rem
/
$pxConvertRem
;
height
:
56rem
/
$pxConvertRem
;
padding-right
:
4
0rem
/
$pxConvertRem
;
padding-right
:
8
0rem
/
$pxConvertRem
;
z-index
:
1
;
transition
:
width
400ms
;
box-sizing
:
border-box
;
...
...
@@ -59,7 +59,7 @@
}
input
{
float
:
left
;
width
:
100
%
;
width
:
96
%
;
font-size
:
28rem
/
$pxConvertRem
;
padding
:
10rem
/
$pxConvertRem
;
color
:
#999
;
...
...
static/sass/index/_search.scss
View file @
bffc794
...
...
@@ -39,7 +39,7 @@
border
:
none
;
background
:
transparent
;
color
:
#b2b2b2
;
font-size
:
3
2
rem
/
$pxConvertRem
;
font-size
:
3
0
rem
/
$pxConvertRem
;
line-height
:
56rem
/
$pxConvertRem
;
}
}
...
...
template/m.yohobuy.com/partials/layout/footer.phtml
View file @
bffc794
...
...
@@ -13,7 +13,7 @@
{
{/if
}
}
{
{#if
testEnv
}
}
<script
src=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"
></script>
<script
src=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index.js"
></script>
<script
src=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index
-debug
.js"
></script>
{
{/if
}
}
{
{#if
devEnv
}
}
<script
src=
"http://localhost:8000/static/js/sea.js?nowrap"
></script>
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
bffc794
{
{#
goodList
}
}
{
{#
search
}
}
<div
id=
"search-input"
class=
"search-input"
>
<form
id=
"search-form"
action=
{
{url
}
}
method=
"get"
>
<form
id=
"search-form"
action=
"{{url}}"
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
"{{default}}"
name=
"query"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
bffc794
...
...
@@ -246,6 +246,7 @@ class SearchController extends AbstractAction
// $data = Product\ListModel::getClassData($condition);
$data
=
Product\SearchModel
::
getSearchData
(
$condition
);
}
while
(
false
);
if
(
empty
(
$data
[
'new'
]))
{
...
...
yohobuy/m.yohobuy.com/application/models/Product/Search.php
View file @
bffc794
...
...
@@ -49,7 +49,7 @@ class SearchModel
// 处理返回的数据
if
(
isset
(
$listData
[
'code'
])
&&
$listData
[
'code'
]
===
200
)
{
$result
=
ListProcess
::
getListData
(
$listData
[
'data'
],
false
);
}
}
if
(
USE_CACHE
)
{
// 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
bffc794
...
...
@@ -159,7 +159,7 @@ class PlusstarController extends AbstractAction
// 相关文章
foreach
(
$brandInfo
[
'getArticleByBrand'
]
as
$value
)
{
$data
[
'ps'
][
'infos'
][]
=
Helpers
::
formatArticle
(
$value
,
false
,
false
,
false
,
$uid
);
$data
[
'ps'
][
'infos'
][]
=
Helpers
::
formatArticle
(
$value
,
false
,
$isApp
,
false
,
$uid
);
}
// 设置头部信息
...
...
@@ -172,7 +172,7 @@ class PlusstarController extends AbstractAction
$data
[
'shareLink'
]
=
$defaultUrl
;
$data
[
'shareTitle'
]
=
$data
[
'ps'
][
'name'
];
$data
[
'shareDesc'
]
=
(
mb_strlen
(
$data
[
'ps'
][
'intro'
],
'utf-8'
)
>
800
)
?
mb_substr
(
$data
[
'ps'
][
'intro'
],
0
,
80
0
,
'utf-8'
)
.
'...'
:
$data
[
'ps'
][
'intro'
];
$data
[
'shareDesc'
]
=
(
mb_strlen
(
$data
[
'ps'
][
'intro'
],
'utf-8'
)
>
120
)
?
mb_substr
(
$data
[
'ps'
][
'intro'
],
0
,
12
0
,
'utf-8'
)
.
'...'
:
$data
[
'ps'
][
'intro'
];
$data
[
'shareImg'
]
=
$data
[
'ps'
][
'logo'
];
$brandInfo
=
array
();
...
...
Please
register
or
login
to post a comment