Authored by lore-w

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

... ... @@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract
* @param string $homeUrl 返回首页的链接
* @return void
*/
protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/')
protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/', $navBtn = false)
{
$header = array();
... ... @@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract
if (!empty($homeUrl)) {
$header['navHome'] = $homeUrl . '?go=1&t=' . time();
}
if ($navBtn) {
$header['navBtn'] = true;
}
$controller = $this->getRequest()->getControllerName();
if ($controller !== 'Home') {
... ...
... ... @@ -301,7 +301,7 @@ class FloorProcess
// 区别多张图与一张图
if (count($data['big_image']) > 1) {
$result['big_image']['list'] = $data['big_image'];
$result['big_image']['big_list'] = $data['big_image'];
unset($data['big_image']);
}
... ...
... ... @@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) {
$this.siblings().hide();
$this.children('ul').show().children('li').show();
$(this).removeClass('highlight');
e.srcEvent.preventDefault();
e.srcEvent.stopPropagation();
});
... ...
... ... @@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) {
if (data.code === 200) {
//删除订单页面刷新
location.href = location.href;
history.go(0);
}
}
});
... ... @@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) {
if (data.code === 200) {
//取消订单页面刷新
location.href = location.href;
history.go(0);
}
}
});
... ...
... ... @@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) {
success: function(data) {
if (data.code === 200) {
$this.toggleClass('liked');
if ('cancel' === opt) {
tip.show('取消收藏成功');
} else if ('ok' === opt) {
tip.show('收藏成功');
}
} else if (data.code === 400) {
location.href = data.data;//未登录跳转登录页
} else {
... ...
... ... @@ -23,7 +23,7 @@
display: inline-block;
max-width: pxToRem(380px);
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
... ... @@ -40,7 +40,7 @@
font-size: pxToRem(40px);
line-height: pxToRem(60px);
text-align: right;
.edit,
.del {
display: inline-block;
... ... @@ -48,6 +48,10 @@
width: pxToRem(60px);
height: pxToRem(60px);
color: #999;
&:hover {
color: #666;
}
}
.edit {
... ... @@ -212,7 +216,7 @@
float: right;
color: #d0d0d0;
}
&.highlight {
background: #eee;
}
... ...
... ... @@ -45,9 +45,6 @@ $basicBtnC:#eb0313;
font-size: pxToRem(24px);
background-color: $tableCellC;
float: left;
&:last-child {
border-bottom: none;
}
&:nth-child(even) {
border-right: none;
}
... ...
... ... @@ -66,12 +66,6 @@
}
}
}
// .material-type {
// width: pxToRem(581px);
// height: pxToRem(99px);
// border-top: 1px solid $borderC;
// padding: pxToRem(17px) 0;
// }
}
.wash-tips{
padding-top:pxToRem(18px);
... ...
... ... @@ -113,8 +113,8 @@
</div>
{{/ enterStore}}
<div id="productDesc"></div>
<!-- {{> product/product-description}} -->
<!-- <div id="productDesc"></div> -->
{{> product/product-description}}
{{> product/recommend-for-you}}
{{#cartInfo}}
... ... @@ -139,5 +139,4 @@
{{/if}}
</div>
{{> layout/footer}}
<div class="bottom-blank"></div>
\ No newline at end of file
{{> layout/footer}}
\ No newline at end of file
... ...
{{> home/floor_header_more}}
<div class="goods-category">
{{# big_image}}
{{#if list}}
{{#if big_list}}
<div class="category-swiper">
<ul class="swiper-wrapper">
{{# list}}
{{# big_list}}
<li class="swiper-slide">
<a href="{{url}}">
<img class="lazy" data-original="{{img}}" alt="{{title}}">
</a>
</li>
{{/ list}}
{{/ big_list}}
</ul>
<div class="swiper-pagination">
<div class="pagination-inner clearfix">
... ...
... ... @@ -52,7 +52,7 @@ class BrandModel
$brand = BrandData::package(self::CODE_TOPPOS_LIFESTYLE, 4);
break;
}
var_dump($brand); exit;
// 模板中的使用JS标识
$result['brandPage'] = true;
// 是否显示app下载浮层标识
... ...
... ... @@ -41,7 +41,6 @@ class BrandController extends AbstractAction
}
// 渲染模板
print_r(Category\BrandModel::getBrandByChannel($channel));
$this->_view->display('index', Category\BrandModel::getBrandByChannel($channel));
}
... ...