Authored by Rock Zhang

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

@@ -18,9 +18,9 @@ class Yohobuy @@ -18,9 +18,9 @@ class Yohobuy
18 { 18 {
19 19
20 /* 正式环境 */ 20 /* 正式环境 */
21 -// const API_URL = 'http://api2.open.yohobuy.com/';  
22 -// const SERVICE_URL = 'http://service.api.yohobuy.com/';  
23 -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; 21 + // const API_URL = 'http://api2.open.yohobuy.com/';
  22 + // const SERVICE_URL = 'http://service.api.yohobuy.com/';
  23 + // const YOHOBUY_URL = 'http://www.yohobuy.com/';
24 24
25 // /* 测试环境 */ 25 // /* 测试环境 */
26 const API_URL = 'http://test2.open.yohobuy.com/'; 26 const API_URL = 'http://test2.open.yohobuy.com/';
@@ -8,7 +8,8 @@ var $ = require('jquery'); @@ -8,7 +8,8 @@ var $ = require('jquery');
8 var $searchBox = $('.search-box'), 8 var $searchBox = $('.search-box'),
9 $box = $('.box'), 9 $box = $('.box'),
10 $indexSearch = $('.index-search'), 10 $indexSearch = $('.index-search'),
11 - $indexLogo = $('.index-logo'); 11 + $indexLogo = $('.index-logo'),
  12 + $channelLink = $('.index-channel a');
12 13
13 var $search = $searchBox.children('input[type="text"]'), 14 var $search = $searchBox.children('input[type="text"]'),
14 $cancelSearch = $box.children('.no-search'), 15 $cancelSearch = $box.children('.no-search'),
@@ -42,6 +43,25 @@ $searchBox.children('.search-icon').on('touchstart', function() { @@ -42,6 +43,25 @@ $searchBox.children('.search-icon').on('touchstart', function() {
42 $indexSearch.submit(); 43 $indexSearch.submit();
43 }); 44 });
44 45
  46 +$channelLink.on('touchstart', function() {
  47 + $channelLink.css({
  48 + background: '#000',
  49 + color: '#fff',
  50 + borderColor: '#fff'
  51 + });
  52 + $(this).css({
  53 + background: 'rgba(255, 255, 255, 0.5)',
  54 + color: '#000',
  55 + borderColor: '#000'
  56 + });
  57 +}).on('touchend touchcancel', function() {
  58 + $(this).css({
  59 + background: '#000',
  60 + color: '#fff',
  61 + borderColor: '#fff'
  62 + });
  63 +});
  64 +
45 $('.index-channel img').on('load error', function() { 65 $('.index-channel img').on('load error', function() {
46 window.rePosFooter && window.rePosFooter(); 66 window.rePosFooter && window.rePosFooter();
47 }); 67 });