Authored by 毕凯

Merge branch 'release/5.3.1' into 'gray'

放开注释掉的跳转



See merge request !89
@@ -11,22 +11,20 @@ @@ -11,22 +11,20 @@
11 </form> 11 </form>
12 </div> 12 </div>
13 <ul class="search-associate"></ul> 13 <ul class="search-associate"></ul>
14 - <div class="search-items">  
15 - {{#if hotTerms}}  
16 - <div class="hot-search-new search-group clearfix"> 14 + {{#if hotTerms}}
  15 + <div class="hot-search-new clearfix">
17 16
18 - <div class="search-content new-hot">  
19 - <ul class="hot-content">  
20 - <li class="hot-title">热搜</li>  
21 - {{# hotTerms}}  
22 - <li class="hot-term">  
23 - <a href='javascript:void(0);'>{{content}}</a>  
24 - </li>  
25 - {{/ hotTerms}}  
26 - </ul> 17 + <div class="new-hot">
  18 + <div class="hot-title hot-term">热搜</div>
  19 + {{# hotTerms}}
  20 + <div class="hot-term">
  21 + <a href='javascript:void(0);'>{{content}}</a>
  22 + </div>
  23 + {{/ hotTerms}}
27 </div> 24 </div>
28 </div> 25 </div>
29 - {{/if}} 26 + {{/if}}
  27 + <div class="search-items">
30 <div class="search-index"> 28 <div class="search-index">
31 <div class="search-group history-search hide"> 29 <div class="search-group history-search hide">
32 <div class="search-content-title"> 30 <div class="search-content-title">
@@ -93,7 +93,7 @@ $buyNowBtn.on('click', function() { @@ -93,7 +93,7 @@ $buyNowBtn.on('click', function() {
93 param: JSON.stringify({ 93 param: JSON.stringify({
94 C_ID: window._ChannelVary[window.cookie('_Channel')], 94 C_ID: window._ChannelVary[window.cookie('_Channel')],
95 PRD_ID: window.queryString.id, 95 PRD_ID: window.queryString.id,
96 - PACKAGE_GOODS: yasGid.join(',') 96 + PACKAGE_GOODS: yasGid.join(',')
97 }) 97 })
98 }, true); 98 }, true);
99 } 99 }
@@ -104,6 +104,6 @@ $buyNowBtn.on('click', function() { @@ -104,6 +104,6 @@ $buyNowBtn.on('click', function() {
104 activity_id: bundleId 104 activity_id: bundleId
105 }), actCkOpthn); 105 }), actCkOpthn);
106 106
107 - // window.location.href = '/cart/index/orderEnsure?cartType=bundle&activityType=bundle'; 107 + window.location.href = '/cart/index/orderEnsure?cartType=bundle&activityType=bundle';
108 } 108 }
109 }); 109 });
@@ -182,9 +182,6 @@ $('.search-items .search-group').on('click', 'li', function(event) { @@ -182,9 +182,6 @@ $('.search-items .search-group').on('click', 'li', function(event) {
182 if ($(this).parents('.search-group').hasClass('history-search')) { 182 if ($(this).parents('.search-group').hasClass('history-search')) {
183 POS_ID = 1; 183 POS_ID = 1;
184 FLR_INDEX = 1; 184 FLR_INDEX = 1;
185 - } else if ($(this).parents('.search-group').hasClass('hot-search-new')) {  
186 - POS_ID = 2;  
187 - FLR_INDEX = 2;  
188 } else { 185 } else {
189 var PRD_NUM = $(this).index() + 1; 186 var PRD_NUM = $(this).index() + 1;
190 187
@@ -209,6 +206,34 @@ $('.search-items .search-group').on('click', 'li', function(event) { @@ -209,6 +206,34 @@ $('.search-items .search-group').on('click', 'li', function(event) {
209 goSearch(query); 206 goSearch(query);
210 }); 207 });
211 208
  209 +$('.hot-term').on('click', function(event) {
  210 + var Hotquery = '',
  211 + POS_ID = 2,
  212 + FLR_INDEX = 2;
  213 +
  214 + if (event.target.nodeName === 'A') {
  215 + Hotquery = $(event.target).html();
  216 + }
  217 +
  218 + if (event.target.nodeName === 'DIV') {
  219 + Hotquery = $(event.target).find('a').html();
  220 + }
  221 +
  222 + if (window._yas && window._yas.sendCustomInfo) {
  223 + window._yas.sendCustomInfo({
  224 + op: 'YB_KEYWORD_SEARCH_C',
  225 + param: JSON.stringify({
  226 + C_ID: C_ID,
  227 + KEYWORD: Hotquery,
  228 + POS_ID: POS_ID,
  229 + FLR_INDEX: FLR_INDEX
  230 + })
  231 + }, true);
  232 + }
  233 +
  234 + goSearch(Hotquery);
  235 +})
  236 +
212 inputAction(); 237 inputAction();
213 238
214 cHammer = new Hammer($clear[0]); 239 cHammer = new Hammer($clear[0]);
@@ -46,22 +46,64 @@ @@ -46,22 +46,64 @@
46 } 46 }
47 } 47 }
48 48
  49 + .hot-search-new {
  50 + white-space: nowrap;
  51 + width: 100%;
  52 + overflow-x: auto;
  53 + /*background: #f0f0f0;*/
  54 + border-bottom: 1px solid #e0e0e0;
  55 +
  56 + .new-hot {
  57 + background: #fff;
  58 + padding: 25px 0 0 30px;
  59 + }
  60 +
  61 + .hot-term {
  62 + display: inline-block;
  63 + height: 68px;
  64 + line-height: 70px;
  65 + padding: 0 20px;
  66 + font-size: 28px;
  67 + color: #000;
  68 + overflow: hidden;
  69 + text-overflow: ellipsis;
  70 + white-space: nowrap;
  71 + border-radius: 0.2rem;
  72 + border: 1PX solid #e0e0e0;
  73 + background: #fff;
  74 + font-size: 0.7rem;
  75 + width: auto;
  76 + margin-right: 15px;
  77 + }
  78 +
  79 + .hot-title {
  80 + font-size: 34px;
  81 + color: #000;
  82 + border: none;
  83 + padding: 0;
  84 + }
  85 +
  86 + }
  87 +
49 .search-items { 88 .search-items {
  89 + background: #f0f0f0;
  90 + padding-top: 30px;
  91 +
50 h3 { 92 h3 {
51 font-size: 24px; 93 font-size: 24px;
52 margin-bottom: 20px; 94 margin-bottom: 20px;
53 } 95 }
54 96
55 li { 97 li {
56 - margin-right: 8px;  
57 - /*margin-bottom: 5px;*/ 98 + margin-right: 15px;
  99 + margin-bottom: 15px;
58 max-width: 100%; 100 max-width: 100%;
59 overflow: hidden; 101 overflow: hidden;
60 display: inline-block; 102 display: inline-block;
61 } 103 }
62 104
63 a { 105 a {
64 - display: inline-block; 106 + float: left;
65 height: 68px; 107 height: 68px;
66 line-height: 70px; 108 line-height: 70px;
67 padding: 0 20px; 109 padding: 0 20px;
@@ -77,6 +119,7 @@ @@ -77,6 +119,7 @@
77 border-top: 1px solid #e0e0e0; 119 border-top: 1px solid #e0e0e0;
78 background: #fff; 120 background: #fff;
79 padding: 30px; 121 padding: 30px;
  122 + /*margin-top: 30px;*/
80 } 123 }
81 124
82 .clear-icon { 125 .clear-icon {
@@ -107,42 +150,6 @@ @@ -107,42 +150,6 @@
107 } 150 }
108 } 151 }
109 152
110 - .hot-search-new {  
111 - background: #f0f0f0;  
112 - padding-bottom: 30px;  
113 -  
114 - .new-hot {  
115 - background: #fff;  
116 - padding-bottom: 30px;  
117 - border-bottom: 1px solid #e0e0e0;  
118 - }  
119 -  
120 - .search-content {  
121 - padding-bottom: 0;  
122 - }  
123 -  
124 - .hot-title {  
125 - font-size: 34px;  
126 - color: #000;  
127 - line-height: 76px;  
128 - height: 80px;  
129 - padding-left: 30px;  
130 - text-align: center;  
131 - display: inline-block;  
132 - }  
133 -  
134 - .hot-term {  
135 - padding-top: 27px;  
136 - }  
137 -  
138 - .hot-content {  
139 - width: 100%;  
140 - overflow-x: auto;  
141 - overflow-y: hidden;  
142 - white-space: nowrap;  
143 - height: 130px;  
144 - }  
145 - }  
146 153
147 .search-content-title { 154 .search-content-title {
148 height: 40px; 155 height: 40px;