Authored by whb

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

@@ -22,8 +22,8 @@ class Yohobuy @@ -22,8 +22,8 @@ class Yohobuy
22 // const API_URL2 = 'http://api.open.yohobuy.com/'; 22 // const API_URL2 = 'http://api.open.yohobuy.com/';
23 // const SERVICE_URL = 'http://service.api.yohobuy.com/'; 23 // const SERVICE_URL = 'http://service.api.yohobuy.com/';
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 -  
26 - // const API_URL = 'http://apih5.yoho.cn/'; 25 +
  26 +// const API_URL = 'http://apih5.yoho.cn/';
27 // const API_URL2 = 'http://apih5.yoho.cn/'; 27 // const API_URL2 = 'http://apih5.yoho.cn/';
28 // const SERVICE_URL = 'http://serviceh5.yoho.cn/'; 28 // const SERVICE_URL = 'http://serviceh5.yoho.cn/';
29 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 29 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
@@ -45,7 +45,7 @@ class Yohobuy @@ -45,7 +45,7 @@ class Yohobuy
45 45
46 /* PC重构地址 */ 46 /* PC重构地址 */
47 // const API_URL = 'http://test.open.yohobuy.com/'; 47 // const API_URL = 'http://test.open.yohobuy.com/';
48 -// const SERVICE_URL = 'http://test.service.api.yohobuy.com/'; 48 +// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
49 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 49 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
50 // const API_OLD = 'http://api2.open.yohobuy.com/'; 50 // const API_OLD = 'http://api2.open.yohobuy.com/';
51 51
@@ -72,9 +72,9 @@ class Yohobuy @@ -72,9 +72,9 @@ class Yohobuy
72 } 72 }
73 // 苹果IPAD 73 // 苹果IPAD
74 elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) { 74 elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
75 - 75 +
76 return 'ipad'; 76 return 'ipad';
77 - } 77 + }
78 elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) { 78 elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'android')) {
79 return 'android'; 79 return 'android';
80 } 80 }
@@ -179,7 +179,7 @@ class Yohobuy @@ -179,7 +179,7 @@ class Yohobuy
179 if (!$returnJson && !empty($result)) { 179 if (!$returnJson && !empty($result)) {
180 $result = json_decode($result, true); 180 $result = json_decode($result, true);
181 } 181 }
182 - 182 +
183 curl_close($ch); 183 curl_close($ch);
184 $data = array(); 184 $data = array();
185 185
@@ -9,12 +9,12 @@ var $ = require('jquery'), @@ -9,12 +9,12 @@ var $ = require('jquery'),
9 9
10 var commentsNum,consultsNum; 10 var commentsNum,consultsNum;
11 11
12 -var consultFooterEle = $('.consult-content-footer')[0],  
13 - consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),  
14 -  
15 - navtabEle = document.getElementById('nav-tab'), 12 +var navtabEle = document.getElementById('nav-tab'),
16 navtabHammer = navtabEle && new Hammer(navtabEle), 13 navtabHammer = navtabEle && new Hammer(navtabEle),
17 14
  15 + // consultFooterEle = $('.consult-content-footer')[0],
  16 + // consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),
  17 +
18 gotoConsultEle = document.getElementById('goto-consult'), 18 gotoConsultEle = document.getElementById('goto-consult'),
19 gotoConsultHammer = gotoConsultEle && new Hammer(gotoConsultEle), 19 gotoConsultHammer = gotoConsultEle && new Hammer(gotoConsultEle),
20 20
@@ -70,11 +70,11 @@ if (navtabHammer) { @@ -70,11 +70,11 @@ if (navtabHammer) {
70 }); 70 });
71 } 71 }
72 72
73 -if (consultFooterHammer) {  
74 - consultFooterHammer.on('tap', function() {  
75 - location.href = $(consultFooterEle).data('href');  
76 - });  
77 -} 73 +// if (consultFooterHammer) {
  74 +// consultFooterHammer.on('tap', function() {
  75 +// location.href = $(consultFooterEle).data('href');
  76 +// });
  77 +// }
78 78
79 if (gotoConsultHammer) { 79 if (gotoConsultHammer) {
80 gotoConsultHammer.on('tap', function() { 80 gotoConsultHammer.on('tap', function() {