Authored by 李靖

筛选bug

@@ -26,8 +26,10 @@ let categoryObj = { @@ -26,8 +26,10 @@ let categoryObj = {
26 let _this = this; 26 let _this = this;
27 27
28 this.domInit(); 28 this.domInit();
29 - _this.el.$tabItem.on('click', function () {  
30 - $(this).toggleClass('active').siblings('.tab-item').removeClass('active'); 29 + _this.el.$tabItem.find('.city-name').on('click', function () {
  30 + let $this = $(this).parents('.tab-item');
  31 +
  32 + $this.toggleClass('active').siblings('.tab-item').removeClass('active');
31 }); 33 });
32 34
33 _this.el.$tabItem.find('.right-part:first').show(); 35 _this.el.$tabItem.find('.right-part:first').show();
@@ -90,6 +90,8 @@ @@ -90,6 +90,8 @@
90 box-sizing: border-box; 90 box-sizing: border-box;
91 91
92 .city-name { 92 .city-name {
  93 + display: block;
  94 +
93 .name { 95 .name {
94 display: inline-block; 96 display: inline-block;
95 max-width: 300px; 97 max-width: 300px;