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
hf
9 years ago
Commit
0372cda0ff14e02a38199e077f2430610b0c8d0d
1 parent
6d576859
do merge develop code to version 0.0.8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
9 deletions
static/package.json
template/m.yohobuy.com/actions/index/search/index.phtml
template/m.yohobuy.com/partials/product/list.phtml
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/configs/application.developer.ini
yohobuy/m.yohobuy.com/configs/application.preview.ini
yohobuy/m.yohobuy.com/configs/application.production.ini
yohobuy/m.yohobuy.com/configs/application.testing.ini
static/package.json
View file @
0372cda
{
"name"
:
"yohobuy"
,
"version"
:
"0.0.
6
"
,
"version"
:
"0.0.
8
"
,
"description"
:
"yohobuy statics"
,
"keywords"
:
[],
"homepage"
:
""
,
...
...
template/m.yohobuy.com/actions/index/search/index.phtml
View file @
0372cda
...
...
@@ -5,6 +5,7 @@
<form
id=
"search-form"
action=
{
{url
}
}
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
placeholder=
"搜索商品"
name=
"query"
>
<input
type=
"hidden"
name=
"from"
value=
"search"
>
<i
class=
"clear-input iconfont hide"
>
626
;</i>
<button
id=
"search"
class=
"search"
type=
"submit"
>搜索</button>
</form>
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
0372cda
...
...
@@ -3,7 +3,7 @@
<div
id=
"search-input"
class=
"search-input"
>
<form
id=
"search-form"
action=
{
{url
}
}
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
{
{default
}
}
name=
"query"
>
<input
type=
"text"
value=
"{{default}}"
name=
"query"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<button
id=
"search"
class=
"search"
type=
"submit"
>搜索</button>
</form>
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
0372cda
...
...
@@ -141,14 +141,14 @@ class SearchController extends AbstractAction
}
// 搜索其它内容
else
{
if
(
$haveQuery
)
{
$data
[
'goodList'
][
'search'
][
'default'
]
=
$query
;
$from
=
$this
->
get
(
'from'
);
if
(
$haveQuery
||
$from
)
{
$data
[
'goodList'
][
'search'
][
'default'
]
=
empty
(
$query
)
?
false
:
$query
;
$data
[
'goodList'
][
'search'
][
'url'
]
=
Helpers
::
url
(
''
,
null
,
'search'
);
}
$this
->
setTitle
(
'搜索'
);
$this
->
setNavHeader
(
'搜索'
,
true
,
SITE_MAIN
);
}
// 右下角的购物车链接
$data
[
'goodList'
][
'cartUrl'
]
=
Helpers
::
url
(
'/cart/index/index'
,
null
);
...
...
yohobuy/m.yohobuy.com/configs/application.developer.ini
View file @
0372cda
...
...
@@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path
=
ROOT_PATH "/assets"
; 应用的版本号
application.version
=
"0.0.
7
"
application.version
=
"0.0.
8
"
; 网站SEO信息
application.seo.title
=
"Yoho!Buy有货"
...
...
yohobuy/m.yohobuy.com/configs/application.preview.ini
View file @
0372cda
...
...
@@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path
=
ROOT_PATH "/assets"
; 应用的版本号
application.version
=
"0.0.
7
"
application.version
=
"0.0.
8
"
; 网站SEO信息
application.seo.title
=
"Yoho!Buy有货"
...
...
yohobuy/m.yohobuy.com/configs/application.production.ini
View file @
0372cda
...
...
@@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path
=
ROOT_PATH "/assets"
; 应用的版本号
application.version
=
"0.0.
7
"
application.version
=
"0.0.
8
"
; 网站SEO信息
application.seo.title
=
"Yoho!Buy有货"
...
...
yohobuy/m.yohobuy.com/configs/application.testing.ini
View file @
0372cda
...
...
@@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path
=
ROOT_PATH "/assets"
; 应用的版本号
application.version
=
"0.0.
7
"
application.version
=
"0.0.
8
"
; 网站SEO信息
application.seo.title
=
"Yoho!Buy有货"
...
...
Please
register
or
login
to post a comment