Merge branch 'develop' into test
Showing
6 changed files
with
14 additions
and
7 deletions
@@ -71,8 +71,8 @@ $('#search').on('touchend', function() { | @@ -71,8 +71,8 @@ $('#search').on('touchend', function() { | ||
71 | 71 | ||
72 | if (historys && historys.length > 0) { | 72 | if (historys && historys.length > 0) { |
73 | historys = historys.split(ranToken); | 73 | historys = historys.split(ranToken); |
74 | - for (i = 0; i < historys.length; i++) { | ||
75 | - history = historys[i]; | 74 | + for (i = historys.length; i > 0; i--) { |
75 | + history = historys[i - 1]; | ||
76 | 76 | ||
77 | if (history === '') { | 77 | if (history === '') { |
78 | continue; | 78 | continue; |
@@ -14,6 +14,9 @@ var recommendSwiper, | @@ -14,6 +14,9 @@ var recommendSwiper, | ||
14 | 14 | ||
15 | if (preferenceUrl) { | 15 | if (preferenceUrl) { |
16 | $.get(preferenceUrl).then(function(html) { | 16 | $.get(preferenceUrl).then(function(html) { |
17 | + if (html.length < 5) { | ||
18 | + $recommendForYou.css('display', 'none'); | ||
19 | + } else { | ||
17 | $recommendForYou.html(html).show(); | 20 | $recommendForYou.html(html).show(); |
18 | if ($('#swiper-recommend').length) { | 21 | if ($('#swiper-recommend').length) { |
19 | recommendSwiper = new Swiper('#swiper-recommend', { | 22 | recommendSwiper = new Swiper('#swiper-recommend', { |
@@ -24,6 +27,7 @@ if (preferenceUrl) { | @@ -24,6 +27,7 @@ if (preferenceUrl) { | ||
24 | watchSlidesVisibility: true | 27 | watchSlidesVisibility: true |
25 | }); | 28 | }); |
26 | } | 29 | } |
30 | + } | ||
27 | 31 | ||
28 | window.rePosFooter(); | 32 | window.rePosFooter(); |
29 | 33 |
@@ -402,6 +402,7 @@ $basicBtnC:#eb0313; | @@ -402,6 +402,7 @@ $basicBtnC:#eb0313; | ||
402 | z-index: 2; | 402 | z-index: 2; |
403 | padding: pxToRem(20px) pxToRem(28px); | 403 | padding: pxToRem(20px) pxToRem(28px); |
404 | text-align: center; | 404 | text-align: center; |
405 | + border-top: 1px solid $borderC; | ||
405 | a { | 406 | a { |
406 | display: inline-block; | 407 | display: inline-block; |
407 | &.num-incart { | 408 | &.num-incart { |
@@ -447,9 +448,9 @@ $basicBtnC:#eb0313; | @@ -447,9 +448,9 @@ $basicBtnC:#eb0313; | ||
447 | } | 448 | } |
448 | } | 449 | } |
449 | } | 450 | } |
450 | - // .recommend-for-you { | ||
451 | - // margin-bottom: pxToRem(30px); | ||
452 | - // } | 451 | + .recommend-for-you{ |
452 | + border-bottom: none; | ||
453 | + } | ||
453 | .yoho-tip{ | 454 | .yoho-tip{ |
454 | top:40%; | 455 | top:40%; |
455 | } | 456 | } |
@@ -779,7 +779,7 @@ class HomeController extends AbstractAction | @@ -779,7 +779,7 @@ class HomeController extends AbstractAction | ||
779 | public function payAction() | 779 | public function payAction() |
780 | { | 780 | { |
781 | // 审判跳转登录页 | 781 | // 审判跳转登录页 |
782 | - $this->auditJumpLogin(); | 782 | + //$this->auditJumpLogin(); |
783 | 783 | ||
784 | $this->setTitle('支付中心'); | 784 | $this->setTitle('支付中心'); |
785 | $this->setNavHeader('支付中心'); | 785 | $this->setNavHeader('支付中心'); |
-
Please register or login to post a comment