Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
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
2586703@qq.com
10 years ago
Commit
0eaea2204504c53085de86a0649bca98f012b089
2 parents
c04ea51b
3a099886
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
res/js/yohood.js
website/config/core/db.test.config.php
res/js/yohood.js
View file @
0eaea22
...
...
@@ -352,7 +352,7 @@ define('yohood', function(require, exports) {
$
(
".search-btn"
).
trigger
(
"click.search"
);
});
$
(
".search-btn"
).
bind
(
"click.search"
,
function
()
{
var
brand
=
encodeURIComponent
(
$
.
trim
(
$
(
"input[type=text]"
).
val
()
));
var
brand
=
$
.
trim
(
$
(
"input[type=text]"
).
val
(
));
var
template
=
'<ul class="brand-list cooperation-list clearfix">{li}</ul>'
;
var
noSearchTemplate
=
'<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>'
;
var
html
=
''
;
...
...
@@ -360,7 +360,7 @@ define('yohood', function(require, exports) {
type
:
"post"
,
url
:
"/brand/getbrand"
,
data
:
{
brand
:
brand
brand
:
encodeURIComponent
(
brand
)
},
success
:
function
(
data
)
{
var
brands
=
data
.
data
;
...
...
@@ -372,7 +372,7 @@ define('yohood', function(require, exports) {
});
$
(
".brand-content"
).
html
(
template
.
replace
(
'{li}'
,
html
));
}
else
{
$
(
".brand-content"
).
html
(
noSearchTemplate
.
replace
(
'{brand}'
,
decodeURIComponent
(
brand
)
));
$
(
".brand-content"
).
html
(
noSearchTemplate
.
replace
(
'{brand}'
,
tools
.
escapeHTML
(
brand
)
));
}
}
});
...
...
website/config/core/db.test.config.php
View file @
0eaea22
[mysql]
pre_yohood.username = yohodb
pre_yohood.password = yohonj_9646_mysql
pre_yohood.writers = 10.170.183.158:5510
pre_yohood.readers = 10.170.183.158:5510
yohood.username = yohodb
yohood.password = yohonj_9646_mysql
yohood.writers = 127.0.0.1:3310
yohood.readers = 127.0.0.1:3310
...
...
Please
register
or
login
to post a comment