Authored by Rock Zhang

Merge branch 'develop' into test

@@ -95,11 +95,15 @@ function getShoppingKey() { @@ -95,11 +95,15 @@ function getShoppingKey() {
95 95
96 //根据页面内容重新设置通用底部的显示 96 //根据页面内容重新设置通用底部的显示
97 function rePosFooter() { 97 function rePosFooter() {
  98 + var winH;
  99 +
98 if ($footer.length === 0) { 100 if ($footer.length === 0) {
99 return; 101 return;
100 } 102 }
101 103
102 - if ($('body').height() <= $(window).height() - parseInt($footer.css('height'), 0)) { 104 + winH = Math.min($(window).height(), window.screen.availHeight);
  105 +
  106 + if ($('body').height() <= winH - parseInt($footer.css('height'), 0)) {
103 $footer.addClass('bottom'); 107 $footer.addClass('bottom');
104 } else { 108 } else {
105 $footer.removeClass('bottom'); 109 $footer.removeClass('bottom');
@@ -31,6 +31,8 @@ chHammer.on('tap', function() { @@ -31,6 +31,8 @@ chHammer.on('tap', function() {
31 localStorage.removeItem('historys'); 31 localStorage.removeItem('historys');
32 32
33 $history.html(''); 33 $history.html('');
  34 +
  35 + window.rePosFooter();
34 }); 36 });
35 37
36 $input.on('input', function() { 38 $input.on('input', function() {
@@ -78,6 +80,8 @@ $('#search').on('touchend', function() { @@ -78,6 +80,8 @@ $('#search').on('touchend', function() {
78 80
79 $history.html(html); 81 $history.html(html);
80 $clearHistory.removeClass('hide'); 82 $clearHistory.removeClass('hide');
  83 +
  84 + window.rePosFooter();
81 } 85 }
82 } 86 }
83 }()); 87 }());
@@ -103,7 +103,7 @@ function hideWeChatPay() { @@ -103,7 +103,7 @@ function hideWeChatPay() {
103 var $payApps = $('.app'); 103 var $payApps = $('.app');
104 104
105 $payApps.each(function(idx, app) { 105 $payApps.each(function(idx, app) {
106 - if ($(app).attr('id') === 'weixin') { 106 + if ($(app).parent().attr('id') === 'weixin') {
107 $(app).parent().css('display', 'none'); 107 $(app).parent().css('display', 'none');
108 return false; 108 return false;
109 } 109 }
@@ -84,7 +84,7 @@ @@ -84,7 +84,7 @@
84 display: block; 84 display: block;
85 color: #b0b0b0; 85 color: #b0b0b0;
86 font-size: 24rem / $pxConvertRem; 86 font-size: 24rem / $pxConvertRem;
87 - margin: 30rem / $pxConvertRem 0 110rem / $pxConvertRem; 87 + margin: 30rem / $pxConvertRem 0 80rem / $pxConvertRem;
88 } 88 }
89 89
90 .walk-way { 90 .walk-way {
@@ -185,6 +185,12 @@ @@ -185,6 +185,12 @@
185 .name { 185 .name {
186 font-size: 28rem / $pxConvertRem; 186 font-size: 28rem / $pxConvertRem;
187 max-width: 70%; 187 max-width: 70%;
  188 + text-overflow: -o-ellipsis-lastline;
  189 + overflow: hidden;
  190 + text-overflow: ellipsis;
  191 + display: -webkit-box;
  192 + -webkit-line-clamp: 2;
  193 + -webkit-box-orient: vertical;
188 } 194 }
189 195
190 .row:nth-child(2) { 196 .row:nth-child(2) {
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 > div { 36 > div {
37 width: 60rem / $pxConvertRem; 37 width: 60rem / $pxConvertRem;
38 height: 60rem / $pxConvertRem; 38 height: 60rem / $pxConvertRem;
39 - background-image: url(http://localhost:8000/img/layout/pay-icon.png); 39 + background-image: image-url("/img/layout/pay-icon.png");
40 background-size: 90%; 40 background-size: 90%;
41 background-position-y: 8rem / $pxConvertRem; 41 background-position-y: 8rem / $pxConvertRem;
42 background-position-x: center; 42 background-position-x: center;
@@ -20,10 +20,10 @@ @@ -20,10 +20,10 @@
20 display: block; 20 display: block;
21 } 21 }
22 span{ 22 span{
23 - float: left;  
24 overflow: hidden; 23 overflow: hidden;
25 } 24 }
26 .user-name { 25 .user-name {
  26 + float: left;
27 max-width: 240rem / $pxConvertRem; 27 max-width: 240rem / $pxConvertRem;
28 text-overflow:ellipsis; 28 text-overflow:ellipsis;
29 white-space:nowrap; 29 white-space:nowrap;
@@ -32,6 +32,7 @@ @@ -32,6 +32,7 @@
32 } 32 }
33 33
34 .vip-icon { 34 .vip-icon {
  35 + float: left;
35 width: pxToRem(72px); 36 width: pxToRem(72px);
36 height: pxToRem(32px); 37 height: pxToRem(32px);
37 line-height: 36rem / $pxConvertRem; 38 line-height: 36rem / $pxConvertRem;