Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
6 changed files
with
15 additions
and
7 deletions
@@ -71,7 +71,13 @@ | @@ -71,7 +71,13 @@ | ||
71 | background: white; | 71 | background: white; |
72 | border-radius: 5px; | 72 | border-radius: 5px; |
73 | margin-top: -13px; | 73 | margin-top: -13px; |
74 | - -webkit-tap-highlight-color: rgba(0, 0, 0, 0.5); | 74 | + -webkit-tap-highlight-color: rgba(0, 0, 0, 0.5); |
75 | + &:link, | ||
76 | + &:visited, | ||
77 | + &:hover, | ||
78 | + &:actived { | ||
79 | + color: #000; | ||
80 | + } | ||
75 | } | 81 | } |
76 | 82 | ||
77 | .circle-rightbottom { | 83 | .circle-rightbottom { |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | border: none; | 39 | border: none; |
40 | background: transparent; | 40 | background: transparent; |
41 | color: #b2b2b2; | 41 | color: #b2b2b2; |
42 | - font-size: 32rem / $pxConvertRem; | 42 | + font-size: 30rem / $pxConvertRem; |
43 | line-height: 56rem / $pxConvertRem; | 43 | line-height: 56rem / $pxConvertRem; |
44 | } | 44 | } |
45 | } | 45 | } |
1 | {{# goodList}} | 1 | {{# goodList}} |
2 | {{# search}} | 2 | {{# search}} |
3 | <div id="search-input" class="search-input"> | 3 | <div id="search-input" class="search-input"> |
4 | - <form id="search-form" action={{url}} method="get"> | 4 | + <form id="search-form" action="{{url}}" method="get"> |
5 | <i class="search-icon iconfont"></i> | 5 | <i class="search-icon iconfont"></i> |
6 | - <input type="text" value={{default}} name="query"> | 6 | + <input type="text" value="{{default}}" name="query"> |
7 | + <input type="hidden" value="search" name="search"> | ||
7 | <i class="clear-input iconfont hide"></i> | 8 | <i class="clear-input iconfont hide"></i> |
8 | <button id="search" class="search" type="submit">搜索</button> | 9 | <button id="search" class="search" type="submit">搜索</button> |
9 | </form> | 10 | </form> |
@@ -246,6 +246,7 @@ class SearchController extends AbstractAction | @@ -246,6 +246,7 @@ class SearchController extends AbstractAction | ||
246 | // $data = Product\ListModel::getClassData($condition); | 246 | // $data = Product\ListModel::getClassData($condition); |
247 | 247 | ||
248 | $data = Product\SearchModel::getSearchData($condition); | 248 | $data = Product\SearchModel::getSearchData($condition); |
249 | + | ||
249 | } while (false); | 250 | } while (false); |
250 | 251 | ||
251 | if (empty($data['new'])) { | 252 | if (empty($data['new'])) { |
@@ -49,7 +49,7 @@ class SearchModel | @@ -49,7 +49,7 @@ class SearchModel | ||
49 | // 处理返回的数据 | 49 | // 处理返回的数据 |
50 | if (isset($listData['code']) && $listData['code'] === 200) { | 50 | if (isset($listData['code']) && $listData['code'] === 200) { |
51 | $result = ListProcess::getListData($listData['data'], false); | 51 | $result = ListProcess::getListData($listData['data'], false); |
52 | - } | 52 | + } |
53 | 53 | ||
54 | if (USE_CACHE) { | 54 | if (USE_CACHE) { |
55 | // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据. | 55 | // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据. |
@@ -159,7 +159,7 @@ class PlusstarController extends AbstractAction | @@ -159,7 +159,7 @@ class PlusstarController extends AbstractAction | ||
159 | 159 | ||
160 | // 相关文章 | 160 | // 相关文章 |
161 | foreach ($brandInfo['getArticleByBrand'] as $value) { | 161 | foreach ($brandInfo['getArticleByBrand'] as $value) { |
162 | - $data['ps']['infos'][] = Helpers::formatArticle($value, false, false, false, $uid); | 162 | + $data['ps']['infos'][] = Helpers::formatArticle($value, false, $isApp, false, $uid); |
163 | } | 163 | } |
164 | 164 | ||
165 | // 设置头部信息 | 165 | // 设置头部信息 |
@@ -172,7 +172,7 @@ class PlusstarController extends AbstractAction | @@ -172,7 +172,7 @@ class PlusstarController extends AbstractAction | ||
172 | 172 | ||
173 | $data['shareLink'] = $defaultUrl; | 173 | $data['shareLink'] = $defaultUrl; |
174 | $data['shareTitle'] = $data['ps']['name']; | 174 | $data['shareTitle'] = $data['ps']['name']; |
175 | - $data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 800) ? mb_substr($data['ps']['intro'], 0, 800, 'utf-8') . '...' : $data['ps']['intro']; | 175 | + $data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 120) ? mb_substr($data['ps']['intro'], 0, 120, 'utf-8') . '...' : $data['ps']['intro']; |
176 | $data['shareImg'] = $data['ps']['logo']; | 176 | $data['shareImg'] = $data['ps']['logo']; |
177 | 177 | ||
178 | $brandInfo = array(); | 178 | $brandInfo = array(); |
-
Please register or login to post a comment