Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/web-list
Showing
7 changed files
with
22 additions
and
9 deletions
@@ -396,8 +396,10 @@ class HelperSearch | @@ -396,8 +396,10 @@ class HelperSearch | ||
396 | $sortList[$key]['active'] = isset(self::$params['msort']) && self::$params['msort'] == $val['sort_id'] ? true : false; | 396 | $sortList[$key]['active'] = isset(self::$params['msort']) && self::$params['msort'] == $val['sort_id'] ? true : false; |
397 | $sortList[$key]['childList'][] = array( | 397 | $sortList[$key]['childList'][] = array( |
398 | 'name' => '全部'.$val['sort_name'], | 398 | 'name' => '全部'.$val['sort_name'], |
399 | - 'href' => self::buildUrl(array_merge($gender, array('msort'=>$val['sort_id']))) | 399 | + 'href' => self::buildUrl(array_merge($gender, array('msort'=>$val['sort_id']))), |
400 | + 'childActive' => isset(self::$params['msort']) && !isset(self::$params['misort']) && self::$params['msort'] == $val['sort_id'] ? true : false | ||
400 | ); | 401 | ); |
402 | + | ||
401 | if (isset($val['sub']) && !empty($val['sub'])) { | 403 | if (isset($val['sub']) && !empty($val['sub'])) { |
402 | foreach ($val['sub'] as $k => $v) { | 404 | foreach ($val['sub'] as $k => $v) { |
403 | $sortList[$key]['childList'][$k+1]['name'] = $v['sort_name']; | 405 | $sortList[$key]['childList'][$k+1]['name'] = $v['sort_name']; |
@@ -993,7 +995,7 @@ class HelperSearch | @@ -993,7 +995,7 @@ class HelperSearch | ||
993 | $url = self::buildUrl(array_merge($params, array( | 995 | $url = self::buildUrl(array_merge($params, array( |
994 | 'order' => 'p_d_desc' | 996 | 'order' => 'p_d_desc' |
995 | ))); | 997 | ))); |
996 | - $desc = true; | 998 | + $desc = false; |
997 | $active = true; | 999 | $active = true; |
998 | } | 1000 | } |
999 | else { | 1001 | else { |
@@ -38,6 +38,11 @@ | @@ -38,6 +38,11 @@ | ||
38 | </div> | 38 | </div> |
39 | <div class="good-detail-text"> | 39 | <div class="good-detail-text"> |
40 | <a href="{{url}}" target="_blank">{{{name}}}</a> | 40 | <a href="{{url}}" target="_blank">{{{name}}}</a> |
41 | + {{#brand}} | ||
42 | + <p class="brand"> | ||
43 | + <a href="{{url}}">{{name}}</a> | ||
44 | + </p> | ||
45 | + {{/brand}} | ||
41 | <p class="price"> | 46 | <p class="price"> |
42 | {{# marketPrice}} | 47 | {{# marketPrice}} |
43 | <span class="market-price">¥{{.}}</span> | 48 | <span class="market-price">¥{{.}}</span> |
@@ -47,4 +52,4 @@ | @@ -47,4 +52,4 @@ | ||
47 | </span> | 52 | </span> |
48 | </p> | 53 | </p> |
49 | </div> | 54 | </div> |
50 | -</div> | ||
55 | +</div> |
@@ -840,7 +840,7 @@ function closeCover() { | @@ -840,7 +840,7 @@ function closeCover() { | ||
840 | * @return {[type]} [description] | 840 | * @return {[type]} [description] |
841 | */ | 841 | */ |
842 | function actionCover() { | 842 | function actionCover() { |
843 | - var gender = cookieMap._Gender; | 843 | + var gender = window.cookie('_Gender'); |
844 | var newMask = ''; | 844 | var newMask = ''; |
845 | var windowheight = ''; | 845 | var windowheight = ''; |
846 | var selfheight = ''; | 846 | var selfheight = ''; |
@@ -1477,6 +1477,7 @@ function init() { | @@ -1477,6 +1477,7 @@ function init() { | ||
1477 | actionNav(); //处理导航 | 1477 | actionNav(); //处理导航 |
1478 | actionTipPic(); //鼠标移入后查询 | 1478 | actionTipPic(); //鼠标移入后查询 |
1479 | actionExeTemplate(); //处理模板 | 1479 | actionExeTemplate(); //处理模板 |
1480 | + actionCover(); //初次登录弹框 | ||
1480 | actionInitCookie(); //初始化cookie | 1481 | actionInitCookie(); //初始化cookie |
1481 | actionExeCookieMap(); //格式化cookie | 1482 | actionExeCookieMap(); //格式化cookie |
1482 | actionGoodsCart(); //初始化购物车插件 | 1483 | actionGoodsCart(); //初始化购物车插件 |
@@ -1494,7 +1495,6 @@ function init() { | @@ -1494,7 +1495,6 @@ function init() { | ||
1494 | actionListenDelCarGoods(); //监听购物车删除 | 1495 | actionListenDelCarGoods(); //监听购物车删除 |
1495 | actionListenCartMore(); // | 1496 | actionListenCartMore(); // |
1496 | actionLoginInfo(); //获取登录信息 | 1497 | actionLoginInfo(); //获取登录信息 |
1497 | - actionCover(); //初次登录弹框 | ||
1498 | actionAddKeyWords(); //增加关键字 | 1498 | actionAddKeyWords(); //增加关键字 |
1499 | } | 1499 | } |
1500 | init(); | 1500 | init(); |
@@ -23,7 +23,7 @@ class IndexModel | @@ -23,7 +23,7 @@ class IndexModel | ||
23 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); | 23 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); |
24 | 24 | ||
25 | // 组合搜索分类url | 25 | // 组合搜索分类url |
26 | - $urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); | 26 | + $urlList['sort'] = SearchData::getClassesUrl(); |
27 | 27 | ||
28 | //批量调接口获取数据 | 28 | //批量调接口获取数据 |
29 | $result = Yohobuy::getMulti($urlList); | 29 | $result = Yohobuy::getMulti($urlList); |
@@ -158,7 +158,6 @@ class SearchModel | @@ -158,7 +158,6 @@ class SearchModel | ||
158 | // 组合搜索商品url | 158 | // 组合搜索商品url |
159 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); | 159 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); |
160 | // 组合搜索分类url | 160 | // 组合搜索分类url |
161 | - //$urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); | ||
162 | $urlList['sort'] = SearchData::getClassesUrl(); | 161 | $urlList['sort'] = SearchData::getClassesUrl(); |
163 | // 组合搜索折扣区间url | 162 | // 组合搜索折扣区间url |
164 | $urlList['discount'] = SearchData::getDiscountUrl(); | 163 | $urlList['discount'] = SearchData::getDiscountUrl(); |
-
Please register or login to post a comment