Merge branch 'develop' into test
Showing
6 changed files
with
24 additions
and
17 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,15 +14,19 @@ var recommendSwiper, | @@ -14,15 +14,19 @@ var recommendSwiper, | ||
| 14 | 14 | ||
| 15 | if (preferenceUrl) { | 15 | if (preferenceUrl) { |
| 16 | $.get(preferenceUrl).then(function(html) { | 16 | $.get(preferenceUrl).then(function(html) { |
| 17 | - $recommendForYou.html(html).show(); | ||
| 18 | - if ($('#swiper-recommend').length) { | ||
| 19 | - recommendSwiper = new Swiper('#swiper-recommend', { | ||
| 20 | - slidesPerView: 'auto', | ||
| 21 | - grabCursor: true, | ||
| 22 | - slideElement: 'a', | ||
| 23 | - lazyLoading: true, | ||
| 24 | - watchSlidesVisibility: true | ||
| 25 | - }); | 17 | + if (html.length < 5) { |
| 18 | + $recommendForYou.css('display', 'none'); | ||
| 19 | + } else { | ||
| 20 | + $recommendForYou.html(html).show(); | ||
| 21 | + if ($('#swiper-recommend').length) { | ||
| 22 | + recommendSwiper = new Swiper('#swiper-recommend', { | ||
| 23 | + slidesPerView: 'auto', | ||
| 24 | + grabCursor: true, | ||
| 25 | + slideElement: 'a', | ||
| 26 | + lazyLoading: true, | ||
| 27 | + watchSlidesVisibility: true | ||
| 28 | + }); | ||
| 29 | + } | ||
| 26 | } | 30 | } |
| 27 | 31 | ||
| 28 | window.rePosFooter(); | 32 | window.rePosFooter(); |
| @@ -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('支付中心'); |
| @@ -118,7 +118,7 @@ class LoginController extends AbstractAction | @@ -118,7 +118,7 @@ class LoginController extends AbstractAction | ||
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | /* 调用登录接口进行登录 */ | 120 | /* 调用登录接口进行登录 */ |
| 121 | - $data = LoginData::signin($area, $profile, $password); | 121 | + $data = LoginData::signin($area, $profile, $password); |
| 122 | if ($data['code'] != 200 || !isset($data['data']['uid'])) { | 122 | if ($data['code'] != 200 || !isset($data['data']['uid'])) { |
| 123 | break; | 123 | break; |
| 124 | } | 124 | } |
-
Please register or login to post a comment