Authored by 李靖

筛选bug

... ... @@ -26,8 +26,10 @@ let categoryObj = {
let _this = this;
this.domInit();
_this.el.$tabItem.on('click', function () {
$(this).toggleClass('active').siblings('.tab-item').removeClass('active');
_this.el.$tabItem.find('.city-name').on('click', function () {
let $this = $(this).parents('.tab-item');
$this.toggleClass('active').siblings('.tab-item').removeClass('active');
});
_this.el.$tabItem.find('.right-part:first').show();
... ...
... ... @@ -90,6 +90,8 @@
box-sizing: border-box;
.city-name {
display: block;
.name {
display: inline-block;
max-width: 300px;
... ...