Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
10 changed files
with
52 additions
and
25 deletions
@@ -102,14 +102,14 @@ class HelperSearch | @@ -102,14 +102,14 @@ class HelperSearch | ||
102 | $result['opts']['pageCount'] = $data['product']['page_total']; | 102 | $result['opts']['pageCount'] = $data['product']['page_total']; |
103 | $result['opts']['nextHref'] = ($next = self::next($data['product']['page_total'],$data['product']['filter'])) ? $next['href'] : ''; | 103 | $result['opts']['nextHref'] = ($next = self::next($data['product']['page_total'],$data['product']['filter'])) ? $next['href'] : ''; |
104 | $result['hasNextPage'] = self::next($data['product']['page_total']); | 104 | $result['hasNextPage'] = self::next($data['product']['page_total']); |
105 | + //全部折扣 | ||
106 | + $result['leftContent'][]['allDiscount'] = isset($data['discount']) ? self::getDiscount($data['discount']['discount']) : array(); | ||
105 | //分类条件 | 107 | //分类条件 |
106 | $result['filters']['sort'] = isset($data['sort']) ? self::searchSort($data['sort']['sort']) : array(); | 108 | $result['filters']['sort'] = isset($data['sort']) ? self::searchSort($data['sort']['sort']) : array(); |
107 | //左侧分类分类 | 109 | //左侧分类分类 |
108 | $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array(); | 110 | $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array(); |
109 | //一周新品上架 | 111 | //一周新品上架 |
110 | $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array(); | 112 | $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array(); |
111 | - //全部折扣 | ||
112 | - $result['leftContent'][]['allDiscount'] = isset($data['discount']) ? self::getDiscount($data['discount']['discount']) : array(); | ||
113 | //总记录数 | 113 | //总记录数 |
114 | $result['totalCount'] = $data['product']['total']; | 114 | $result['totalCount'] = $data['product']['total']; |
115 | //品牌店铺信息 | 115 | //品牌店铺信息 |
@@ -86,6 +86,7 @@ $('.invoice').on('touchend', '.checkbox', function() { | @@ -86,6 +86,7 @@ $('.invoice').on('touchend', '.checkbox', function() { | ||
86 | if ($this.hasClass('icon-checkbox')) { | 86 | if ($this.hasClass('icon-checkbox')) { |
87 | $('.invoice').removeClass('focus'); | 87 | $('.invoice').removeClass('focus'); |
88 | } | 88 | } |
89 | + return false; | ||
89 | }); | 90 | }); |
90 | 91 | ||
91 | function orderCompute(firstEnter) { | 92 | function orderCompute(firstEnter) { |
1 | <div class="register-page"> | 1 | <div class="register-page"> |
2 | - <!--<form id="register-form" class="register-form" method="POST" action="{{actionUrl}}" autocomplete="off">--> | ||
3 | <ul> | 2 | <ul> |
4 | <li class="clearfix"> | 3 | <li class="clearfix"> |
5 | <select id="region" class="region" name="region"> | 4 | <select id="region" class="region" name="region"> |
@@ -49,7 +48,7 @@ | @@ -49,7 +48,7 @@ | ||
49 | {{# loginUrl}} | 48 | {{# loginUrl}} |
50 | <li class="quick-login-container"> | 49 | <li class="quick-login-container"> |
51 | 我已注册YOHO!有货账号 | 50 | 我已注册YOHO!有货账号 |
52 | - <a class="link go-login" href="{{.}}">完善信息</a> | 51 | + <a class="link go-login" href="{{.}}">快速登录</a> |
53 | </li> | 52 | </li> |
54 | {{/loginUrl}} | 53 | {{/loginUrl}} |
55 | 54 | ||
@@ -64,5 +63,4 @@ | @@ -64,5 +63,4 @@ | ||
64 | <span></span> | 63 | <span></span> |
65 | <b></b> | 64 | <b></b> |
66 | </div> | 65 | </div> |
67 | - <!--</form>--> | ||
68 | </div> | 66 | </div> |
@@ -39,12 +39,12 @@ | @@ -39,12 +39,12 @@ | ||
39 | <div class="good-detail-text"> | 39 | <div class="good-detail-text"> |
40 | <a href="{{url}}">{{name}}</a> | 40 | <a href="{{url}}">{{name}}</a> |
41 | <p class="price"> | 41 | <p class="price"> |
42 | - <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}"> | ||
43 | - ¥{{salePrice}} | ||
44 | - </span> | ||
45 | {{# marketPrice}} | 42 | {{# marketPrice}} |
46 | <span class="market-price">¥{{.}}</span> | 43 | <span class="market-price">¥{{.}}</span> |
47 | {{/ marketPrice}} | 44 | {{/ marketPrice}} |
45 | + <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}"> | ||
46 | + ¥{{salePrice}} | ||
47 | + </span> | ||
48 | </p> | 48 | </p> |
49 | </div> | 49 | </div> |
50 | </div> | 50 | </div> |
@@ -29,7 +29,9 @@ var $pwdIntensity = $('.pwd-intensity'), | @@ -29,7 +29,9 @@ var $pwdIntensity = $('.pwd-intensity'), | ||
29 | 29 | ||
30 | //signup验证 | 30 | //signup验证 |
31 | var $region = $('#country-code'), | 31 | var $region = $('#country-code'), |
32 | - $regionSelect = $('#region'); | 32 | + $regionSelect = $('#region'), |
33 | + isPwd = false, | ||
34 | + pwdVal; | ||
33 | 35 | ||
34 | setTimeout(function() { | 36 | setTimeout(function() { |
35 | $pn.val(''); | 37 | $pn.val(''); |
@@ -43,10 +45,13 @@ setTimeout(function() { | @@ -43,10 +45,13 @@ setTimeout(function() { | ||
43 | $ca.attr('maxlength', caCount); | 45 | $ca.attr('maxlength', caCount); |
44 | 46 | ||
45 | //密码规则提示 | 47 | //密码规则提示 |
46 | -$pwd.focus(function() { | 48 | +$pwd.focus(function(event) { |
47 | $pwdTips.removeClass('hide'); | 49 | $pwdTips.removeClass('hide'); |
50 | + isPwd = true; | ||
51 | + pwdVal = $(this).val(); | ||
48 | }).blur(function() { | 52 | }).blur(function() { |
49 | $pwdTips.addClass('hide'); | 53 | $pwdTips.addClass('hide'); |
54 | + isPwd = false; | ||
50 | }); | 55 | }); |
51 | 56 | ||
52 | 57 | ||
@@ -509,6 +514,23 @@ exports.init = function(page) { | @@ -509,6 +514,23 @@ exports.init = function(page) { | ||
509 | }); | 514 | }); |
510 | }); | 515 | }); |
511 | 516 | ||
517 | + // 防止粘贴密码 | ||
518 | + /*$('#pwd, #repwd').keydown(function (event) { | ||
519 | + | ||
520 | + console.log(event.ctrlKey); | ||
521 | + console.log(isPwd); | ||
522 | + console.log(event.keyCode); | ||
523 | + | ||
524 | + if (event.ctrlKey && isPwd && event.keyCode === 86) { | ||
525 | + $(this).val(pwdVal); | ||
526 | + } | ||
527 | + | ||
528 | + });*/ | ||
529 | + | ||
530 | + $pwd[0].onpaste = function() { | ||
531 | + return false; | ||
532 | + }; | ||
533 | + | ||
512 | //ajax表单提交 | 534 | //ajax表单提交 |
513 | $registerBtn.click(function() { | 535 | $registerBtn.click(function() { |
514 | 536 |
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | outline: none; | 27 | outline: none; |
28 | } | 28 | } |
29 | 29 | ||
30 | - input { | 30 | + input.input { |
31 | height: 43px; | 31 | height: 43px; |
32 | line-height: 43px; | 32 | line-height: 43px; |
33 | font-size: 16px; | 33 | font-size: 16px; |
@@ -53,7 +53,12 @@ | @@ -53,7 +53,12 @@ | ||
53 | float: left; | 53 | float: left; |
54 | } | 54 | } |
55 | 55 | ||
56 | - &.send-captcha { | 56 | + &.agree-terms { |
57 | + vertical-align: middle; | ||
58 | + } | ||
59 | + } | ||
60 | + | ||
61 | + input.send-captcha { | ||
57 | top: 0; | 62 | top: 0; |
58 | background: #ff1901; | 63 | background: #ff1901; |
59 | position: absolute; | 64 | position: absolute; |
@@ -68,13 +73,6 @@ | @@ -68,13 +73,6 @@ | ||
68 | } | 73 | } |
69 | } | 74 | } |
70 | 75 | ||
71 | - &.agree-terms { | ||
72 | - width: initial; | ||
73 | - height: initial; | ||
74 | - vertical-align: middle; | ||
75 | - } | ||
76 | - } | ||
77 | - | ||
78 | .link { | 76 | .link { |
79 | text-decoration: underline; | 77 | text-decoration: underline; |
80 | color: #ff1901; | 78 | color: #ff1901; |
@@ -102,9 +102,6 @@ class SearchModel | @@ -102,9 +102,6 @@ class SearchModel | ||
102 | if (!isset($condition['order']) || empty($condition['order'])) { | 102 | if (!isset($condition['order']) || empty($condition['order'])) { |
103 | $condition['order'] = 's_n_desc'; | 103 | $condition['order'] = 's_n_desc'; |
104 | } | 104 | } |
105 | - if (!isset($condition['p_d']) || empty($condition['p_d'])) { | ||
106 | - $condition['p_d'] = '0,0.9'; | ||
107 | - } | ||
108 | $options = array( | 105 | $options = array( |
109 | 'imgSize' => $imgSize, | 106 | 'imgSize' => $imgSize, |
110 | 'minImgSize' => $minImgSize, | 107 | 'minImgSize' => $minImgSize, |
@@ -168,8 +165,10 @@ class SearchModel | @@ -168,8 +165,10 @@ class SearchModel | ||
168 | // 组合搜索分类url | 165 | // 组合搜索分类url |
169 | $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); | 166 | $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); |
170 | // 组合搜索店铺url | 167 | // 组合搜索店铺url |
168 | + if (isset($param['keyword'])) { | ||
171 | $param['keyword'] = $searchCondition['condition']['query']; | 169 | $param['keyword'] = $searchCondition['condition']['query']; |
172 | $urlList['shop'] = HelperSearch::getShopUrl($param); | 170 | $urlList['shop'] = HelperSearch::getShopUrl($param); |
171 | + } | ||
173 | //用户浏览记录 | 172 | //用户浏览记录 |
174 | //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']); | 173 | //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']); |
175 | $result = Yohobuy::getMulti($urlList, array(), true); | 174 | $result = Yohobuy::getMulti($urlList, array(), true); |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | use Action\AbstractAction; | 3 | use Action\AbstractAction; |
4 | 4 | ||
5 | -class RegisterController extends AbstractAction | 5 | +class Register1Controller extends AbstractAction |
6 | { | 6 | { |
7 | /** | 7 | /** |
8 | * 登录页 | 8 | * 登录页 |
@@ -49,7 +49,7 @@ class RegisterController extends AbstractAction | @@ -49,7 +49,7 @@ class RegisterController extends AbstractAction | ||
49 | 'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190' | 49 | 'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190' |
50 | ) | 50 | ) |
51 | ); | 51 | ); |
52 | - $this->_view->display('index', $data); | 52 | + $this->_view->display('../register/index', $data); |
53 | } | 53 | } |
54 | 54 | ||
55 | public function checkmobileAction() | 55 | public function checkmobileAction() |
@@ -17,7 +17,11 @@ class ListController extends WebAction | @@ -17,7 +17,11 @@ class ListController extends WebAction | ||
17 | */ | 17 | */ |
18 | public function saleAction() | 18 | public function saleAction() |
19 | { | 19 | { |
20 | - $list = SearchModel::getListData(); | 20 | + //排序 |
21 | + $condition['order'] = 's_n_desc'; | ||
22 | + //打折 | ||
23 | + $condition['p_d'] = '0,0.9'; | ||
24 | + $list = SearchModel::getListData($condition); | ||
21 | $data = array( | 25 | $data = array( |
22 | //初始化js | 26 | //初始化js |
23 | 'productListPage' => true, | 27 | 'productListPage' => true, |
-
Please register or login to post a comment