Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
12 changed files
with
24 additions
and
21 deletions
@@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract | @@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract | ||
369 | * @param string $homeUrl 返回首页的链接 | 369 | * @param string $homeUrl 返回首页的链接 |
370 | * @return void | 370 | * @return void |
371 | */ | 371 | */ |
372 | - protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/') | 372 | + protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/', $navBtn = false) |
373 | { | 373 | { |
374 | $header = array(); | 374 | $header = array(); |
375 | 375 | ||
@@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract | @@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract | ||
387 | if (!empty($homeUrl)) { | 387 | if (!empty($homeUrl)) { |
388 | $header['navHome'] = $homeUrl . '?go=1&t=' . time(); | 388 | $header['navHome'] = $homeUrl . '?go=1&t=' . time(); |
389 | } | 389 | } |
390 | + if ($navBtn) { | ||
391 | + $header['navBtn'] = true; | ||
392 | + } | ||
390 | 393 | ||
391 | $controller = $this->getRequest()->getControllerName(); | 394 | $controller = $this->getRequest()->getControllerName(); |
392 | if ($controller !== 'Home') { | 395 | if ($controller !== 'Home') { |
@@ -301,7 +301,7 @@ class FloorProcess | @@ -301,7 +301,7 @@ class FloorProcess | ||
301 | 301 | ||
302 | // 区别多张图与一张图 | 302 | // 区别多张图与一张图 |
303 | if (count($data['big_image']) > 1) { | 303 | if (count($data['big_image']) > 1) { |
304 | - $result['big_image']['list'] = $data['big_image']; | 304 | + $result['big_image']['big_list'] = $data['big_image']; |
305 | unset($data['big_image']); | 305 | unset($data['big_image']); |
306 | } | 306 | } |
307 | 307 |
@@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) { | @@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) { | ||
131 | $this.siblings().hide(); | 131 | $this.siblings().hide(); |
132 | $this.children('ul').show().children('li').show(); | 132 | $this.children('ul').show().children('li').show(); |
133 | 133 | ||
134 | + $(this).removeClass('highlight'); | ||
134 | e.srcEvent.preventDefault(); | 135 | e.srcEvent.preventDefault(); |
135 | e.srcEvent.stopPropagation(); | 136 | e.srcEvent.stopPropagation(); |
136 | }); | 137 | }); |
@@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) { | @@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) { | ||
129 | if (data.code === 200) { | 129 | if (data.code === 200) { |
130 | 130 | ||
131 | //删除订单页面刷新 | 131 | //删除订单页面刷新 |
132 | - location.href = location.href; | 132 | + history.go(0); |
133 | } | 133 | } |
134 | } | 134 | } |
135 | }); | 135 | }); |
@@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) { | @@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) { | ||
154 | if (data.code === 200) { | 154 | if (data.code === 200) { |
155 | 155 | ||
156 | //取消订单页面刷新 | 156 | //取消订单页面刷新 |
157 | - location.href = location.href; | 157 | + history.go(0); |
158 | } | 158 | } |
159 | } | 159 | } |
160 | }); | 160 | }); |
@@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) { | @@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) { | ||
37 | success: function(data) { | 37 | success: function(data) { |
38 | if (data.code === 200) { | 38 | if (data.code === 200) { |
39 | $this.toggleClass('liked'); | 39 | $this.toggleClass('liked'); |
40 | + | ||
41 | + if ('cancel' === opt) { | ||
42 | + tip.show('取消收藏成功'); | ||
43 | + } else if ('ok' === opt) { | ||
44 | + tip.show('收藏成功'); | ||
45 | + } | ||
40 | } else if (data.code === 400) { | 46 | } else if (data.code === 400) { |
41 | location.href = data.data;//未登录跳转登录页 | 47 | location.href = data.data;//未登录跳转登录页 |
42 | } else { | 48 | } else { |
@@ -45,9 +45,6 @@ $basicBtnC:#eb0313; | @@ -45,9 +45,6 @@ $basicBtnC:#eb0313; | ||
45 | font-size: pxToRem(24px); | 45 | font-size: pxToRem(24px); |
46 | background-color: $tableCellC; | 46 | background-color: $tableCellC; |
47 | float: left; | 47 | float: left; |
48 | - &:last-child { | ||
49 | - border-bottom: none; | ||
50 | - } | ||
51 | &:nth-child(even) { | 48 | &:nth-child(even) { |
52 | border-right: none; | 49 | border-right: none; |
53 | } | 50 | } |
@@ -66,12 +66,6 @@ | @@ -66,12 +66,6 @@ | ||
66 | } | 66 | } |
67 | } | 67 | } |
68 | } | 68 | } |
69 | - // .material-type { | ||
70 | - // width: pxToRem(581px); | ||
71 | - // height: pxToRem(99px); | ||
72 | - // border-top: 1px solid $borderC; | ||
73 | - // padding: pxToRem(17px) 0; | ||
74 | - // } | ||
75 | } | 69 | } |
76 | .wash-tips{ | 70 | .wash-tips{ |
77 | padding-top:pxToRem(18px); | 71 | padding-top:pxToRem(18px); |
@@ -113,8 +113,8 @@ | @@ -113,8 +113,8 @@ | ||
113 | </div> | 113 | </div> |
114 | {{/ enterStore}} | 114 | {{/ enterStore}} |
115 | 115 | ||
116 | - <div id="productDesc"></div> | ||
117 | - <!-- {{> product/product-description}} --> | 116 | + <!-- <div id="productDesc"></div> --> |
117 | + {{> product/product-description}} | ||
118 | {{> product/recommend-for-you}} | 118 | {{> product/recommend-for-you}} |
119 | 119 | ||
120 | {{#cartInfo}} | 120 | {{#cartInfo}} |
@@ -140,4 +140,3 @@ | @@ -140,4 +140,3 @@ | ||
140 | 140 | ||
141 | </div> | 141 | </div> |
142 | {{> layout/footer}} | 142 | {{> layout/footer}} |
143 | -<div class="bottom-blank"></div> |
1 | {{> home/floor_header_more}} | 1 | {{> home/floor_header_more}} |
2 | <div class="goods-category"> | 2 | <div class="goods-category"> |
3 | {{# big_image}} | 3 | {{# big_image}} |
4 | - {{#if list}} | 4 | + {{#if big_list}} |
5 | <div class="category-swiper"> | 5 | <div class="category-swiper"> |
6 | <ul class="swiper-wrapper"> | 6 | <ul class="swiper-wrapper"> |
7 | - {{# list}} | 7 | + {{# big_list}} |
8 | <li class="swiper-slide"> | 8 | <li class="swiper-slide"> |
9 | <a href="{{url}}"> | 9 | <a href="{{url}}"> |
10 | <img class="lazy" data-original="{{img}}" alt="{{title}}"> | 10 | <img class="lazy" data-original="{{img}}" alt="{{title}}"> |
11 | </a> | 11 | </a> |
12 | </li> | 12 | </li> |
13 | - {{/ list}} | 13 | + {{/ big_list}} |
14 | </ul> | 14 | </ul> |
15 | <div class="swiper-pagination"> | 15 | <div class="swiper-pagination"> |
16 | <div class="pagination-inner clearfix"> | 16 | <div class="pagination-inner clearfix"> |
@@ -52,7 +52,7 @@ class BrandModel | @@ -52,7 +52,7 @@ class BrandModel | ||
52 | $brand = BrandData::package(self::CODE_TOPPOS_LIFESTYLE, 4); | 52 | $brand = BrandData::package(self::CODE_TOPPOS_LIFESTYLE, 4); |
53 | break; | 53 | break; |
54 | } | 54 | } |
55 | - var_dump($brand); exit; | 55 | + |
56 | // 模板中的使用JS标识 | 56 | // 模板中的使用JS标识 |
57 | $result['brandPage'] = true; | 57 | $result['brandPage'] = true; |
58 | // 是否显示app下载浮层标识 | 58 | // 是否显示app下载浮层标识 |
@@ -41,7 +41,6 @@ class BrandController extends AbstractAction | @@ -41,7 +41,6 @@ class BrandController extends AbstractAction | ||
41 | } | 41 | } |
42 | 42 | ||
43 | // 渲染模板 | 43 | // 渲染模板 |
44 | - print_r(Category\BrandModel::getBrandByChannel($channel)); | ||
45 | $this->_view->display('index', Category\BrandModel::getBrandByChannel($channel)); | 44 | $this->_view->display('index', Category\BrandModel::getBrandByChannel($channel)); |
46 | } | 45 | } |
47 | 46 |
-
Please register or login to post a comment