Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
ccbikai
9 years ago
Commit
b26f8ccf478d68019ca58ff51bd7df616acfefc4
1 parent
5035a5c1
频道选择 按钮背景色
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
library/Api/Yohobuy.php
static/js/index/channel.js
library/Api/Yohobuy.php
View file @
b26f8cc
...
...
@@ -18,9 +18,9 @@ class Yohobuy
{
/* 正式环境 */
// const API_URL = 'http://api2.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_URL = 'http://api2.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// /* 测试环境 */
const
API_URL
=
'http://test2.open.yohobuy.com/'
;
...
...
static/js/index/channel.js
View file @
b26f8cc
...
...
@@ -8,7 +8,8 @@ var $ = require('jquery');
var
$searchBox
=
$
(
'.search-box'
),
$box
=
$
(
'.box'
),
$indexSearch
=
$
(
'.index-search'
),
$indexLogo
=
$
(
'.index-logo'
);
$indexLogo
=
$
(
'.index-logo'
),
$channelLink
=
$
(
'.index-channel a'
);
var
$search
=
$searchBox
.
children
(
'input[type="text"]'
),
$cancelSearch
=
$box
.
children
(
'.no-search'
),
...
...
@@ -42,6 +43,25 @@ $searchBox.children('.search-icon').on('touchstart', function() {
$indexSearch
.
submit
();
});
$channelLink
.
on
(
'touchstart'
,
function
()
{
$channelLink
.
css
({
background
:
'#000'
,
color
:
'#fff'
,
borderColor
:
'#fff'
});
$
(
this
).
css
({
background
:
'rgba(255, 255, 255, 0.5)'
,
color
:
'#000'
,
borderColor
:
'#000'
});
}).
on
(
'touchend touchcancel'
,
function
()
{
$
(
this
).
css
({
background
:
'#000'
,
color
:
'#fff'
,
borderColor
:
'#fff'
});
});
$
(
'.index-channel img'
).
on
(
'load error'
,
function
()
{
window
.
rePosFooter
&&
window
.
rePosFooter
();
});
...
...
Please
register
or
login
to post a comment