Authored by hf

Merge branch 'develop'

... ... @@ -119,7 +119,7 @@ function rePosFooter() {
//未登录
$op.prepend(
'<a href="/signin.html">登录</a>' +
'<a href="/signin.html?refer=' + location.href + '">登录</a>' +
'<span class="sep-line">|</span>' +
'<a href="/reg.html">注册</a>'
);
... ...
.hot-brands {
background: #f0f0f0;
border-bottom: 1px solid #e0e0e0;
background: #fff;
.floor-header {
background: #f0f0f0;
margin: 0;
padding: 29rem / $pxConvertRem 30rem / $pxConvertRem 0;
border: 0;
h2 {
border: 1px solid #e0e0e0;
background: #fff;
border-bottom: 0;
}
}
a {
display: block;
... ... @@ -8,10 +21,6 @@
height: 100%;
}
> * {
background: #fff;
}
.brand {
float: left;
width: 158rem / $pxConvertRem;
... ...
... ... @@ -71,7 +71,13 @@
background: white;
border-radius: 5px;
margin-top: -13px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.5);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.5);
&:link,
&:visited,
&:hover,
&:actived {
color: #000;
}
}
.circle-rightbottom {
... ...
... ... @@ -50,7 +50,7 @@
top: 20rem / $pxConvertRem;
width: 352rem / $pxConvertRem;
height: 56rem / $pxConvertRem;
padding-right: 40rem / $pxConvertRem;
padding-right: 80rem / $pxConvertRem;
z-index: 1;
transition: width 400ms;
box-sizing: border-box;
... ... @@ -59,7 +59,7 @@
}
input {
float: left;
width: 100%;
width: 96%;
font-size: 28rem / $pxConvertRem;
padding: 10rem / $pxConvertRem;
color: #999;
... ...
... ... @@ -39,7 +39,7 @@
border: none;
background: transparent;
color: #b2b2b2;
font-size: 32rem / $pxConvertRem;
font-size: 30rem / $pxConvertRem;
line-height: 56rem / $pxConvertRem;
}
}
... ...
... ... @@ -13,7 +13,7 @@
{{/if}}
{{#if testEnv}}
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index-debug.js"></script>
{{/if}}
{{#if devEnv}}
<script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
... ...
{{# goodList}}
{{# search}}
<div id="search-input" class="search-input">
<form id="search-form" action={{url}} method="get">
<form id="search-form" action="{{url}}" method="get">
<i class="search-icon iconfont">&#xe60f;</i>
<input type="text" value="{{default}}" name="query">
<i class="clear-input iconfont hide">&#xe61a;</i>
... ...
... ... @@ -246,6 +246,7 @@ class SearchController extends AbstractAction
// $data = Product\ListModel::getClassData($condition);
$data = Product\SearchModel::getSearchData($condition);
} while (false);
if (empty($data['new'])) {
... ...
... ... @@ -49,7 +49,7 @@ class SearchModel
// 处理返回的数据
if (isset($listData['code']) && $listData['code'] === 200) {
$result = ListProcess::getListData($listData['data'], false);
}
}
if (USE_CACHE) {
// 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
... ...
... ... @@ -159,7 +159,7 @@ class PlusstarController extends AbstractAction
// 相关文章
foreach ($brandInfo['getArticleByBrand'] as $value) {
$data['ps']['infos'][] = Helpers::formatArticle($value, false, false, false, $uid);
$data['ps']['infos'][] = Helpers::formatArticle($value, false, $isApp, false, $uid);
}
// 设置头部信息
... ... @@ -172,7 +172,7 @@ class PlusstarController extends AbstractAction
$data['shareLink'] = $defaultUrl;
$data['shareTitle'] = $data['ps']['name'];
$data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 800) ? mb_substr($data['ps']['intro'], 0, 800, 'utf-8') . '...' : $data['ps']['intro'];
$data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 120) ? mb_substr($data['ps']['intro'], 0, 120, 'utf-8') . '...' : $data['ps']['intro'];
$data['shareImg'] = $data['ps']['logo'];
$brandInfo = array();
... ...