Authored by ccbikai

通用底部登录位置 返回顶部JS

@@ -17,10 +17,10 @@ use Plugin\Cache; @@ -17,10 +17,10 @@ use Plugin\Cache;
17 class Yohobuy 17 class Yohobuy
18 { 18 {
19 19
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/'; 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/';
24 24
25 /* 测试环境 */ 25 /* 测试环境 */
26 const API_URL = 'http://test2.open.yohobuy.com/'; 26 const API_URL = 'http://test2.open.yohobuy.com/';
@@ -135,6 +135,10 @@ function rePosFooter() { @@ -135,6 +135,10 @@ function rePosFooter() {
135 ); 135 );
136 } 136 }
137 137
  138 + $op.find('.back-to-top').on('touchend', function() {
  139 + $(window).scrollTop(0);
  140 + return false;
  141 + });
138 $footer.removeClass('hide'); 142 $footer.removeClass('hide');
139 }()); 143 }());
140 144
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 4
5 .op-row { 5 .op-row {
6 position: relative; 6 position: relative;
7 - padding: 0 30px; 7 + padding: 0 15px;
8 height: 60px; 8 height: 60px;
9 line-height: 60px; 9 line-height: 60px;
10 10
@@ -66,7 +66,7 @@ class BrandModel @@ -66,7 +66,7 @@ class BrandModel
66 $build = array(); 66 $build = array();
67 foreach ($brand['brandTop'][0]['data'] as $value) { 67 foreach ($brand['brandTop'][0]['data'] as $value) {
68 $build['url'] = Helpers::getFilterUrl($value['url']); 68 $build['url'] = Helpers::getFilterUrl($value['url']);
69 - $build['img'] = Helpers::getImageUrl($value['src'], 640, 300); 69 + $build['img'] = Helpers::getImageUrl($value['src'], 640, 310);
70 $build['title'] = $value['title']; 70 $build['title'] = $value['title'];
71 $result['bannerTop']['list'][] = $build; 71 $result['bannerTop']['list'][] = $build;
72 } 72 }