Authored by unknown

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

... ... @@ -7,6 +7,7 @@ use LibModels\Web\Product\BrandData;
use LibModels\Web\Product\SearchData;
use Api\Yohobuy;
use Api\Sign;
use Index\HomeModel;
/**
* 搜索辅助类
*/
... ... @@ -31,7 +32,7 @@ class HelperSearch
private static function setListNav()
{
$options = self::$options;
$cookieChannel = isset($_COOKIE['_Channel']) ? $_COOKIE['_Channel'] : 'boys';
$channel = HomeModel::getSwitchChannel();
if (isset($options['brandName']) && !empty($options['brandName'])) {
$initNav = $options['brandNameEn'] . $options['brandNameCn'];
}else{
... ... @@ -39,7 +40,7 @@ class HelperSearch
}
self::$listNav[0] = array(
'href' => '',
'name' => strtoupper($cookieChannel).'首页'
'name' => strtoupper($channel).'首页'
);
self::$listNav[1] = array(
'href' => '',
... ...
... ... @@ -219,9 +219,9 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
$(this).removeClass('highlight');
});
// $('.nav-home').on('touchstart', function() {
// $('.homebuttom').toggleClass('none');
// });
$('.nav-home').on('touchstart', function() {
$('.homebuttom').toggleClass('none');
});
(function() {
var lastTime = 0,
... ...
... ... @@ -144,6 +144,9 @@
overflow: hidden;
float: left;
text-align: center;
a{
color: #fff;
}
i{
width: 100%;
height: 40%;
... ...
... ... @@ -97,7 +97,7 @@
float: left;
color: #fff;
font-size: pxToRem(28px);
width: pxToRem(320px);
width: pxToRem(212px);
// width: pxToRem(213px); 三栏宽度
&.highlight {
... ...
... ... @@ -28,14 +28,10 @@
{{#isLogin}}{{brand_favorite_total}}{{/isLogin}}
<p>收藏的品牌</p>
</a>
{{!
<a class="link-item tap-hightlight" href="/home/record">
<!-- product_browse -->
{{#isLogin}}{{product_browse}}{{/isLogin}}
<p>浏览记录</p>
</a>
}}
</div>
<div class="my-order">
<a class="order-title" href="/home/orders">
... ...
... ... @@ -38,4 +38,13 @@
{{/ logisticDetail}}
</div>
</div>
<div class="banner">
{{#banner}}
<a href="{{url}}">
<img src="{{img}}" alt="img">
</a>
{{/banner}}
</div>
{{> home/maybe_like}}
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -4,7 +4,7 @@
<a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back">&#xe610;</a>
{{/navBack}}
{{#navHome}}
<a href="{{.}}" class="iconfont nav-home">&#xe611;</a>
<span class="iconfont nav-home">&#xe62d;</span>
{{/navHome}}
{{#currencyPage}}
<a href="/home/helpDetail?code=20151230-102233&caption=YOHO币介绍" class="iconfont nav-home">&#xe639;</a>
... ... @@ -18,32 +18,34 @@
{{#navTitle}}
<p class="nav-title">{{.}}</p>
{{/navTitle}}
{{# navBtn}}
<span class="nav-btn">{{.}}</span>
{{!--
<i class="iconfont nav-home">&#xe638;</i>
<div class="homebuttom none">
<ul>
<li>
</header>
<div class="homebuttom none">
<ul>
<li>
<a href="/">
<i class="iconfont">&#xe62a;</i>
<span>首页</span>
</li>
<li>
</a>
</li>
<li>
<a href="cate">
<i class="iconfont">&#xe62d;</i>
<span>分类</span>
</li>
<li>
</a>
</li>
<li>
<a href="cart/index/index">
<i class="iconfont">&#xe62c;</i>
<span>购物车</span>
</li>
<li>
</a>
</li>
<li>
<a href="/home">
<i class="iconfont">&#xe62b;</i>
<span>我的</span>
</li>
</ul>
</div>
--}}
{{/ navBtn}}
</header>
</a>
</li>
</ul>
</div>
{{/pageHeader}}
... ...
... ... @@ -11,7 +11,7 @@ $('#brand-favor').on('click', function() {
uid = window.getUid();
if (!uid) {
location.href = '/signin.html?refer=' + location.href;
location.href = '/signin.html?refer=' + encodeURIComponent(location.href);
return;
}
... ...
... ... @@ -174,6 +174,11 @@ $(document).on('hover', '.good-select-color li', function() {
$goodInfoMain.on('click', '.col-btn', function() {
var $this = $(this);
if (!window.getUid()) {
location.href = '/signin.html?refer=' + encodeURIComponent(location.href);
return;
}
$.ajax({
type: 'POST',
url: '/product/list/changeFavorite',
... ...