Authored by hf

Merge branch 'develop'

@@ -119,7 +119,7 @@ function rePosFooter() { @@ -119,7 +119,7 @@ function rePosFooter() {
119 119
120 //未登录 120 //未登录
121 $op.prepend( 121 $op.prepend(
122 - '<a href="/signin.html">登录</a>' + 122 + '<a href="/signin.html?refer=' + location.href + '">登录</a>' +
123 '<span class="sep-line">|</span>' + 123 '<span class="sep-line">|</span>' +
124 '<a href="/reg.html">注册</a>' 124 '<a href="/reg.html">注册</a>'
125 ); 125 );
1 .hot-brands { 1 .hot-brands {
2 - background: #f0f0f0;  
3 border-bottom: 1px solid #e0e0e0; 2 border-bottom: 1px solid #e0e0e0;
  3 + background: #fff;
  4 +
  5 + .floor-header {
  6 + background: #f0f0f0;
  7 + margin: 0;
  8 + padding: 29rem / $pxConvertRem 30rem / $pxConvertRem 0;
  9 + border: 0;
  10 +
  11 + h2 {
  12 + border: 1px solid #e0e0e0;
  13 + background: #fff;
  14 + border-bottom: 0;
  15 + }
  16 + }
4 17
5 a { 18 a {
6 display: block; 19 display: block;
@@ -8,10 +21,6 @@ @@ -8,10 +21,6 @@
8 height: 100%; 21 height: 100%;
9 } 22 }
10 23
11 - > * {  
12 - background: #fff;  
13 - }  
14 -  
15 .brand { 24 .brand {
16 float: left; 25 float: left;
17 width: 158rem / $pxConvertRem; 26 width: 158rem / $pxConvertRem;
@@ -72,6 +72,12 @@ @@ -72,6 +72,12 @@
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 {
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 top: 20rem / $pxConvertRem; 50 top: 20rem / $pxConvertRem;
51 width: 352rem / $pxConvertRem; 51 width: 352rem / $pxConvertRem;
52 height: 56rem / $pxConvertRem; 52 height: 56rem / $pxConvertRem;
53 - padding-right: 40rem / $pxConvertRem; 53 + padding-right: 80rem / $pxConvertRem;
54 z-index: 1; 54 z-index: 1;
55 transition: width 400ms; 55 transition: width 400ms;
56 box-sizing: border-box; 56 box-sizing: border-box;
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 } 59 }
60 input { 60 input {
61 float: left; 61 float: left;
62 - width: 100%; 62 + width: 96%;
63 font-size: 28rem / $pxConvertRem; 63 font-size: 28rem / $pxConvertRem;
64 padding: 10rem / $pxConvertRem; 64 padding: 10rem / $pxConvertRem;
65 color: #999; 65 color: #999;
@@ -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 }
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 {{/if}} 13 {{/if}}
14 {{#if testEnv}} 14 {{#if testEnv}}
15 <script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"></script> 15 <script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"></script>
16 -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index.js"></script> 16 +<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index-debug.js"></script>
17 {{/if}} 17 {{/if}}
18 {{#if devEnv}} 18 {{#if devEnv}}
19 <script src="http://localhost:8000/static/js/sea.js?nowrap"></script> 19 <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
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">&#xe60f;</i> 5 <i class="search-icon iconfont">&#xe60f;</i>
6 <input type="text" value="{{default}}" name="query"> 6 <input type="text" value="{{default}}" name="query">
7 <i class="clear-input iconfont hide">&#xe61a;</i> 7 <i class="clear-input iconfont hide">&#xe61a;</i>
@@ -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'])) {
@@ -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();