Authored by QC-L

添加动态选中样式

@@ -192,6 +192,9 @@ class Group extends Page { @@ -192,6 +192,9 @@ class Group extends Page {
192 success: (data) => { 192 success: (data) => {
193 // $('.filter-mask').remove(); 193 // $('.filter-mask').remove();
194 // $('.group').append(data); 194 // $('.group').append(data);
  195 + // $('.guess-scroll').find('')
  196 + $('.guess-scroll').children('div').removeClass('active');
  197 + $this.addClass('active');
195 this.renderMoreData(data.filterList || []); 198 this.renderMoreData(data.filterList || []);
196 } 199 }
197 }); 200 });
@@ -481,6 +484,7 @@ class Group extends Page { @@ -481,6 +484,7 @@ class Group extends Page {
481 484
482 // 筛选初始化 485 // 筛选初始化
483 filterInit() { 486 filterInit() {
  487 + $('.guess-scroll').find('div:first-child').addClass('active');
484 let selectedChannel = this.selectedChannel; 488 let selectedChannel = this.selectedChannel;
485 let requestParams = { 489 let requestParams = {
486 ...this.filterTab[selectedChannel] 490 ...this.filterTab[selectedChannel]
@@ -20,5 +20,9 @@ @@ -20,5 +20,9 @@
20 } 20 }
21 } 21 }
22 22
  23 + .active {
  24 + border-bottom: 2px #222 solid;
  25 + }
  26 +
23 .wapper::-webkit-scrollbar { width: 0 !important; } 27 .wapper::-webkit-scrollbar { width: 0 !important; }
24 } 28 }