Merge branch 'release/4.9.1.0'
Showing
10 changed files
with
22 additions
and
6 deletions
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
@@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
108 | color: #444; | 108 | color: #444; |
109 | font-size: 22px; | 109 | font-size: 22px; |
110 | line-height: 30px; | 110 | line-height: 30px; |
111 | - height: 55px; | 111 | + height: 50px; |
112 | padding: 5px 0; /* 商品标题限制行数的bug修复 增加元素的clientHeight */ | 112 | padding: 5px 0; /* 商品标题限制行数的bug修复 增加元素的clientHeight */ |
113 | } | 113 | } |
114 | .price { | 114 | .price { |
@@ -109,7 +109,7 @@ | @@ -109,7 +109,7 @@ | ||
109 | a.students-btn { | 109 | a.students-btn { |
110 | float: right; | 110 | float: right; |
111 | background: #d10922; | 111 | background: #d10922; |
112 | - width: 150px; | 112 | + padding: 2px 20px; |
113 | border-radius: 45px; | 113 | border-radius: 45px; |
114 | height: 45px; | 114 | height: 45px; |
115 | line-height: 45px; | 115 | line-height: 45px; |
@@ -283,4 +283,15 @@ | @@ -283,4 +283,15 @@ | ||
283 | padding-left: 0.375rem; | 283 | padding-left: 0.375rem; |
284 | padding-top: 0.2rem; | 284 | padding-top: 0.2rem; |
285 | } | 285 | } |
286 | + | ||
287 | + .students-container { | ||
288 | + padding-left: 0; | ||
289 | + | ||
290 | + .good-info{ | ||
291 | + margin: 10px 0 40px; | ||
292 | + width: 50%; | ||
293 | + padding: 0 10px 0 15px; | ||
294 | + box-sizing: border-box; | ||
295 | + } | ||
296 | + } | ||
286 | } | 297 | } |
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | </a> | 98 | </a> |
99 | </li> | 99 | </li> |
100 | </ul> | 100 | </ul> |
101 | - <div id="goods-container" class="goods-container"> | 101 | + <div id="goods-container" class="goods-container {{#if students}} students-container {{/if}}"> |
102 | <div class="new-goods container clearfix"></div> | 102 | <div class="new-goods container clearfix"></div> |
103 | <div class="price-goods container clearfix hide"></div> | 103 | <div class="price-goods container clearfix hide"></div> |
104 | <div class="discount-goods container clearfix hide"></div> | 104 | <div class="discount-goods container clearfix hide"></div> |
@@ -242,15 +242,20 @@ class SearchController extends AbstractAction | @@ -242,15 +242,20 @@ class SearchController extends AbstractAction | ||
242 | // 搜索列表将最新改成默认的标识 | 242 | // 搜索列表将最新改成默认的标识 |
243 | $data['isSearch'] = true; | 243 | $data['isSearch'] = true; |
244 | 244 | ||
245 | - | ||
246 | if (isset($condition['students'])) { | 245 | if (isset($condition['students'])) { |
247 | - | ||
248 | // 获取用户信息判断是否为学生 | 246 | // 获取用户信息判断是否为学生 |
249 | - $data['students'] = Helpers::url('/activity/student/register'); | ||
250 | if ($uid) { | 247 | if ($uid) { |
251 | $userInfo = UserData::userData($uid); | 248 | $userInfo = UserData::userData($uid); |
252 | if ($userInfo['code'] === 200 && isset($userInfo['data']['vip_info']['is_student']) && $userInfo['data']['vip_info']['is_student'] === 1) { | 249 | if ($userInfo['code'] === 200 && isset($userInfo['data']['vip_info']['is_student']) && $userInfo['data']['vip_info']['is_student'] === 1) { |
253 | $data['students'] = ''; | 250 | $data['students'] = ''; |
251 | + } else { | ||
252 | + $data['students'] = Helpers::url('/activity/student/register'); | ||
253 | + } | ||
254 | + } else { | ||
255 | + if ($isApp) { | ||
256 | + $data['students'] = '/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http://m.yohobuy.com/activity/student/register","antarget":"1"}}}'; | ||
257 | + } else { | ||
258 | + $data['students'] = Helpers::url('/signin.html?refer=//m.yohobuy.com/activity/student/register'); | ||
254 | } | 259 | } |
255 | } | 260 | } |
256 | $data['showDownloadApp'] = false; | 261 | $data['showDownloadApp'] = false; |
-
Please register or login to post a comment